Skip to content

Chart.Arc.InRange does not work for custom charts #1301

Description

@jantimon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions