See the following example:
http://people.iola.dk/olau/flot/examples/graph-types.html
--
Michael Wood <esio...@gmail.com>
Sorry, I missed the "stacked bar graph" part of your message
initially. I don't know if that can work. The line would have to be
excluded from the stacking somehow, I suppose.
--
Michael Wood <esio...@gmail.com>
OK, got it. You just override the stack: true with stack: null in the
series for the line:
$(function () {
var d2 = [[0, 3], [4, 8], [8, 5], [9, 13]];
var d4 = [];
for (var i = 0; i < 14; i += 0.1)
d4.push([i, Math.sqrt(i * 10)]);
var d5 = [];
for (var i = 0; i < 14; i += 1)
d5.push([i, Math.sqrt(i)]);
$.plot($("#placeholder"), [
{
data: d2,
bars: { show: true }
},
{
data: d4,
lines: { show: true },
stack: null
},
{
data: d5,
bars: { show: true },
}
], { series: { stack: true } });
});
--
Michael Wood <esio...@gmail.com>