This is a migrated thread and some comments may be shown as answers.

DateTimeCategoricalAxis tick frequency

1 Answer 51 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 16 Sep 2014, 03:33 PM
Hello,

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

Sort by
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.

 
Tags
Chart
Asked by
Alex
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or