Hi,
I have an application where I use several plots in the same graph (and several graphs stacked under each other). The x axis is a timeline constructed from with DateTime array, the y axis holds data values.
The previous version of this application used cursor to indicate the Y data value at a specified point in time (just by hovering the mouse, and snapping to the nearest point).
For the new version, it is preferable to hover the mouse, but be able to extract the Y values from all plots at the same time in a text box, like this:
Y data 1 value: 0.2
Y data 2 value: 1,4
Y data 3 value: 2.8
Y data 4 value: 8.3
At time 12/12-2008 08:00
I have tried all kinds of methods to extract the data at a specified time position, but they do not work as expected. I need input on how to obtain these values. I need something like (pseudo)
foreach (Plot plot in Graph.Plots)
double dataValueOfThisPlot = plot.GetDataAtTime(new DateTime(12, 12, 2008 ,. etc.....))
- Thanks a lot!