Notice how the minimum value overlaps with the tick mark due to the anchor being pinned to the opposite anchor point:
For other values, for example minValue 4.1, the anchor is set correctly:
Fix
After applying the fix, the anchor point should now be correctly determined by checking if the label is in the < 50% side of the semicircle.
Notes
The change to utils.ts is not related to this bug. calculatePercentage is expected to return values between 0 and 1, but the value > maxValue branch was returning 100.
Hello,
Thank you for the time you are spending to maintain this library.
How to reproduce the bug
This issue can be replicated using the following code :
Notice how the minimum value overlaps with the tick mark due to the anchor being pinned to the opposite anchor point:
For other values, for example minValue 4.1, the anchor is set correctly:
Fix
After applying the fix, the anchor point should now be correctly determined by checking if the label is in the < 50% side of the semicircle.
Notes
The change to
utils.ts
is not related to this bug.calculatePercentage
is expected to return values between 0 and 1, but thevalue > maxValue
branch was returning 100.