A Vega port of the force testing ground I originally made in D3.
Features I can’t figure out how to port to Vega:
- Need “actualWidth” and “actualHeight” signals for autosized SVG
- Position signal control as
text label <br/> control
(would need feature to specify label’s parent element or specify descriptive text)
- forceX and forceY don’t seem to behave correctly
- Can’t disable/enable link force (may need “enabled” parameter for force)
- Get simulation alpha (likely not possible with vega)
circle radius = collideRadius (problem with using path instead of circle?) (thanks Jeff Heer)
circle stroke color doesn’t like ternary operator (thanks Jeff Heer)