是否可以更改标记的线条笔画?我已经知道可以改变它的颜色:
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;