dash
Line dash patterns.
#Functions
#dash.customfunction
A custom dash pattern: dash, gap, dash, gap ... in pixels (up to 8 segments of 0.5-32 px). For plots, levels and the line style of lines, boxes and polylines.
dash.custom(segments: const float, …): string| Parameter | Type | Description |
|---|---|---|
segments | const float | Dash and gap lengths in pixels. |
Returns string.
Example
const ls = input.linestyle(dash.custom(6, 3, 1, 3), "Line style")Since ChartScript 1
#Constants
| Name | Type | Description |
|---|---|---|
dash.dashdot | string | Dash: dash, dot. |
dash.dashed | string | Dash: dashes. |
dash.dotted | string | Dash: dots. |
dash.long | string | Dash: long dashes. |
dash.solid | string | Dash: a solid line. |