ant-design-charts icon indicating copy to clipboard operation
ant-design-charts copied to clipboard

🧐[问题] 折线图 LineConfig里面 ponit的颜色属性 为啥只返回categoryField

Open zhangle1 opened this issue 5 months ago • 0 comments

🧐 问题描述 [详细地描述问题,让大家都能理解]

💻 示例代码 [如果有必要,展示代码,线上示例,或仓库]

point: {
  yField:'count',
  
  size: 5,
  style: {
    lineWidth: 1,
    fillOpacity: 1,
  
  },
  
  color:(item,...rest)=>{
      
    console.log("color:"+JSON.stringify(item))
    return rest?.defaultColor
  },
  shape: (item) => {
    if (item.category === '均值') {
      return 'circle';
    }
  },
},

item.index 我希望能获取到当前点位的数据,以及索引 ,但是数据里只有seriesField的值

🚑 其他信息 [如截图等其他信息可以贴在这里]

zhangle1 avatar Sep 21 '24 02:09 zhangle1