Irregular Histogram (Lollipop)
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jan 17, 2012
This example shows the income distribution of a population using an irregular histogram rendered as vertical lollipop sticks. Each line’s height encodes the number of people in a given income bracket, with the x-axis positioned at each bin’s income value and the baseline at the bottom. The visualization uses d3.v3 with SVG lines, a linear x and y scale, and d3.svg.axis for the axes. The data is loaded from a local CSV file, and the bin values are coerced to numbers before setting scale domains.
AI-generated descriptiongpl-3.0 Licensed