12-01-2010 07:29 PM
Hi,
Does anyone know how I can get access to, say, the last 3 Y values added to the chart?
Thanks,
Ronnie
12-02-2010 09:12 AM
Hi Ronnie,
The values that are added to the chart should be stored in the yData array that you pass into the function. You could access this array to get the last 3 values added to the graph. Have a great day!
Best Regards,
Adam G
12-02-2010 10:39 AM - edited 12-02-2010 10:40 AM
Hi Adam,
Perhaps I misunderstood your solution, but I'm not using an array. The values are being added one at a time using the following where yData is a single value, xInc = 1, and bChartPerRow = False.
CWGraph.ChartY yData [, xInc = 1] [, bChartPerRow = True]
Is there are a property or method that will give me access to the graph data without my code having to keep a copy?
Many thanks,
Ronnie
12-03-2010 10:53 AM
Hello Ronnie,
There doesn't seem to be a way to get the last values using a property or a method. I believe your best bet will be to keep an array in your code with the last 3 values added to your graph. Have a great day!
Best Regards,
Adam G