Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve last x val on chart (auto x increment)

I am using ChartY(matrix,1,false) so have auto X incrementing. I use GetAxes().Item("XAxis").Maximum
to find the last displayed X on the graph (give or take roundoff brom panning). But how do I find the auto generated X value for the last point graphed?
I saw the discussion that the X,Y of a(all) point(s) can't be retrieved, but somewhere you have to know the X of the last point and the first point (after roll-off) when doing auto increment. Right?
0 Kudos
Message 1 of 2
(2,870 Views)
The CWGraph control is not intended to house your data for recall, but to display it. It is true that the last point's X value is retained for the next call to ChartY, but there is no method or attribute given to retrieve this value.

You can easily calculate this value by creating a variable which holds the size of the array charted multiplied by the auto-increment value.

regards,
Eric
0 Kudos
Message 2 of 2
(2,870 Views)