Skip to main content
100%

Area Label Test

✓ Published0🌍 Public
CCurran Kelleher
Last edited Feb 7, 2018
Created on Jul 27, 2017

This example tests automatic label placement for stacked area charts. Four colored streams animate every two seconds, with white labels positioned inside each area. The code uses d3.stack with wiggle offset and d3.area to render paths, while the d3-area-label library computes label transformations during a transition. Data is procedurally generated random walk series, rendered as SVG with an ordinal color scale and curveBasis interpolation.

AI-generated description

Uses d3-area-label to position labels on a StreamGraph.

Inspired by Noah Veltman’s Block: Stacked area label placement

Built with blockbuilder.org

<div align="center"><img src="http://simplehitcounter.com/hit.php?uid=2287102&f=16777215&b=0" border="0" height="18" width="83"></div>
mit Licensed

Similar vizzes