Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add markers to LinePlot #46

Open
mindok opened this issue May 1, 2021 · 1 comment
Open

Add markers to LinePlot #46

mindok opened this issue May 1, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@mindok
Copy link
Owner

mindok commented May 1, 2021

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],
] 
@megalithic
Copy link

@mindok this would be amazing!

@mindok mindok added the enhancement New feature or request label Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants