Skip to main content
100%

Example histogram using pareto distribution.

✓ Published0🌍 Public
CCurran Kelleher
Last edited Jun 12, 2015
Created on Apr 25, 2014

This example shows a histogram of 1,000 random values drawn from a Pareto distribution, with only those values between 0 and 5 included. It uses D3 v3 to generate the data via a custom `pareto` function and the `d3.layout.histogram` API, which creates twenty uniformly-spaced bins. The chart renders as an SVG with steelblue bars, and each bar is labeled with its count using `d3.format`. The x-axis is created using `d3.svg.axis`, and the layout applies fixed margins and a linear scale for both axes.

AI-generated description

Similar vizzes