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

Show Axis Labels for only begging and end of DateTimeContinuousAxis

2 Answers 41 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ernie S
Top achievements
Rank 1
Ernie S asked on 12 Feb 2015, 07:32 PM
Hi.  I have an Area chart that uses an DateTimeContinuousAxis as its x-axis.  Since the number of points that feed it will change often and it is a small chart I would only like to label the "ends" of the axis.  In other words, show a label min and max of the x values and nothing in between.  This way, I can avoid the problem I am having in the attached screen capture.

I can wire to the LayoutUpdated event and set the MajorStep to the difference in the ActualRange Min and Max but that will fire very often and was hoping for a better way.

Thanks
Ernie

2 Answers, 1 is accepted

Sort by
0
Accepted
Milena
Telerik team
answered on 16 Feb 2015, 09:56 AM
Hi Ernie,

You can take advantage of the MaximumTicks property of the DateTimeContinuousAxis: 
<telerik:DateTimeContinuousAxis MaximumTicks="2">
So, you will have only 2 labels of the axis. 

I hope this information is helpful.

Regards,
Milena
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.

 
0
Ernie S
Top achievements
Rank 1
answered on 16 Feb 2015, 06:34 PM
Thank you Milena, that works perfectly!

Ernie
Tags
Chart
Asked by
Ernie S
Top achievements
Rank 1
Answers by
Milena
Telerik team
Ernie S
Top achievements
Rank 1
Share this question
or