ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Bar Char - Need Thousand Separtor comma in Y Axis Values
Posted by Adamraju on Nov-17-2023 16:45
Hi Team ,

We are having a Bar Chart , which is having values like 2,000,000  , 3,000,000 ,4,000,000

but in the barchart it shows like 2000000 ,3000000 ,4000000

How can we add a comma as Thousand separator while displaying in Y Axis


Thank you

  Re: Bar Char - Need Thousand Separtor comma in Y Axis Values
Posted by Peter Kwan on Nov-18-2023 00:48
Hi Adamraju,

Your may use:

c.yAxis().setLabelFormat("{value|,}");

See:

https://www.advsofteng.com/doc/cdnet.htm#Axis.setLabelFormat.htm
https://www.advsofteng.com/doc/cdnet.htm#paramsub.htm

Best Regards
Peter Kwan

  Re: Bar Char - Need Thousand Separtor comma in Y Axis Values
Posted by choynsg on Nov-26-2023 13:00
Hello,

How do I display numbers by adding units such as K, M, or G?

e.g) 1.2k, 34.5M, 6.7G