Skip to content

strokeDashArray affects markers #2131

Open
@prostolyubo

Description

@prostolyubo

Current State

Certain settings on strokeDasharray property may break the markers. Here for instance instead of an arrow on the line we have a tick:
image

Repro

Plot.plot({
  marks: [
    Plot.lineY([[0,5],[5,2],[10,0]], { 
      x: (d) => d[0], 
      y : (d) => d[1],
      strokeDasharray: "1,10",
      strokeWidth:3,
      markerMid: "arrow"
    })
  ]
})

Expected State

strokeDasharray should not affect markers, or there should be a separate property to control it:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions