Hello,
How are you creating the chart?
This seems to work fine for me here:
Code: Select all
<!DOCTYPE html>
<html>
<head>
<title>Testing</title>
<!--[if lt IE 9]>
<script src="../src/excanvas/excanvas_text.js"></script>
<script src="../src/excanvas/canvas.text.js"></script>
<![endif]-->
<script src="../src/teechart.js" type="text/javascript"></script>
<script type="text/javascript">
var three, Chart1;
function draw() {
Chart1=new Tee.Chart("canvas1");
Chart1.panel.format.fill = "#F0F0F0";
Chart1.title.text = "Baseline";
Chart1.addSeries(new Tee.Line([5, 3, 2, 7, 1]));
Chart1.addSeries(new Tee.Line([4, 4, 8, 2, 9])).visible = true;
Chart1.series.items[0].format.stroke.size = 3;
Chart1.axes.left.format.stroke.fill = "red";
Chart1.bounds.width = Chart1.canvas.clientWidth;
Chart1.bounds.height = Chart1.canvas.clientHeight;
Chart1.draw();
}
</script>
</head>
<body onload="draw()">
<br><canvas id="canvas1" width="600" height="400">
This browser does not seem to support HTML5 Canvas.
</canvas>
<br>
</body>
</html>
However, adding this inside <head></head> gives me cut chart, that could be what you are observing:
Code: Select all
<style type="text/css">
#canvas1, html
{
width: 80%;
height: 100%;
}
</style>
Is this what you are doing?