Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlapping of labels in half doughnut chart. #22

Closed
hardik1-jain opened this issue Oct 11, 2017 · 3 comments
Closed

Overlapping of labels in half doughnut chart. #22

hardik1-jain opened this issue Oct 11, 2017 · 3 comments

Comments

@hardik1-jain
Copy link

hardik1-jain commented Oct 11, 2017

gitdoughnut

As you can see that two labels are overlapping when values are small relatively and close to each other.Can anybody guide me how to resolve this.

@aloisdeniel
Copy link
Collaborator

You're right, If you have to many values onto a RadialGaugeChart, DonutChart, PieChart they overlap.

I'm working on it.

Your screen isn't from Microcharts through. :)

@hardik1-jain
Copy link
Author

This is the requirement .So I had to tweak.

@aloisdeniel
Copy link
Collaborator

aloisdeniel commented Oct 11, 2017

Sorry I have difficulties to understand what help you need.

You've modified the Microcharts DonutChart class to have your result but you have issues with label positions?

If so, I guess you should rely on SKPaint.MeasureText method to calculate your label positions. Then you will have to do some collision detection from all the frames to add offsets and so on. It's not easy for sure. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants