antvis / G2Plot

:dango: An interactive and responsive charting library based on G2.
https://g2plot.antv.antgroup.com
MIT License
2.56k stars 607 forks source link

🐛 [BUG] g2plot 2.x 雷达图,连续型数据时,lineStyle 设置有问题 #2629

Open rabbit-tian opened 3 years ago

rabbit-tian commented 3 years ago

g2plot 2.x 雷达图,连续型数据时,lineStyle 设置有问题,筛选 colorField === 100 的时候, 200, 300 的都点亮了 image

🐛 Bug description [Please make everyone to understand it]

复现地址:https://codesandbox.io/s/gracious-solomon-rgjts?file=/index.ts

💻 Link to minimal reproduction

Please provide a link by forking these links g2plot or GitHub repo. What is a minimal reproduction, and why is it required?

📷 Step to reproduce

🏞 Expected result

🚑 Any additional [like screenshots]

rabbit-tian commented 3 years ago

@visiky 老师,帮忙看下

arcsin1 commented 3 years ago

@rabbit-tian colorField 的值需要为字符串,number类型不行,转为字符串就正确了

arcsin1 commented 3 years ago

@rabbit-tian
image image

rabbit-tian commented 3 years ago

@rabbit-tian colorField 的值需要为字符串,number类型不行,转为字符串就正确了

哦哦,理解你说的,但是我这边需求是两种情况,一个是 字符串形式的分类型数据,另一个是数值型的连续型数据,我们这都要支持