ChartDirector Support
Forum Home
Search
Message List
Post Message
[Nov-17-2023 16:45]
Bar Char - Need Thousand Separtor comma in Y Axis Values
(Adamraju)
[Nov-18-2023 00:48]
Re: Bar Char - Need Thousand Separtor comma in Y Axis Values
(Peter Kwan)
[Nov-26-2023 13:00]
Re: Bar Char - Need Thousand Separtor comma in Y Axis Values
(choynsg)
Bar Char - Need Thousand Separtor comma in Y Axis Values
Posted by Adamraju on Nov-17-2023 16:45
|
Reply
|
Monitor
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
|
Reply
|
Monitor
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
|
Reply
|
Monitor
Hello,
How do I display numbers by adding units such as K, M, or G?
e.g) 1.2k, 34.5M, 6.7G