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

Message ListMessage List     Post MessagePost Message

  How to display a suffix to the value of the left scale
Posted by Norm on Sep-05-2022 21:51
Attachments:
In the next image, completely on the left we will see the automatic scale of the values:
0
10
20
30
40
50

Is it possible to change these values like these (suffix) ?
0 kBTU
10 kBTU
20 kBTU
30 kBTU
40 kBTU
50 kBTU
Image1.jpg

  Re: How to display a suffix to the value of the left scale
Posted by Peter Kwan on Sep-06-2022 17:14
Hi Norm,

The following is a similar example:

https://www.advsofteng.com/doc/cdcom.htm#multisymbolline.htm

The above example uses % as the unit. The code that does this is:

Call c.yAxis().setLabelFormat("{value}%")

You can change % to kBTU to achieve what you need.

Another common method to specify the unit is in the axis title, like:

https://www.advsofteng.com/doc/cdcom.htm#dualyaxis.htm

Best Regards
Peter Kwan

  Re: How to display a suffix to the value of the left scale
Posted by Norm on Sep-06-2022 18:09
Attachments:
Thanks Peter,

I just tried, and only one part appears, how to enlarge this column ?
Image10.jpg

  Re: How to display a suffix to the value of the left scale
Posted by Norm on Sep-06-2022 18:16
And adjust a left position ?

  Re: How to display a suffix to the value of the left scale
Posted by Peter Kwan on Sep-07-2022 02:28
Hi Norm,

The left side of the plot area is specified by your code using XYChart.setPlotArea. Please modify your code to use a larger value for the left side, so as to leave sufficient space for the labels.

Best Regards
Peter Kwan

  Re: How to display a suffix to the value of the left scale
Posted by Norm on Sep-07-2022 10:09
Attachments:
Good !
Thanks Peter work fine !
thumbs-up-apple.png