score:9

Accepted answer

hchartis a generic function which work with histogram classes too. Try following:

library(highcharter)
data(diamonds, package = "ggplot2")

h <- hist(diamonds$price, plot = FALSE)
hchart(h)


h2 <- hist(diamonds$price, breaks = 100, plot = FALSE)
hchart(h2)

So, you can create the histogram what you want using the base hist function, then you can chart it with highcharter.


Related Query

More Query from same tag