I've created a Flot stacked bar chart but the blocks don't appear to be stacking - they all start at 0 (at the bottom of the chart).
The values of the 4 blocks are:
- Bright green - 1
- Purple - 28
- Red - 83
- Light green - 195
If it was stacked correctly it should be at a height of 307. Any thoughts on what's wrong?
drawLineChart: function(el,data,ticks,labelstr) {
var plot = $.plot(el, data, {
series: {stack: true,
lines: {show: false, steps: false},
bars: {show: true, barWidth: 0.4, align: 'center'}
},
xaxis: {
ticks: ticks
},
yaxis: {
min: 0,
},
grid: {
color: '#aaa',
borderWidth:0,
axisMargin:0,
hoverable: true,
autoHighlight: false
},
legend: {
show: true,
position: "ne",
noColumns: 1
}
});
}