Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Chart > Y axis label format

Answered Y axis label format

Feed from this thread
  • RoxanaC avatar

    Posted on Feb 8, 2010 (permalink)

    Hello!
    I use the following line in my code:
    this.telerikChart.DefaultView.ChartArea.AxisY.DefaultLabelFormat = "#VAL{N0} " + unitName + " ";



    I try to format the Y axis labels in a way that it shows the actual value concatenated with a specific unit name, but the way provided by you in the tutorial give me only rounded values concatenated with the unit name - like in the image attached labelformat.png - and I get on Y axis few times 0 values, few 1 values and not the real values that I need (shown correctly but without unit in labelformatnorounding.png)

    What is the correct format string if I don.t want this rounding?

    Thank you!
    Roxana

    Reply

  • Answer Ves Ves admin's avatar

    Posted on Feb 10, 2010 (permalink)

    Hello Roxana,

    You can use this format:

    "#VAL" + unitName + " "

    Note that #VAL is used with no additional formatting.

    Regards,
    Ves
    the Telerik team

    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
    Follow the status of features or bugs in PITS and vote for them to affect their priority.

    Reply

  • Q1 Webinar Week
  • RoxanaC avatar

    Posted on Feb 10, 2010 (permalink)

    Right! I should have tried it!
    Thank you!

    Reply

  • Muhammad avatar

    Posted on Mar 24, 2011 (permalink)

    Hi, 
    Can i have labels of Y-axis displayed in the center of graph. Right now Y axis on the left side and X xis labels on the bottom. I want both to be displayed i the middle of graph.

    Reply

  • Yavor Yavor admin's avatar

    Posted on Mar 29, 2011 (permalink)

    Hi Muhammad,

    Presently, the requested functionality is not available out of the box. The labels are positioned along the x and y axis, and there is no straightforward option to reposition them along the middle of the graph.

    Regards,
    Yavor
    the Telerik team

    Reply

  • Q1 Webinar Week

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Chart > Y axis label format
Related resources for "Y axis label format"

WPF Chart Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]