Circles Legend
This example demonstrates a legend for circle-marked data, using the same linear scale as the main visualization to encode values. It shows three reference circles sized for data values of 50, 150, and the maximum value, with dotted leader lines and numeric labels indicating the encoded quantity. The implementation uses D3 v4’s `d3.scaleLinear` for the mapping, SVG circles, lines, and text elements, and reads sample data from an inline array. A distinct visual pattern links each circle’s radius to a numeric value through the shared scale.
AI-generated descriptionWhen you encode data with a circle, create a legend using the same scale.
forked from <a href='http://bl.ocks.org/HarryStevens/'>HarryStevens</a>'s block: <a href='http://bl.ocks.org/HarryStevens/b779b431075d1a2c5710e9b826736650'>Circles Legend</a>
forked from <a href='http://bl.ocks.org/lorenzopub/'>lorenzopub</a>'s block: <a href='http://bl.ocks.org/lorenzopub/eb3a1c411153dcabf18a7f8b0b0063ac'>Circles Legend</a>