Skip to content

Interface: ScatterTraceLine ​

Line style (mode lines). shape and smoothing also shape fills.

Properties ​

PropertyTypeDefault valueDescription
color?stringundefinedLine color. Defaults to the marker color (when a single color) or the colorway.
dash?string"solid"Dash style: 'solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot', or a dash list such as '5px,10px,2px'.
shape?"linear" | "spline" | "hv" | "vh" | "hvh" | "vhv""linear"Interpolation between points: straight, 'spline' (centripetal Catmull-Rom, see smoothing), or steps ('hv': horizontal then vertical, …).
simplify?booleantrueDecimate dense monotonic lines to at most 4 vertices per pixel column (min/max, visually lossless). Recomputed when zooming changes the scale.
smoothing?number1Spline tension for shape: 'spline': 0 is straight, 1.3 the smoothest. Range: 0 – 1.3
width?number2Line width in CSS px. Minimum: 0

Released under the MIT License.