Dynamically Calculating MajorTickInterval

2 posts, 0 answers
  1. Shahid
    Shahid avatar
    2 posts
    Member since:
    Jun 2013

    Posted 27 May 2014 Link to this post

    Hello Team,

    I am using RadChartView for displaying thousand of data in one view. But X-axis label is not in view-able, Here CategoricalAxis  of HorizontalAxis class is getting used for some reason. I want to show  maximum 10  x-axis labels at x-axis while scrolling and zooming. Here I want to manage these with the help of MajorTickInterval property of  CategoricalAxis. 

    Now my requirement is that, calculating MajorTickInterval value dynamically. And these need number of visible data point in current view. 

    S. Ansari
  2. Martin Ivanov
    Martin Ivanov avatar
    1408 posts

    Posted 29 May 2014 Link to this post


    One of my colleges replied your question in the Hide Vertical Scrollbar forum. The next following lines are quoted from there:

    "Unfortunately, there is no built-in functionality for getting the number of the visualized points. However, you can count those UIElements manually. 

    In order to do this you can use the GetDataPointVisual() method of the series. You can traverse all data points of the series and call that method for everyone."

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
Back to Top