Hey there! I'm currently utilizing TeeChart for HTML5 and I'm wondering how to create a chart with both stacked and normal series. Specifically, I need two series to be stacked and a third one to remain unstacked (normal). I attempted to utilize the stacked property for individual series but encountered an issue where all series ended up being stacked...
<!DOCTYPE html>
<html>
<head>
<script src="http://www.steema.com/files/public/teechart/html5/v2014.07.31.1.7/src/teechart.js" type="text/javascript"></script>
<script src="http://www.steema.com/files/public/teechart/html5/v2014.07.31.1.7/src/teechart-extras.js" type="text/javascript"></script>
<script type="text/javascript">
var Chart1;
function draw() {
Chart1 = new Tee.Chart("canvas");
Chart1.addSeries(new Tee.Line([1, 2, 3]));
Chart1.addSeries(new Tee.Line([1, 2, 3]));
Chart1.addSeries(new Tee.Line([4, 4, 4]));
Chart1.axes.left.title.text = "Y";
Chart1.title.text = "Stacked Lines";
Chart1.title.format.font.style = "18px Verdana";
Chart1.series.items[0].stacked = true;
Chart1.series.items[1].stacked = true;
Chart1.series.items[2].stacked = false;
Chart1.draw();
}
</script>
</head>
<body onload="draw()">
<canvas id="canvas" width="600" height="400">
This browser does not seem to support HTML5 Canvas.
</canvas>
</body>
</html>