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

🧐[问题] How to set separate sizes of ranges, measures, targets of Bullet chart?

Open ekeijl opened this issue 6 months ago • 1 comments

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

I can set the size of all lines/bars with the sizeField: number on the Bullet chart.

How do I set separate sizes for ranges, measures and targets? This does not work:

const config = {
   data,
   color,
   sizeField: {
       ranges: 10,
       measures: 5,
       targets: 3
   }
}

return <Bullet {...config} />;

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

https://codesandbox.io/p/sandbox/proud-sky-7wrfz4

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

In v1.0 this was possible by setting bulletStyle.

ekeijl avatar Aug 15 '24 11:08 ekeijl