4

I am trying to generate a pie chart with Zingchart library. The thing is if I have long labels the pieces of the pie chart become very small. I do not mind placing this information to the legend in case it is the only solution, but how then I can force the library to not display these labels near the chart pieces?

enter image description here

4

1 回答 1

5

有几种方法可以解决这个问题。要删除每个图表片段上的标签,您可以将value-box对象设置为具有visible : false. 演示: http ://demos.zingchart.com/view/XEJLFO96

另一个建议是用换​​行符 \n 分解长文本行以缩短每个标签的宽度。演示:http ://demos.zingchart.com/view/JKUGHGMD

我是 ZingChart 团队的一员,如有任何其他问题,请随时与我们联系。

于 2015-06-28T18:38:39.090 回答