mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.08k stars 1.26k forks source link

[charts] Listener for X axis value in tooltip #14689

Open ceyxasm opened 1 day ago

ceyxasm commented 1 day ago

Steps to reproduce

Not exactly a new bug; but I want to be be able to update the value of a variable depending upon the value showed on a tool tip; for custom rendering of more info ( the info that needs to be rendered is not related to MUI-X

image For example here, hovering shows a tooltip with coordinates (5, 8.5) and I want to be able to update an internal state variable with these values. And I am not sure how exactly to do this.

If I have the time-stamp of the point being explored, I can generate and show more information about the time-stamp (ex: events that happened at that time) which could explain the corresponding value in Y-axis

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

No response

Search keywords: interactive display,

michelengelen commented 1 day ago

@JCQuintas could you help out here please?