Setting custom axis measurement unit

3 posts, 0 answers
  1. Kornelije
    Kornelije avatar
    28 posts
    Member since:
    May 2011

    Posted 25 Apr 2012 Link to this post

    I have a data series which is in kW (unit of measurement).

    When the value of the data point is more than several thousands, for example 3500, the graph switches to showing 3.5k on Y-axis, instead of 3500.

    While 3.5k is the same thing as 3500, it is somewhat confusing for the user to have multiple prefixes/sufixes, 3.5k kW.

    Is there an option to force the Y-axis to show full number (3500 in this case)?


  2. Peshito
    Peshito avatar
    493 posts

    Posted 30 Apr 2012 Link to this post

    Hi Kornelije,

    You can control your datapoint labels by using the ItemLabelFormat property of your series like this:
    line.SeriesDefinition.ItemLabelFormat = "#Y";

    More information about label formatting can also be found here:

    Hope this helps.

    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Petar
    Petar avatar
    1 posts
    Member since:
    Jan 2011

    Posted 07 May 2012 Link to this post

    Hello Kornelije,

    Another way to this is by using LabelFormatBehavior. By default it is set to "HumanReadable" - which is exactly the behaviour you described. In order to force the chart to display the full number you should set it to None in your XAML code:
    <telerikChart:radChart >
                    <telerikCharting:ChartArea LabelFormatBehavior="None">

    You can read more about this here.

    I hope my answer was helpful :)
    Kind Regards,
Back to Top