|
Scaling ration problem |
Posted by Norm on Feb-26-2018 15:19 |
|
Hi,
I have a problem with scale ... I would like set a width for my realtime chart to 1000
But if I set a width over 400, a ratio scale is bad ...
What I have to set to force width for each entry to 1 pixel?
Here an image attached display that I want :
|
Re: Scaling ration problem |
Posted by Peter Kwan on Feb-26-2018 22:32 |
|
Hi Norm,
You can set the x-axis scale. For example, if you have 4 data points per second, and if the chart contains 1000 pixels/points, the x-axis range should be 1000 / 4 = 250 seconds.
For example, in the original VB6 realtime code sample chart, you can configure the x-axis scale to be like:
' The x-axis is 250 seconds long
Call c.xAxis().setDateScale(lastTime - 250, lastTime)
Hope this can help.
Regards
Peter Kwan |
Re: Scaling ratio problem |
Posted by Norm on Feb-27-2018 22:05 |
|
Thanks Petern,
Work fine ! |
|