koga koga - 2 months ago 21
Javascript Question

Flot: Markings - Size of line stroke

Is it possible to change the line stroke of markings? I already know that is possible to change the color of it:

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


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

Answer

Just add the option:

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