I need to show end date irrespective of (Odd/Even)number of data points in the series. Can you please suggest how to achieve this?
answered on 11 Feb 2016, 09:19 AM
Thank you for contacting us.
Let me first explain LabelInterval and MajorStep properties. The LabelInterval property specifies the value indicating that only one on n axis labels will be visible (where n is the value of the property). As for the MajorStep, it specify a step for the major ticks which determines at which values will the major ticks be displayed.
In your case, when you set the LabelInterval to 3 the label will be visible on the third tick. So when you set MajorStep to the total days between the min and max date you are will have only 2 ticks. The last label is not visible because you have only two ticks. You can just adjust the labels on every thick by setting the LabelInterval to 1 which is the default value.
Instead of manually calculating the axis step you can take advantage of the SmartLabelsMode property of the axis which was introduced with the Q2 2015 release. The Axis Smart Labels help article explains in more details how you can use it.
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items