Multiple Y Axis percentage point labels

2 posts, 0 answers
  1. MacKenzie Mickelsen
    MacKenzie Mickelsen avatar
    10 posts
    Member since:
    Sep 2009

    Posted 02 Apr 2012 Link to this post

    Hello All

     I have having a problem getting a series point labels to show up correctly when we have multiple Y-Axises. Currently what I am doing is creating a new AxisY object and setting it's properties. I set the DefaultLabelFormat to "0.00%" This causes the new Y-Axis's Tick values to show up correctly formatted (i.e. 10.00%, 20.00%, and so on) but the point labels show up 0.10 or 0.67. Am I doing something wrong? I tried setting the item default label property on the mapping object but to no avail. 

    Any help or suggestions would be most appreciated.

    Thanks in advance
  2. Petar Marchev
    Petar Marchev avatar
    996 posts

    Posted 03 Apr 2012 Link to this post


    Have you also set the ItemLabelFormat property of the series definition?

    The code below should work for both the labels in the additional Y axis and the labels of the items in the series:
    <telerik:RadChart x:Name="RadChart1" >
        <telerik:LineSeriesDefinition ItemLabelFormat="0.00%" />
       <telerik:ItemMapping DataPointMember="YValue" FieldName="" />
          <telerik:AxisY DefaultLabelFormat="0.00%" />

    public MainPage()
      this.RadChart1.ItemsSource = new double[] { 0.0005, 0.0016, 0.0014, 0.0011, 0.0010, 0.0005};

    Petar Marchev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top