WPF – Lineraxis has no decimal number

I want to avoid using decimal numbers in Axis, what should I do?

XAML:

 HorizontalContentAlignment="Stretch">
< br />
/>




DependentValueBinding="{Binding Count }"
IndependentValueBinding="{Binding Category}">


If you are still trying to solve this problem, or others are interested:
The solution is almost baalazamon Just {0: 0.##} will display two decimal places (if they exist) (this is the meaning of “.##”). So what you should write is

Of course, you need to add this:

 
Orientation="Y"
ShowGridLines="True"/>

I hope This will solve your problem.

I want to avoid using decimal numbers in Axis, what should I do?

XAML:

 HorizontalContentAlignment="Stretch">
< br />
/>




DependentValueBinding="{Binding Count }"
IndependentValueBinding="{Binding Category}">


If you are still trying to solve this problem, or others are interested:
The solution is almost written by baalazamon. Just {0:0.##} Two decimal places will be displayed (if they exist) (this is what “.##” means). So you should write

Of course, you Need to add this:

 
Orientation="Y"
ShowGridLines="True"/>

I hope this will solve your problem.

Leave a Comment

Your email address will not be published.