jfree/jfreechart

Ringplot.setCenterText failure in JfreeChart1.0.19

weiwei-lu opened this issue · 3 comments

When creating a ring graph using jfreechart1.0.19, the center font of the ring graph is not displayed when the first data in the set is zero
image
I use DefaultPieDataset setValue add data set,when value in the first set is equal to zero then Ringplot.setCenterText is invalidated
image
It looks like this

This is what I want
image

Tested on v1.5.3, you may be able to adapt the approach shown here using DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW.

在 v1.5.3 上进行了测试,您可以使用此处显示的方法进行调整。DEFAULT_MINIMUM_ARC_ANGLE_TO_DRAW

Cool! I tried the method you gave me and it solved my problem perfectly