I am trying to plot stacked area ( filled line ) with stacking using flot charts my data is is like
series 1: [0,5],[1,3],[2,2],[3,2],[4,2]
series 2: [0,5],[1,2],[2,null],[3,1],[4,2]
series 3: [0,5],[1,3],[2,2],[3,5],[4,2]
as in above case at point 2, flot is not plotting series 3 : [2,2] I see chart plotting 3 series in stack, but at point 2 its only one value ( series 1 with value 2 )
here is jsfiddle example http://jsfiddle.net/judaq/7/
Trying using a 0 instead of null.
Edit
var series = [{
data: [
[0,5],[1,3],[2,2],[3,2],[4,9]
],
label: "Series 1"
},
{
data: [[0,5],[1,3],[2,2],[3,0],[4,9]
],
label: "Series 2"
}, {
data: [
[0,5],[1,3],[2,2],[3,5],[4,9]
],
label: "Series 3"
}];
This is a known issue with the stack plugin in flot.
See the github issue #740 .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.