Fleet: Marking - Line stroke size

Is it possible to change the linear stroke of the marking? I already know that you can change its color:

markings: [ { yaxis: { from: 0, to: 0 }, color: "#000"}, { xaxis: { from: 0, to: 0 }, color: "#000" }], 

I used this solution to make my axis without a background grid line: display-x-axis-and-y-axis-lines-with-out-the-grid-lines-using-flot

+4
source share
2 answers

Just add a parameter:

  markings: [ { yaxis: { from: 0, to: 0 }, color: "#000"}, { xaxis: { from: 0, to: 0 }, color: "#000" }], markingsLineWidth: 2.5, //number 
+6
source

Along with the markingsLineWidth parameter, which applies to all markings, you can also define lineWidth for each marking:

 markings: [ { yaxis: { from: 0, to: 0 }, color: "#000", lineWidth: 5}, // speficic value { xaxis: { from: 0, to: 0 }, color: "#000" }], markingsLineWidth: 2.5, // default value 

Source Code Links:
Default value: markingsLineWidth: 2
By marking value: var lineWidth = m.lineWidth || options.grid.markingsLineWidth; var lineWidth = m.lineWidth || options.grid.markingsLineWidth;

0
source

Source: https://habr.com/ru/post/1439220/


All Articles