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

Message ListMessage List     Post MessagePost Message

  How to change e-notation values to actual values in financechart?
Posted by techsoft on Jan-08-2016 20:18
Hi Peter,

I want to change the e-notation from the finance chart, because it is not clear what value is there.
for ex. if Open price = 11556.55  then in the chart its showing Open:"1.155e+4".
Is there any option for this in the code.

Thanks
Techsoft

  Re: How to change e-notation values to actual values in financechart?
Posted by Peter Kwan on Jan-09-2016 02:25
Hi techsoft,

Are you referring to the legend text generated by the programming track cursor?

From your previous messages, I assume you are writing a web application, in which case
the legend text for the programming track cursor is generated by the Javascript in the
sample code. In particular, the "Open:" label is generated by something like:

     ... "Open: " + openValue.toPrecision(4) ...

In Javascript, toPrecision(4) means 4 significant digits will be used to represent the
number. So 11556.55 (which contains 7 significant digits) will be reduced to 4 digits. Like
all sample code in ChartDirector, you can freely modify it to fit your own needs. For
example, you may just display openValue as is (without use toPrecision), like:

     ... "Open: " + openValue ...

Hope this can help.

Regards
Peter Kwan

  Re: How to change e-notation values to actual values in financechart?
Posted by Teschsoft on Jan-11-2016 17:16
Hi Peter,

Thanks for your answer. I got it now.

Techsoft