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

Dynamically Calculating MajorTickInterval

1 Answer 48 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Shahid
Top achievements
Rank 1
Shahid asked on 27 May 2014, 09:55 AM
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. 

Thanks,
S. Ansari

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 29 May 2014, 12:29 PM
Hi,

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."


Regards,
Martin
Telerik
 
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.
 
Tags
ChartView
Asked by
Shahid
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or