hc_legend: Adding legend options to highchart objects

Description Usage Arguments Examples

Description

Function to modify styles for the box containing the symbol, name and color for each item or point item in the chart.

Usage

1

Arguments

hc

A highchart htmlwidget object.

...

Arguments are defined in http://api.highcharts.com/highcharts#legend.

Examples

1
2
3
4
5
6
7
8
9
data(citytemp)

highchart() %>% 
  hc_xAxis(categories = citytemp$month) %>% 
  hc_add_series(name = "Tokyo", data = citytemp$tokyo) %>% 
  hc_add_series(name = "London", data = citytemp$london) %>%
  hc_legend(align = "left", verticalAlign = "top",
            layout = "vertical", x = 0, y = 100) 
            


Search within the highcharter package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.