sakrist/VBPieChart

Is it possible to make the segments have different length?

Opened this issue · 2 comments

Hi there, I wonder if it would be possible to draw the segments each with a different length. So it comes spike outside rather than being the same radius. Your animation actually already does it, so I guess it just would have to be adopted a bit?

Yes.
Take a look on _angle and _startAngle in VBPiePiece.m.
With - (void) __angle:(float)angle you can change angle.

I've made an example on swift. Check latest commit.