DateTimeCategoricalAxis tick frequency

Thread is closed for posting
2 posts, 0 answers
  1. Alex
    Alex avatar
    2 posts
    Member since:
    Aug 2014

    Posted 16 Sep 2014 Link to this post


    If I have a lot of data points the horizontal axis becomes very crammed. Is there a way to scale the data automatically?

  2. Victor
    Victor avatar
    1358 posts

    Posted 19 Sep 2014 Link to this post

    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.


    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.

Back to Top