Chart.Arc.InRange does only work in some conditions and does not allow an arc to span over 0°.
In the jsbin you will see that the current implementation is not able to measure that the current mouse position of (225°) is in range in the following arcs:
- [0° - 360°]
- [200° - 0°]
- [90° - 230°]
I also added a fixed version which calculates the isBetween result correctly.
Chart.Arc.InRange does only work in some conditions and does not allow an arc to span over 0°.
In the jsbin you will see that the current implementation is not able to measure that the current mouse position of (225°) is in range in the following arcs:
I also added a fixed version which calculates the isBetween result correctly.