views:

342

answers:

1

I need to use a different currency for my Y Axis labels. I read http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/56453466-06b1-4df4-8265-5c63dc18efe5/ but I'm still battling to change the dollar sign to a different char.

A: 

In the FormatNumber event:

if (e.ElementType == DataVisualization.Charting.ChartElementType.AxisLabels)
{
    System.Globalization.NumberFormatInfo nfi = new System.Globalization.NumberFormatInfo();
    nfi.CurrencySymbol = "#";
    e.LocalizedValue = string.Format(nfi, e.Format, e.Value);
}
Ruslan