Left axis round problem with 0

TeeChart for Javascript for the HTML5 Canvas

Left axis round problem with 0

Postby Menant.D » Thu May 11, 2017 1:32 pm


I upgraded your Javascript version recently and the problem is the left axis label isn't 0 but 001e-11. This problem can be shown with this source code :
Code: Select all
<!DOCTYPE html>
<script src="http://www.steema.com/files/public/teechart/html5/latest/src/teechart.js" type="text/javascript"></script>
<script src="http://www.steema.com/files/public/teechart/html5/latest/src/date.format.js" type="text/javascript"></script>
<script type="text/javascript">
var Chart1;
function draw() {
  Chart1=new Tee.Chart("Canvas1");
  var VmSerieVal=Chart1.addSeries(new Tee.Line());
  VmSerieVal.data.x=[new Date(1454198400000),new Date(1456704000000)];
  VmSerieVal.data.labels=[" janv. 1 "," févr. 2 "];
<BODY onload="draw()">
<canvas id="Canvas1" width="800" height="585">
This browser does not seem to support HTML5 Canvas.

Can I have some help please ?

Posts: 19
Joined: Mon Jun 06, 2016 12:00 am

Re: Left axis round problem with 0

Postby Yeray » Fri May 12, 2017 8:41 am


I've added it to the public tracker:

Thanks for reporting it.

In the meanwhile, you can use the previous version replacing "latest" for "v2015." in the url of the .js:
Code: Select all
<script src="http://www.steema.com/files/public/teechart/html5/v2015." type="text/javascript"></script>
<script src="http://www.steema.com/files/public/teechart/html5/v2015." type="text/javascript"></script>
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
Site Admin
Site Admin
Posts: 8369
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 2 guests