Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
TheOneTheOnlyJJ opened this issue Dec 24, 2024 · 0 comments

Comments

@TheOneTheOnlyJJ
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant