c3 icon indicating copy to clipboard operation
c3 copied to clipboard

Data Percentages hide in donut chart for smaller categories

Open asadchachar opened this issue 9 years ago • 5 comments

I am using c3JS donut chart to diplay expenses. The percentage values for smaller expenses get hide because they have lower area on chart.

Is there any way that all data percentages must be displayed or Is there any way we can show data percentages to point the chart (instead of displaying on chart)? Uploading chart.PNG…

asadchachar avatar Apr 26 '17 03:04 asadchachar

the pic is not available

venkatasandeepd avatar May 02 '17 12:05 venkatasandeepd

image

asadchachar avatar May 02 '17 13:05 asadchachar

this is picture

asadchachar avatar May 02 '17 13:05 asadchachar

if the value is going to be larger, try pie chart if you insist on using donut, show percentage, and data-label will show the original value coming to the issue, try setting donut.label.threshold to minimal level of 0.01 to show.

venkatasandeepd avatar May 02 '17 13:05 venkatasandeepd

yeah it worked for me. Thanks.

asadchachar avatar May 03 '17 07:05 asadchachar