If I have a lot of data points the horizontal axis becomes very crammed. Is there a way to scale the data automatically?
Thanks,
Alex
1 Answer, 1 is accepted
0
Victor
Telerik team
answered on 19 Sep 2014, 07:49 AM
Hi Alex,
Thanks for writing.
Currently there is no automatic scaling but you can pretty easily implement it. You can take three approaches.
The first is to calculate the zoom factor each time you update your data. You need to use ChartPanAndZoomBehavior in this case.
The second would be to have a buffer collection that you visualize and when the buffer overflows you move the overflowing data to a different collection for storage and you are only visualizing the latest data at any given moment.
Finally, you can update the label step of your axis whenever you update your data with more or less points.
Please write again if you have more questions.
Regards,
Victor
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.