Valuta next to axis value (solved)

Oystein Bjorke 10 aastat tagasi 0
This discussion was imported from CodePlex

Devin19 wrote at 2013-10-16 10:55:

I've made a chart showing amounts of money, and now I want to display the Valuta next to each value on the Y Axis.
Example:
€ 100 instead of 100

Can I manipulate the string that's shown somehow? There is no example doing something like this, and the documentation isn't covering it either.

everytimer wrote at 2013-10-16 15:26:

If you are using LineSeries you can use the LabelFormatString property:
var s1 = new LineSeries() {LabelFormatString = "€ {1:f2}"};
If you are using other series you will need modify the source code to include this behavior.
Good luck.

Devin19 wrote at 2013-10-16 15:41:

I'm using LineSeries, but doesn't this draw it in the chart itself?
I meant I'd like to see the € on the label at the axis on the left.
(I can't see the label in the chart since I'm using the Android version which doesn't support mouse events)

everytimer wrote at 2013-10-16 15:45:

Sorry, I don't quite understand what do you mean. If you want to display "€" on your axis, why not just modify the axis Title?
Good luck

Devin19 wrote at 2013-10-16 15:51:

No problem I didn't explain it good.
I could change the title, but I'd rather see the € sign at each value on the axis.

everytimer wrote at 2013-10-17 01:17:

Then it's just
myAxis.StringFormat = "0 €";
Good luck

Devin19 wrote at 2013-10-17 09:26:

Thanks a lot, that's exactly what I meant :)