[英]flot chart does not stack multiple series with null at some points in series
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 ) 就像在上述情况下,在点2处,flot并未绘制序列3:[2,2]我看到图表在堆栈中绘制了3个序列,但是在点2处,它只有一个值(具有值2的序列1)
here is jsfiddle example http://jsfiddle.net/judaq/7/ 这是jsfiddle示例http://jsfiddle.net/judaq/7/
Trying using a 0 instead of null. 尝试使用0而不是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"
}];
http://jsfiddle.net/KieranDotCo/judaq/ http://jsfiddle.net/KieranDotCo/judaq/
This is a known issue with the stack plugin in flot. 这是flot中的堆栈插件的一个已知问题。
See the github issue #740 . 参见github问题#740 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.