我flotchart是呈現不正確,在兩個目標瀏覽器(IE8和Firefox)該曲線圖與網格線呈現在flotchart渲染錯
http://i49.tinypic.com/2mo5d8y.png
在Chrome和Safari沒有線出現在數據的前全部,這是期望的結果。在Internet Explorer 8中,圖形呈現爲VML,我能夠將網格線隔離爲vml對象,不幸的是,涉及隱藏這些對象的CSS會很棘手,但僅限於CSS2,然後對於Firefox而言不起作用,其中元素的圖形不會呈現爲單獨的元素。
這裏是圖碼http://jsfiddle.net/gamm/t3Vqh/2/
var dataset = [overdue, open, completed];
var options = {
series: {
stack: true,
bars: {
show: true
}
},
bars: {
align: "center",
horizontal: false,
barWidth: .8,
lineWidth: 0
},
grid: {
borderWidth: 0,
borderColor: null,
backgroundColor: null,
labelMargin: 10,
minBorderMargin: 10
},
yaxis: {
tickColor: "FFFFFF"
},
xaxis: {
tickColor: "FFFFFF",
ticks: [
[1, "Public Works"],
[2, "Sanitation"],
[3, "Mayor"],
[4, "L&I"],
[5, "Police"]
]
},
legend: {
position: 'ne',
show: true
}
};
$.plot($("#example-section15 #flotcontainer"), dataset, options);
如果你禁用堆疊和堆棧插件,你還看到錯誤嗎? – DNS 2013-03-21 15:23:37
@DNS是的,我仍然看到在JSfiddle中嘗試後發現的錯誤,從jsfiddle中刪除堆棧和stack.js並沒有修復錯誤 – CQM 2013-03-21 17:18:13