I use flot to display simple bar charts. I have single dataset like [ [0,5], [1,6], [2,3], [4,1] ] and I am using this simple code:
myChart = $.plot($('#graphFlot'), [{
data: mdata,
bars: { show: true, fill: 0.9 }
}]
);
Now I would like to display various colors and labels for each bar.
Example bar chart here is how it should look like.
I’ve browsed through many examples and documentation and still do not know how to set this. Is this possible?
Put each bar in its own series and give each series a different label.