linewidth

The linewidth parameter controls how thick a line is drawn. It accepts a number (integer), typically in the range of 1 to 5.

  • 1 → Very thin line (default).

  • 2 → Thin but clearer line.

  • 3 → Medium thickness (easy to see).

  • 4 → Thick line (emphasis).

  • 5 → Very thick line (highlighted / strong emphasis).

Example

// Thin dashed red line
band.line("Resistance", 2000, "#FF0000", 2, 1);

// Thick solid green line
band.line("Support", 1000, "#00FF00", 0, 4);

Warning

Good Practice

Last updated