Jump to content
Software FX Community

Setting the currency symbol in ChartFX


User (Legacy)

Recommended Posts

Hi,

I have a rather simple question. I'm trying to change the currency symbol

that appears on the x axis of my chart. I've taken over this application

from someone else and now I'm implementing a currency conversion

functionality. I would like the user to be able to select the currency they

want to see the data in. I don't seem to be able to fingure out how to pass

Chartfx 6.2 the symbol I would like it to display. I would greatly

appreciate any help you could offer.

Thanks,

Garfield.

Link to comment
Share on other sites

You are going to need to create a CultureInfo that has the currency symbol 

you want and set this to chart.Culture.

Sample code:

CultureInfo culture = (CultureInfo) CultureInfo.CurrentCulture.Clone();

culture.NumberFormat.CurrencySymbol = "E";

chart1.Culture = culture;

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

  • 4 years later...

Hi  Padron,

 

I want to have the Yaxis  to be formated in the US Million dollars.. I tried with the above code.. It is not working..

Can I have sample code for converting the number into US Million dollars..

 

thnx ,

krishna

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...