Page 1 of 1

Left axis round problem with 0

Posted: Thu May 11, 2017 1:32 pm
by 16578476
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

Re: Left axis round problem with 0

Posted: Fri May 12, 2017 8:41 am
by yeray
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>