precision for marks and axis lables

TeeChart for Javascript for the HTML5 Canvas

precision for marks and axis lables

Postby 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

Re: precision for marks and axis lables

Postby 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;
samos
Newbie
Newbie
 
Posts: 7
Joined: Thu May 26, 2016 12:00 am

Re: precision for marks and axis lables

Postby 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 ImagePlease read our Bug Fixing Policy
Yeray
Site Admin
Site Admin
 
Posts: 8367
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia


Return to Javascript / HTML5

Who is online

Users browsing this forum: No registered users and 1 guest