Minimal R/Shiny Interface to ECharts.js

CRAN   twitter


The goal of echarty is to provide a minimal interface between R and native ECharts components. Use R data lists and a few echarty commands to build a chart. There are utilities included to assist with data preparation (, Shiny with proxy (ecs.*) and formatting (ec.clmn).
Have the full functionality of ECharts in R with minimal overhead!

Enjoy the gallery and grab some chart code!
Best place to get started with echarty


More detailed step-by-step examples with tips and tricks.

Use Case 1 - Building an interactive map with regional data

Use Case 2 - Like Clockwork

Use Case 3 - Hierarchical data

Use Case 4 - Sankey with timeline

Use Case 5 - Bubbles without troubles with JavaScript - live demo

Use Case 6 - Grouped, stacked and timelined


Social media for charts - drive the action     live demo
More in the gallery.

Learn by example

See what you can do with echarty and Shiny

demo(eshiny, package='echarty')

Have fun with Translator Assistant - translate Javascript data to R!   ECharts has lots of great examples . The goal is to facilitate translation of their JSON-like data (option object) to R lists. Give it a go with the following R command

demo(js2r, package='echarty')

Or browse some interesting code gists.

Open Source Acknowledgements

echarty was inspired by and benefits some code from echarts4R,
hat tip also to the pioneers - recharts and ECharts2Shiny,
and cheers for htmlwidgets and ECharts to make it all possible.