You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, there is issue with Pie Chart.
Steps to reproduce:
open sample app;
set segments, like 8, 1, 1;
run app, click on small segment, then click on large segment at 0 degree (at the beginning of segment on the screen);
Results: clicks are not working, there is some issue in segment calculation.
Seems like this issue happens when you have large segment, single segment more than 180deg, then part of that segment at the beginning are not clickable.
Please, reply if this issue could be fixed in near future.
The text was updated successfully, but these errors were encountered:
The issue is in calculating dist at PieRenderer.getContainingSegment()
Probably it should be something like this:
double dist = signedDistance(offset, angle); double endDist = signedDistance(offset, lastOffset); if (dist < 0) { // added dist = FULL_PIE_DEGS + dist; // added } // added if(endDist < 0) { // segment accounts for more than 50% of the pie and wrapped around // need to correct: endDist = FULL_PIE_DEGS + endDist; }
Or some fix for signedDistance() method calculations.
Hi, there is issue with Pie Chart.
Steps to reproduce:
Results: clicks are not working, there is some issue in segment calculation.
Seems like this issue happens when you have large segment, single segment more than 180deg, then part of that segment at the beginning are not clickable.
Please, reply if this issue could be fixed in near future.
The text was updated successfully, but these errors were encountered: