contex icon indicating copy to clipboard operation
contex copied to clipboard

Add markers to LinePlot

Open mindok opened this issue 4 years ago • 1 comments

Add an option to LinePlot for markers.

type: circle, square, diamond, triangle (default to cycle through these in order for each series) size: (with SVG it’s all relative, but figure out a sensible default) filled: true or false, default true colour will be the colour of the line

Note that the plot content protocol will need to be extended to provide "defs" for a given dataset that can be embedded at the top of the SVG ahead of the main plot content.

Options passed in like this:

#show markers with defaults
markers: true 

#show markers explicitly, setting marker properties for each series
markers: [
  [type: :circle, size: 3, filled: false], 
  [type: :square, filled: false],
] 

mindok avatar May 01 '21 07:05 mindok

@mindok this would be amazing!

megalithic avatar Feb 01 '22 21:02 megalithic