The Linear axis doesn't support the behavior mentioned in your last reply out of the box. Basically, the Linear axis is a continuous one the chart tries to position labels in a numerical manner and at equal distances (evenly distributed). For example, 0, 5 and 10 are evenly distributed, where 2, 6 and 7 are not (because 2 is much closer to 6 than 7 is).
We think that in order to clearly visualize the scenario, it would be best if you leave the numerical axis as it is and use datapoint labels (ShowLabels property of the series). This way, the user will know very well the range of the axis and he will also see the labels of the data points, so their values will be clear too.
If you insist on the look you describe, you can hide the labels on the Horizontal axis using the ShowLabels
property set to false. Then you can create custom annotations for the values you want to display, and position them at the bottom, where the horizontal axis is. You can take a look at the following resources below:
- Custom Annotations
- help article which describes how you can create a custom annotation.
- ChartView Annotation
- online example demo which demonstrates a possible way of using annotation
- SDK example where you can examine the different types of annotations
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