epezent / implot

Immediate Mode Plotting
MIT License
4.64k stars 516 forks source link

Detecting clicking of axis labels? #428

Open jgarvin opened 1 year ago

jgarvin commented 1 year ago

Given the user clicking on a tick label, I'd like to popup a new window showing a different kind of plot based on the value in the label. The use case is I have a horizontal bar chart indicating total time spent in different components, with the name of each component on the y-axis, and if the user clicks the label I'd like to open a time series plot for that component. Is there any way to detect this currently? The closest thing I found in the demo is the drag and drop section, since it lets you click on the area where the labels would go, but I'm not actually trying to drag and drop anything so I'm not sure how to build this out of that.