echarty

Minimal R/Shiny Interface to ECharts.js


CRAN   twitter

Introduction

The goal of echarty is to provide a minimal interface, a “glue”, between R and ECharts, then let your R data lists build the chart. There are utilities included to assist with data preparation (ec.data, js2r), Shiny with proxy (ecs.*) and JS plugins (ec.plugjs).
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


Tutorials

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


Crosstalk

Social media for charts - drive the action     live demo

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.