Skip to content
ChartDeck ChartScript docs Account Open the terminal

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
ParameterTypeDescription
segmentsconst floatDash and gap lengths in pixels.

Returns string.

Example

ChartScriptFragmentOpen in editor
const ls = input.linestyle(dash.custom(6, 3, 1, 3), "Line style")

Since ChartScript 1

#Constants

NameTypeDescription
dash.dashdotstringDash: dash, dot.
dash.dashedstringDash: dashes.
dash.dottedstringDash: dots.
dash.longstringDash: long dashes.
dash.solidstringDash: a solid line.

The ChartScript documentation is in English for now; translations will follow.