I wish to color the entire area of the graph in different colors using the highcharter
package in R.
The below code is merely highlighting the dots in the graph not the entire area as illustrated in the picture below
The data used here is the favorite_pies data inbuilt in the highcharter
package in R.
hchart('area', hcaes(x = favorite_pies$pie, y = favorite_pies$percent, color = viridis(5))) %>%
hc_colorAxis(stops = color_stops(colors = viridis::inferno(5)))