Open bernhardwaidacher opened 7 years ago
Same problem here. Did you find a solution by any chance? Tried several things, but no effect. The colors are registered with the dataset though (see legend). Makes me think that it might have something to do with the pie slices drawing area or something. I'll keep on digging, but if you found a solution or workaround could you let me know? Thanks & regards, Guido
No I haven't found a solution. I also think it's some size issue. I'll have a look at this later and let you know
Found it. (For me at least.)
I was passing negative values to the dataset, which makes them not draw (see PieChartRenderer.swift line 151).
Also I found (for me, legend drawn at the right of the pie) that if you set yourPieChart.legend.drawInside = false
then the pie chart is really really small. Had to play with legend.maxSizePercent
and legend.xOffset
and graph.extraLeft/Right/Top/BottomOffset
to get it looking OK.
Oh! Guess that will be the same for me, as I pass negative values too! Thank you
As someone who has also run into this issue, I'd love it if either:
I'm not seeing any colors in my PieChart. This is the code:
Attached is a screenshot.