Skip to content
This repository was archived by the owner on May 20, 2026. It is now read-only.
This repository was archived by the owner on May 20, 2026. It is now read-only.

Give access to the Point chart coordinates in draw functions to IntersectionPoint, SelectionHighlightPoint and SelectionHighlightPopUp #181

Description

@TheOneTheOnlyJJ

As the title suggests, the draw functions in the mentioned classes should give access to the actual data Point coordinates, not just the canvas location coordinates.

Adding a new Point method, getCanvasCoordinates, would enable passing the Point to these functions and allow access to the canvas coordinates.

My use case is applying a color gradient to both the SelectionHighlightPoint and SelectionHighlightPopUp, depending on the chart y value. However, I can only access the canvas y coordinate, so cannot properly calculate the linear interpolation (lerp) factor depending on the chart y coordinate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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