highcharter (version 0.7.0)

hc_legend: Setting legend options to highchart objects

Description

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

Usage

hc_legend(hc, ...)

Arguments

hc

A highchart htmlwidget object.

...

Examples

Run this code
# NOT RUN {
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) 
            
# }

Run the code above in your browser using DataLab