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

RadChart: X-Labels disapear when too many values are shown

1 Answer 14 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 13 May 2014, 03:12 AM
Dear Support,

We are using RadChart v2014.1.224.45 for WPF.
When there are too many values, RadChart displays only first x-Label but rest of X-labels are not shown. Please see the attachment.
This starts happening when RadChart is asked to draw more than approx 1500 data points (which is a business requirement).
Setting the "X Label Step" doesn't help.
Please advise how to resolve this.

Thanks,
Larry

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 14 May 2014, 03:26 PM
Hi Steve,

I am posting my answer to your question also here in order to contribute to our community.

Please note that we suggest our customers to use the new RadChartView components instead of the old RadChart because the new control is much faster, it solves many limitations the old component has, and it is very flexible and easy to set up. You can read about the differences between the controls in theRadChart vs. RadChartView help article.

As I can see from the attached picture the horizontal axis of your chart contains DateTime values. With the new chartview you can use the DateTimeContinuousAxis which is designed to work with such data. The date time axis has few properties which you can use to control the arraignment of its labels. With theMajorStep property you can define the step between two adjacent ticks on the axis. TheMajorStepUnit defines the custom major step of the axis (Day, Month, Year, etc.). You can take a look at the Axis help article that describes most of the axes properties. In addition I attached a sample project that demonstrates RadCartesianChart with a DateTimeContinuousAxis.


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
Chart
Asked by
Steve
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or