GetSeriesMinMax min value isuue
Posted: Thu Mar 16, 2017 8:58 pm
Hi,
I assigned an array of series points to a PointLineSeries in ViewXY. After that, I tried to get the min value from the Y axis using the below:
Now, I wasn't sure if the minVal returned is correct in the above statement. So, I tried the following piece of code in watch
where seriePtsTemp is the array that I am assigning to the PointLineSeries and the value returned is much less that minVal.
As far as the maxVal is concerned, the value matches with Max() to the highest precision.
This happens only the 1st time when I am creating the PointLineSeries (I am adding the pls to the PointLineSeries list of ViewXY before running above statements).
Thanks.
Regards,
Lokesh
I assigned an array of series points to a PointLineSeries in ViewXY. After that, I tried to get the min value from the Y axis using the below:
Code: Select all
double minVal = 0, maxVal = 0;
ownerView.YAxes[pls.AssignYAxisIndex].GetSeriesMinMax(out minVal, out maxVal);
Code: Select all
seriePtsTemp.Select(pt => pt.Y).Min()
As far as the maxVal is concerned, the value matches with Max() to the highest precision.
This happens only the 1st time when I am creating the PointLineSeries (I am adding the pls to the PointLineSeries list of ViewXY before running above statements).
Thanks.
Regards,
Lokesh