6. linear-x-axis histogram
This histogram visualizes the distribution of 1,000 randomly generated samples from a Bates distribution, binning the data at regular intervals along a linear x-axis. Counts per bin are displayed as white text atop steelblue bars. The chart uses D3 v4’s `d3.histogram` to bin data, `d3.scaleLinear` for the axes, and `d3.axisBottom` for tick marks, which are positioned between bars to clarify bin boundaries. The y-axis height reflects each bin’s count, and the SVG output is styled via CSS classes.
AI-generated descriptionThis chart shows a histogram of a Bates distribution. The data is randomly generated. The values are then binned at regular intervals using D3’s histogram layout. The x-axis uses a linear scale, such that the tick values appear between bars; this provides better indication that each bar represents the count of values between its surrounding tick values.
See also this histogram of a log-normal distribution of time durations.
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3048450'>Histogram</a>