我有一个Flot图表,我想在其父容器中跨越100%.只要我xaxis
show
关闭了选项,它就像我想要的那样工作.
但是一旦打开它,就会在左侧增加一个间隙(从附图中可以看出).权利很好.
有任何想法吗?这是我的网格和xaxis设置:
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.