Constraint Relaxation - Prices
This example visualizes monthly average price histories for multiple commodity series, drawing small-multiple line charts across a grid. Unlike typical faceted plots, the chart labels are positioned using a constraint relaxation algorithm borrowed from the Dorling Cartogram approach: each label is simulated as a charged particle that repels neighbors and is pulled toward its target data point, iteratively reducing overlaps. The result is a clean, readable set of annotated mini time-series charts, with SVG rendering and D3 v2, showing how constraint-based layout can untangle dense labeling in small multiples.
AI-generated descriptionAn improvement of Average Price Histories by using constraint relaxation to position the labels, borrowed from the Dorling Cartogram example.
forked from <a href='http://bl.ocks.org/syntagmatic/'>syntagmatic</a>'s block: <a href='http://bl.ocks.org/syntagmatic/4053096'>Average Price Histories II</a>