hc_rangeSelector: Rangeselector options for highcharter objects

Description Usage Arguments Examples

View source: R/highcharts-api.R

Description

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.

Usage

1

Arguments

hc

A highchart htmlwidget object.

...

Arguments defined in https://api.highcharts.com/highstock/rangeSelector.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
hc <- highchart(type = "stock") %>%
  hc_add_series(AirPassengers)

hc

hc %>%
  hc_rangeSelector(enabled = FALSE)

hc %>%
  hc_rangeSelector(
    verticalAlign = "bottom",
    selected = 4
  )

highcharter documentation built on Jan. 3, 2022, 5:08 p.m.