AAChartCore-Kotlin icon indicating copy to clipboard operation
AAChartCore-Kotlin copied to clipboard

饼图显示的问题

Open MonkeyNino opened this issue 4 months ago • 5 comments

我的饼图,数据有60多个时,小比例的会显示不充分,有什么方法完全绘制么

Image

MonkeyNino avatar Oct 14 '25 14:10 MonkeyNino

参考这个问题:

  • https://github.com/highcharts/highcharts/issues/7947

中的这个方法:

As I understand this, it is just a case of the pie slice being smaller than the border width. So setting the borderWidth to 0 would fix it.

AAChartModel avatar Oct 15 '25 02:10 AAChartModel

如果还不行的话, 说明这个问题目前没什么好的解法, 参考这个未解决的问题:

  • https://github.com/highcharts/highcharts/issues/16622

本质上还是因为饼图本身的设计就不适合在有限的空间里, 展示过多的数据元素. 太多太小的数据应该归类为 others 其他, 再另外单独用一个新的饼图去进一步显示others 其他的具体内容.

AAChartModel avatar Oct 15 '25 02:10 AAChartModel

太多太小的数据应该归类为 others 其他, 再另外单独用一个新的饼图去进一步显示others 其他的具体内容.

例如官方的这个下钻式的饼图:

  • https://www.highcharts.com/demo/highcharts/pie-drilldown

AAChartModel avatar Oct 15 '25 02:10 AAChartModel

还有这个嵌套式的饼图:

  • https://www.highcharts.com/demo/highcharts/pie-donut

AAChartModel avatar Oct 15 '25 02:10 AAChartModel

还有这种复合式的饼图:

  • https://github.com/apache/echarts/issues/8354

AAChartModel avatar Oct 15 '25 02:10 AAChartModel