6
我有一個Flot圖表,我想跨越其父容器100%。只要我關閉了xaxis
show
選項,它就像我想要的一樣工作。刪除Flot圖表上的缺口?
但是,一旦我打開它,它會在左側添加一個間隙(正如您可以從附加圖像中看到的那樣)。正確無誤。
任何想法?這裏是我的網格和x軸設置:
grid: {
borderColor: 'transparent',
hoverable: false,
backgroundColor: 'transparent',
minBorderMargin: 0,
borderWidth: 0,
margin: {
top: 10,
right: 0,
bottom: 0,
left: 0
}
},
xaxis: {
show: true,
mode: "time",
timezone: 'browser',
timeformat: "%b",
minTickSize: [1, "month"],
reserveSpace: false,
font: {
size: 11,
}
}
我使用Flot版本0.8.2與jQuery版本1.10.2。
您的圖像不顯示 – dreamweiver
工作適合我。這裏有一個直接鏈接:http://i.stack.imgur.com/8affH.png – Shpigford
哦,它被我的網絡防火牆封鎖了,能不能創建一個jsfiddle,http://jsfiddle.net – dreamweiver