helgasoft / echarty

Minimal R/Shiny Interface to ECharts.js
https://helgasoft.github.io/echarty/
82 stars 3 forks source link

e_theme #37

Closed antoine4ucsd closed 1 month ago

antoine4ucsd commented 1 month ago

thank you for this nice suite of tools! is there an equivalent for this e_theme_custom('{"color":["#5B82D8","#f2bc40","#b9257a","#448c8a"]}')

thank you!

helgasoft commented 1 month ago

Yes, there is an example in the ec.theme help (?ec.theme). Here is one with your data.

cars |> ec.init(series.param=list(colorBy='data')) |> 
ec.theme('themeName', code='{"color":["#5B82D8","#f2bc40","#b9257a","#448c8a"]}')
antoine4ucsd commented 1 month ago

thank you so much!