precision for marks and axis lables

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
samos
Newbie
Newbie
Posts: 7
Joined: Thu May 26, 2016 12:00 am
Contact:

precision for marks and axis lables

Post by samos » Tue Sep 27, 2016 7:28 am

Hi,
When I have a series with values like 0.0029, 0.003, 0.0031, 0.0032
The left axis will show 0.00 and the marks on the graph also will show 0.00.
Is there a way to change the default precision?

Thanks
Amos

samos
Newbie
Newbie
Posts: 7
Joined: Thu May 26, 2016 12:00 am
Contact:

Re: precision for marks and axis lables

Post by samos » Tue Sep 27, 2016 9:33 am

I found the answer

some thing like:
var decimals = 4;
LineSer.decimals = decimals;
LineSer.vertAxis.labels.decimals = decimals;

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: precision for marks and axis lables

Post by Yeray » Tue Sep 27, 2016 9:39 am

Hello,

You can do something like this:

Code: Select all

            Chart1.axes.left.labels.fixedDecimals = true;
            Chart1.axes.left.labels.decimals = 4;

            Chart1.axes.left.increment = 0.0001;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply