Learn R Programming

highcharter (version 0.9.4)

hc_navigator: Navigator options for highcharter objects

Description

The navigator is a small series below the main series, displaying a view of the entire data set. It provides tools to zoom in and out on parts of the data as well as panning across the dataset.

Usage

hc_navigator(hc, ...)

Arguments

hc

A highchart htmlwidget object.

Examples

Run this code
# NOT RUN {
highchart(type = "stock") %>%
  hc_add_series(AirPassengers) %>%
  hc_rangeSelector(selected = 4) %>%
  hc_navigator(
    outlineColor = "gray",
    outlineWidth = 2,
    series = list(
      color = "red",
      lineWidth = 2,
      type = "areaspline", # you can change the type
      fillColor = "rgba(255, 0, 0, 0.2)"
    ),
    handles = list(
      backgroundColor = "yellow",
      borderColor = "red"
    )
  )
# }

Run the code above in your browser using DataLab