使用dataset的雷达图,图例的联动效果不能正常触发
Version
5.3.3
Link to Minimal Reproduction
No response
Steps to Reproduce
option = { dataset: { dimensions: ['product', '2015', '2016', '2017'], source: [ { product: 'Matcha Latte', 2015: 10, 2016: 20, 2017: 30 }, { product: 'Matcha123', 2015: 20, 2016: 30, 2017: 40 } ] }, legend: { show: true, data: ['Matcha Latte', 'Matcha123'] }, tooltip: { show: true }, radar: { indicator: [ { max: 100, name: 2015 }, { max: 100, name: 2016 }, { max: 100, name: 2017 } ] }, series: [ { type: 'radar', name: 'Matcha Latte', encode: { value: 'product' } }, { type: 'radar', name: 'Matcha123', encode: { value: 'product' } } ] };
Current Behavior
点击图例,对应的雷达线不会关闭,点击第一个图例 两个线全部消失。 没有在官网中找到类似的雷达图+数据集的示例
Expected Behavior
期望点击图例正常显示隐藏对应的线
Environment
网站5.3.3即可触发
Any additional comments?
No response
@Jinzm 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
Using the radar chart of dataset, the linkage effect of the legend cannot be triggered normally
BODY
Version
5.3.3
Link to Minimal Reproduction
No response
Steps to Reproduce
option = { dataset: { dimensions: ['product', '2015', '2016', '2017'], source: [ { product: 'Matcha Latte', 2015: 10, 2016: 20, 2017: 30 }, { product: 'Matcha123', 2015: 20, 2016: 30, 2017: 40 } ] }, legend: { show: true, data: ['Matcha Latte', 'Matcha123'] }, tooltip: { show: true }, radar: { indicator: [ { max: 100, name: 2015 }, { max: 100, name: 2016 }, { max: 100, name: 2017 } ] }, series: [ { type: 'radar', name: 'Matcha Latte', encode: { value: 'product' } }, { type: 'radar', name: 'Matcha123', encode: { value: 'product' } } ] };
Current Behavior
Click the legend, the corresponding radar line will not be closed, click the first legend and both lines will disappear. I did not find a similar example of radar map + data set in the official website
Expected Behavior
It is expected that clicking on the legend will normally display and hide the corresponding line
Environment
Website 5.3.3 can trigger
Any additional comments?
No response
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.
It would be great if the RadarSeries could display the legend correctly when using the dataset. Any suggestions for a workaround?