|
Curve on scale |
Posted by Norm on Mar-10-2018 17:41 |
|
Hi,
Since yesterday, a curve appear on the left scale (as this photo), but I didn't found where I made a mistake ?
I think it was not there before !
Do you have an idea ?
Thanks
|
Re: Curve on scale |
Posted by Peter Kwan on Mar-10-2018 19:21 |
|
Hi Norm,
I suspect the line on the left comes with your data. It occurs if you have data points that are outside the x-axis range.
In the original "Simple Realtime Chart" sample code, there x-axis scale is always the same as the time range in the data arrays, so it cannot go outside the x-axis range. In our "Zooming and Scrolling" sample code, because the user can zoom in and out, so the data can go outside the axis range. That is why in those sample code, we add a line "Call c.setClipping()" to ask ChartDirector to clip the line to the plot area. May be you can use the same method. Just add a line:
Call c.setClipping()
Hope this can help.
Regards
Peter Kwan |
Re: Curve on scale |
Posted by Norm on Mar-10-2018 19:52 |
|
Peter Kwan wrote:
Just add a line:
Call c.setClipping()
Hope this can help.
Regards
Peter Kwan
True... Just add c.setClipping on my code and this has resolved my problem !
Thanks again ! |
|