View source: R/highcharts-api.R
hc_rangeSelector | R Documentation |
The range selector is a tool for selecting ranges to display within the chart. It provides buttons to select preconfigured ranges in the chart, like 1 day, 1 week, 1 month etc. It also provides input boxes where min and max dates can be manually input.
hc_rangeSelector(hc, ...)
hc |
A |
... |
Arguments defined in https://api.highcharts.com/highstock/rangeSelector. |
hc <- highchart(type = "stock") |>
hc_add_series(AirPassengers)
hc
hc |>
hc_rangeSelector(enabled = FALSE)
hc |>
hc_rangeSelector(
verticalAlign = "bottom",
selected = 4
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.