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

Manually set Horizontal Axis

1 Answer 62 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Bárbara
Top achievements
Rank 1
Bárbara asked on 12 Feb 2016, 06:32 PM

Hi,

I am using a RadCartesianChart and for my Horizontal Axis I need to set the values manually, without a range, like this:

0; 125; 1000; 3000; 8000; 12000 and 16000

 How can I do that?

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 17 Feb 2016, 07:59 AM
Hi Bárbara,

In case the labels are not required to be positioned according to their values, you can achieve this using Categorical AxisIn this case on the horizontal axis will display the values from your data points. But bear in mind that they will be positioned on equal distance from one another.

In case the labels need to be positioned according to their values, you can use Linear Axis. But in this case the axis determines on itself the values of the labels. The axis tries to pick such values, that will fit best according the the data that is visualized by the chart. You can exercise some control on the labels by setting the MajorStep property of the linear axis. It specifies a step for the labels which determines at which values will labels be displayed. It is most commonly used with Minimum and Maximum properties.

Regards,
Ivan
Telerik
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
Tags
ChartView
Asked by
Bárbara
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or