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

Voronoi mark #812

Closed
mbostock opened this issue Mar 16, 2022 · 2 comments · Fixed by #917
Closed

Voronoi mark #812

mbostock opened this issue Mar 16, 2022 · 2 comments · Fixed by #917
Labels
enhancement New feature or request

Comments

@mbostock
Copy link
Member

No description provided.

@mbostock mbostock added the enhancement New feature or request label Mar 16, 2022
@Fil Fil mentioned this issue Mar 18, 2022
@Fil
Copy link
Contributor

Fil commented Mar 18, 2022

Here are a few explorations of a delaunay/voronoi plugin, written as a transform. However this should probably be done as initializers/layouts (#801) since the x and y dimensions are not separable (Delaunay/Voronoi being based on the euclidian distance on the plane).

https://observablehq.com/@observablehq/plot-delaunay-voronoi-mark-812
untitled (22)
untitled (23)
untitled (24)
untitled (25)

@Fil
Copy link
Contributor

Fil commented Mar 28, 2022

Here's the same exploration, but this time as an initializer:
https://observablehq.com/@observablehq/plot-delaunay-layout-812

Built on top of Plot 0.5 (pre-release).

My current feedback with custom initializers and transforms:

  • dealing with z/stroke/fill is very tedious.
  • this initializer doesn't compose with the others because Plot.composeInitializers is not exported (but it's just a matter of exporting it as we do for Plot.transform). Solved with Plot.initializer()

@mbostock mbostock mentioned this issue Jun 7, 2022
14 tasks
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

Successfully merging a pull request may close this issue.

2 participants