plot icon indicating copy to clipboard operation
plot copied to clipboard

markerEnd and variable aesthetics

Open Fil opened this issue 1 year ago • 1 comments

When using markerEnd on a line with variable aesthetics, the marker is shown on each and every segment:

Capture d’écran 2024-06-17 à 11 13 02

This seems wrong, and it would be better to apply markerStart only on the first segment, and markerEnd only the last segment. marker should also probably be applied more sparingly to avoid duplications between the end of a segment and start of the following segment.

There is a work-around, but it doesn't feel great:

Capture d’écran 2024-06-17 à 11 14 13

see https://observablehq.com/@observablehq/plot-whirlpool-arrows

Fil avatar Jun 17 '24 09:06 Fil