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

Message ListMessage List     Post MessagePost Message

  Rounding in the legend of the FinanceChart
Posted by Dmitry on Jul-08-2015 10:14
Hello,

When I use use the FinanceChart to display a chart, it rounds off the Open, Close, High,
and Low prices in the Legend.  Sometimes it rounds to 0 decimal places and sometimes to
1 decimal places.  How do  I specify rounding to 2 decimal places for the Open, Close,
High, and Low prices in the Legend?

Thank you
Dmitry

  Re: Rounding in the legend of the FinanceChart
Posted by Peter Kwan on Jul-09-2015 04:16
Hi Dmitry,

You can use FinanceChart.setNumberLabelFormat to control the numeric formatting.

http://www.advsofteng.com/doc/cdnet.htm#FinanceChart.setNumberLabelFormat.htm

For example, in Java/C#, it is like:

myFinanceChartObj.setNumberLabelFormat("2");

Regards
Peter Kwan