|
Formatting yAxis Labels |
Posted by Chris on Dec-07-2010 23:39 |
|
Hi there,
i got an XYChart where the values rango from 0 to 6000000000. Because of that,
ChartDirector takes very much spaces just for die label of the yAxis (it displays all the
nine 0's). Is there any way that it instead just displays a shorter version?
Or am I able to separate the use yAxis-data from the displayed yAxis-labels like the xAxis
does?
Thank you,
Chris |
Re: Formatting yAxis Labels |
Posted by Peter Kwan on Dec-08-2010 00:55 |
|
Hi Chris,
You may use Axis.setLabelFormat to configure the label format. For example, in VB/VBScript:
'Use at most 5 digits. If more digits are required, switch to scientific formatting.
Call c.yAxis().setLabelFormat("{value|G5}")
or
'Display in M units
Call c.yAxis().setLabelFormat("{={value}/1000000}M")
Hope this can help.
Regards
Peter Kwan |
|