Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

LabelFormatter return wrong formatter #1162

Open
edugolive opened this issue Jun 7, 2022 · 0 comments
Open

LabelFormatter return wrong formatter #1162

edugolive opened this issue Jun 7, 2022 · 0 comments

Comments

@edugolive
Copy link

I'm using the project example and looking at the page "Examples/Wpf/CartesianChart/Basic Bars/BasicColumn.xaml" we have this snippet that uses the LabelFormatter:
<lvc:Axis Title="Sold Apps" LabelFormatter="{Binding Formatter}"></lvc:Axis>

And in codeBehind the "Formatter" is created like this: Formatter = value => value.ToString("N");

So it's a double converted to string with decimals. However, when executing the chart, the label is formatted as follows " 50,00 0,000%", and where does this "0.000%" come from. 50 ToString("N") should just be "50.00"

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant