Search code examples
javascriptchartsbaiduecharts

Echarts.js : How to create a custom chart type?


I'm working with ECharts (http://echarts.baidu.com/index.html) for a few weeks, and I find this library very powerful.

However, it would be great if I could create custom chart types, e.g. a word cloud such as http://www.wordle.net/ (I've found a "character cloud" with echarts 2, but I'm not happy with it).

Is there an "easy" way to declare such a new chart type ? (otherwise I'll dig in the source files on GitHub).

Idealy, I would like to use the Echarts "engine" to provide nice features like export or data view, and implement only the "custom" parts (such as series declaration and rendering).

Thanks a lot, and best regards!


Solution

  • This is called extension in ECharts. We are working on the documentation and demo to make extensions. Currently, you may refer to the example of ECharts extension with Baidu Map.