angular-charts icon indicating copy to clipboard operation
angular-charts copied to clipboard

Avoid 0 value in pie chart.

Open fizerkhan opened this issue 10 years ago • 4 comments

I draw pie chart with following data

[
    {
        "x": "Chrome",
        "y": [
            9
        ],
        "tooltip": "Chrome"
    },
    {
        "x": "Others",
        "y": [
            0
        ],
        "tooltip": "Others"
    }
]

It draws piechart that show 0 value with small white area. Is there any option to not showing 0 value in pie chart?

fizerkhan avatar Sep 23 '14 15:09 fizerkhan

Are you not getting path attribute errors with this data? On my end the pie chart will not draw unless there is one >0 value in y[0]

chaosfinity avatar Sep 23 '14 15:09 chaosfinity

Yes, Sorry. I changed the first value to 9

fizerkhan avatar Sep 23 '14 17:09 fizerkhan

This is a bug and should be fixed in the next release

chaosfinity avatar Sep 24 '14 16:09 chaosfinity

@chaosfinity Thanks for the quick fix.

fizerkhan avatar Sep 24 '14 17:09 fizerkhan