You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/marks/line.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -361,6 +361,12 @@ Points along the line are connected in input order. Likewise, if there are multi
361
361
362
362
The line mark supports [curve options](../features/curves.md) to control interpolation between points, and [marker options](../features/markers.md) to add a marker (such as a dot or an arrowhead) on each of the control points. The default curve is *auto*, which is equivalent to *linear* if there is no [projection](../features/projections.md), and otherwise uses the associated projection. If any of the **x** or **y** values are invalid (undefined, null, or NaN), the line will be interrupted, resulting in a break that divides the line shape into multiple segments. (See [d3-shape’s *line*.defined](https://d3js.org/d3-shape/line#line_defined) for more.) If a line segment consists of only a single point, it may appear invisible unless rendered with rounded or square line caps. In addition, some curves such as *cardinal-open* only render a visible segment if it contains multiple points.
363
363
364
+
The line mark supports a **halo** option that draws an outline around each series, increasing legibility when lines overlap. The following halo options are supported:
365
+
366
+
***halo** - if true, draws a halo; if a color, sets the halo color; if a number, sets the halo radius
367
+
***haloColor** - the halo color; defaults to *var(--plot-background)*
368
+
***haloRadius** - the halo radius in pixels; defaults to 2
0 commit comments