简体   繁体   English

Echarts.js:如何创建自定义图表类型?

[英]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. 我和ECharts( http://echarts.baidu.com/index.html )合作了几个星期,我发现这个库非常强大。

However, it would be great if I could create custom chart types, eg 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). 但是,如果我可以创建自定义图表类型,例如http://www.wordle.net/这样的文字云(我找到了带有echarts 2的“字符云”,那会很棒,但我不开心用它)。

Is there an "easy" way to declare such a new chart type ? 是否有一种“简单”的方式来声明这种新的图表类型? (otherwise I'll dig in the source files on GitHub). (否则我将深入研究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). 理想情况下,我想使用Echarts“引擎”来提供很好的功能,如导出或数据视图,并只实现“自定义”部分(如系列声明和渲染)。

Thanks a lot, and best regards! 非常感谢,最诚挚的问候!

This is called extension in ECharts. 这在ECharts中称为extension We are working on the documentation and demo to make extensions. 我们正在制作文档和演示以进行扩展。 Currently, you may refer to the example of ECharts extension with Baidu Map . 目前,您可以参考使用百度地图的ECharts扩展示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM