Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1865
xamDataChart Axis Label Format
posted

How do I change the axis label format from % to numeric in Code Behind?

 In XAML I have:

<ig:NumericYAxis x:Name="xmYAxisSecondary" MajorStroke="Transparent" Label="{}{:P3}">

 

However, in code behind, I need to change the Label format to number (1,999) based on user selection.

I need to say something like...

this.xmYAxisSecondary.Label = "{}{:D}";

 

How do I do this?

 

Thanks.

 

 

  • 35319
    posted

    Hello,

     

    I am just checking if you require any further assistance on the matter.

  • 35319
    posted

    Hello,

     

    I have been looking into your post and I can suggest you try something like this :

     

    this.xmYAxisSecondary.Label = "{:0.000}";

     

    Let me know, if you need any further assistance on this matter.