[Feature] series-type为custom的自定义系列图形,legend的name是否可以像饼图和漏斗图映射到series.data上去
What problem does this feature solve?
需要使用自定义系列实现转化漏斗图,希望legend的name也可以像echarts本身支持漏斗图那样,可以映射到单个数据的name上(或者能映射到renderItem返回的对象的name上),否则legend默认就是映射到series.name
What does the proposed API look like?
https://echarts.apache.org/examples/zh/editor.html?c=funnel 希望自定义系列的legend,也能像原生支持的漏斗图那样,可以和单个数据的name对应上
@wangnannanziyu It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Feature] Series-type is a custom series graphic of custom, and whether the name of the legend can be mapped to series.data like pie charts and funnel charts
BODY
What problem does this feature solve?
You need to use a custom series to implement a conversion funnel graph, and hopefully the name of the legend can also be mapped to the name of a single piece of data (or to the name of the object returned by the renderItem) like echarts itself supports the funnel graph, otherwise the legend is mapped to the series.name by default
What does the proposed API look like?
https://echarts.apache.org/examples/zh/editor.html?c=funnel I hope that the legend of the custom series can also be corresponding to the name of a single data like the funnel diagram supported by the native
我也碰到了这个问题, 我这的场景是用 custom 实现一个自定义样式的Pie Chart. 但是 custom chart 只能映射到 series.name 上面. 看了下源码, 需要在 CustomSerie 的 model中实现一个 LegendVisualProvider. 但是 custom chart没有提供这个选项. 建议官方能够在 custom chart 上面扩展一个 LegendVisualProvider 的工厂方法配置项, 允许 count chart 能够自定义 Legend 的实现.
目测, 还需要另外扩展 renderItem 的 api, 希望作者大大考虑下.
目前, 我在项目中的实现是用了一个 width:0, height:0 的 pie chart 去伪造一个图例, 但这种方式, 不是很正经, 还是要通过优化api去解决问题.
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!