Open hsellik opened 3 weeks ago
Thanks for the suggestion. Do you have a concrete example?
I struggle to see a dashboard with multiple tooltip moving at the same time. IMHO this kind of feature easily ends up in a chrimast tree effect where everything moves. But that's probably because I never faced a valid use case for it.
Two points to share context:
Thank you for the swift reply!
We are currently developing a dashboard for a physical device which has different metrics we want to observe, such as temperature, voltage (of different comopnents) and some other.
Putting all of them on the same line chart would mean having a difficult to follow Y axis.
Instead, we would like to use several line charts with shared time points, but different Y axis values. If the customer would move on one of the line charts, we would like the x axis line highlight and tooltip to appear on all the charts for the same shared time value.
Summary
Having a controlled highlight allows you to control it in multiple charts at the same time. However, the tooltip does not appear on the controlled highlight. It only appears on the chart that is hovered.
It would be nice if we could also show the tooltip in a controlled way.
Examples
https://mui.com/x/react-charts/tooltip/
Motivation
Instead of putting several lines together on one chart. In some scenarios, it would be more intuitive to put the data on separate charts, but show the tooltip at the same location for all the charts when they are hovered.
Search keywords: chart, controlled, tooltip, synchronized, highlight