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 points-only demo, plus point density control #326

Closed
leeoniya opened this issue Oct 7, 2020 · 0 comments
Closed

add points-only demo, plus point density control #326

leeoniya opened this issue Oct 7, 2020 · 0 comments
Labels

Comments

@leeoniya
Copy link
Owner

leeoniya commented Oct 7, 2020

it's not terribly obvious how to achieve a series that only renders points. people have tried various things:

  • setting width: 0 is not ideal because the path is still technically created (wastes CPU), and this prevents the series color from being displayed in the legend (which might be a bug) fixed.
  • setting stroke: "transparent" has similar problems to above

the actual, non-obvious solution is to do paths: u => null.

it is now also possible to get fine-grained control of when the poins should be rendered (determined by avg x distance between points in the visible x range):

paths: u => null,
points: {space: 0},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant