0๐
โ
I found the solution on https://github.com/Tutuchan/chartjs/commit/4066541ada0cd0b11f49608af3c2357bc44b8bc6#diff-60bb2b0586d33a8a794dc7ab45e0302bR12
library(chartjs)
chartjs(height = "500px") %>%
cjsPie(labels = mtcars[1:6,]) %>%
cjsSeries(data = c(1:6))
Source:stackexchange.com