Left axis round problem with 0

TeeChart for JavaScript for the HTML5 Canvas
Post Reply
Menant.D
Newbie
Newbie
Posts: 19
Joined: Mon Jun 06, 2016 12:00 am

Left axis round problem with 0

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

Hello,

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>
<head>
<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.title="Test";
  VmSerieVal.data.values=[0,0];
  VmSerieVal.data.x=[new Date(1454198400000),new Date(1456704000000)];
  VmSerieVal.data.labels=[" janv. 1 "," févr. 2 "];
  Chart1.draw();
}
</script>
</head>
<BODY onload="draw()">
<canvas id="Canvas1" width="800" height="585">
This browser does not seem to support HTML5 Canvas.
</canvas>
</BODY>
</HTML>
Can I have some help please ?

Alexis

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

Re: Left axis round problem with 0

Post by Yeray » Fri May 12, 2017 8:41 am

Hello,

I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1861

Thanks for reporting it.

In the meanwhile, you can use the previous version replacing "latest" for "v2015.05.02.1.8" in the url of the .js:

Code: Select all

<script src="http://www.steema.com/files/public/teechart/html5/v2015.05.02.1.8/src/teechart.js" type="text/javascript"></script>
<script src="http://www.steema.com/files/public/teechart/html5/v2015.05.02.1.8/src/date.format.js" 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 Please read our Bug Fixing Policy

Post Reply