vega / vega

A visualization grammar.

Home Page:https://vega.github.io/vega

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convex Hull

PBI-David opened this issue · comments

Has anyone managed to create a convex hull for grouping points on a scatter chart. Something like the following?

Do we need a new transform for this or is is possible with what we have already?

image

I think one way is adapting the Voronoi transform which uses d3-delaunay which provides a function named delaunay.hull

No matter - I figured it out. I'll upload the spec (all done using signals and transforms in Vega) to the following repository in the next few days once I have cleaned it up a little:

https://github.com/PBI-David/Deneb-Showcase

I'll leave the issue open as native support would be preferable (and this version is slow which you can see if you click the gif link to play)

Alt Text