AmorDiamond commented on issue #8495: URL: https://github.com/apache/echarts/issues/8495#issuecomment-2720255059
> [@pissang](https://github.com/pissang) [@Ovilia](https://github.com/Ovilia) 请问这个需求有跟进吗,很多场景需要在数据上绑定一些非绘制图形数据外的额外数据,现在使用dataset方案无法做到series.data那样,在每个数据上绑定额外的自定义数据。 目前换了个思路去实现,通过自定义dataset的transform,将需要的额外数据转换到source数组数据里,然后在tooltip.formatter里通过索引在value或data里获取,如['周一', 123, 'name_value', 'asd_value'],第三个就是name属性数据,第四个为asd属性数据。 https://user-images.githubusercontent.com/16662470/41396927-15a82312-6fe5-11e8-9193-2877b681220d.png -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
