是否可以更改标记的线条粗细?我已经知道可以更改它的颜色:
markings: [ { yaxis: { from: 0, to: 0 }, color: "#000"},
{ xaxis: { from: 0, to: 0 }, color: "#000" }],
我使用了这个解决方案,使我的坐标轴没有背景网格线: display-x-axis-and-y-axis-lines-with-out-the-grid-lines-using-flot
是否可以更改标记的线条粗细?我已经知道可以更改它的颜色:
markings: [ { yaxis: { from: 0, to: 0 }, color: "#000"},
{ xaxis: { from: 0, to: 0 }, color: "#000" }],
我使用了这个解决方案,使我的坐标轴没有背景网格线: display-x-axis-and-y-axis-lines-with-out-the-grid-lines-using-flot
markings: [ { yaxis: { from: 0, to: 0 }, color: "#000"},
{ xaxis: { from: 0, to: 0 }, color: "#000" }],
markingsLineWidth: 2.5, //number
除了适用于所有标记的 markingsLineWidth
选项外,您还可以针对每个标记定义 lineWidth
:
markings: [ { yaxis: { from: 0, to: 0 }, color: "#000", lineWidth: 5}, // speficic value
{ xaxis: { from: 0, to: 0 }, color: "#000" }],
markingsLineWidth: 2.5, // default value
源代码链接:
默认值:markingsLineWidth: 2
每个标记值:var lineWidth = m.lineWidth || options.grid.markingsLineWidth;