Hello everyone,
Most of the time I user highcharter library to plot specific amount of time-series this way:
highchart() %>%
hc_add_series(name = "DF Column name", data = df$VALUE, color = ... ) %>%
hc_add_series(name = "DF Column name2", data = df$VALUE2, color = ... )
Sometimes however I don't know the amount of columns and their names in data frame - e.g. when the data frame is a result of dcast() function.
I would like the library to plot all of the columns, set series name as column names and assign colors from a default color-order pallette.
It is easily done using dygraphs library where I decide whether I want to specify the series myself or I want the library to do this for me:
toPlotTestData <- xts(testDataResult[,2:4], order.by = testDataResult[, 1], tzone = "GMT")
dygraph(toPlotTestData, main = "Title")
vs
toPlotTestData <- xts(testDataResult[,2:4], order.by = testDataResult[, 1], tzone = "GMT")
dygraph(toPlotTestData, main = "Title") %>%
dySeries("COL1", label="COL1", axis = 'y', color = "blue") %>%
dySeries("COL2", label="COL2", axis = 'y', color = "orange")
Is it also possible in highcharter?
Any help appreciated.