Skip to main content
100%

Constraint relaxation labels

✓ Published0🌍 Public
LLuisSevillano
Last edited Sep 26, 2017
Created on Sep 17, 2017

A multi-line chart of stock prices uses D3 v4 to render SVG paths for each symbol. End-of-series labels overlap, so a simple constraint relaxation algorithm iteratively adjusts each label's vertical position until all are spaced at least 14 pixels apart, triggering an animation. Voronoi overlay paths enable mouseover interactions, while the final labels appear only after this relaxation converges, using data from stocks.tsv.

AI-generated description

Similar vizzes