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

Param for Crosshair shows even when mouse is out chart. #460

Open
MatheusChignolli opened this issue Oct 10, 2024 · 0 comments
Open

Param for Crosshair shows even when mouse is out chart. #460

MatheusChignolli opened this issue Oct 10, 2024 · 0 comments

Comments

@MatheusChignolli
Copy link

MatheusChignolli commented Oct 10, 2024

Idea

It would be great if the Crosshair component had a parameter to always display, even when the mouse is outside the chart. This feature would only work if the x and y values are passed to the component.

Implementation Suggestions

  • Add a boolean parameter show to keep the point fixed using the x and y parameters.
  • Add a boolean parameter fixOnClick to allow the component to manage the fixed point when the user clicks on the chart. This way, users wouldn't need to manually manage the x and y values.

Use Cases

  • Filters can highlight specific points on charts, allowing one or multiple points to be fixed at the same time (this may require adjustments for handling multiple x values).
  • Clicking on the chart to fix a specific point.

References

This idea came to me while contributing to another repository to improve UX. I researched how it works here: File link


This is a cool lib, greate work! 🚀

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

No branches or pull requests

1 participant