Manually set Horizontal Axis

2 posts, 0 answers
  1. Bárbara
    Bárbara avatar
    16 posts
    Member since:
    Nov 2015

    Posted 12 Feb Link to this post

    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?

  2. Ivan
    Admin
    Ivan avatar
    44 posts

    Posted 17 Feb Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top