Skip to main content
100%

3. scaleBand barChart

✓ Published0🌍 Public
深深度碎片
Last edited Aug 1, 2016
Created on Jul 18, 2016

This example shows a bar chart of letter frequencies in the English language, with each letter labeled on the x-axis and its proportional value on the y-axis. Using D3 v4, the chart employs `d3.scaleBand` for the ordinal x-axis, which maps categories to pixel positions with configurable padding, and `d3.scaleLinear` for the numeric y-axis. Data is loaded from a TSV file containing name-value pairs, and rendered as SVG rectangles with `text` labels showing the numeric value above each bar. The chart is styled with a steelblue fill and cyan text.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/EmbraceLife/'>EmbraceLife</a>'s block: <a href='http://bl.ocks.org/EmbraceLife/96743288660fce0d41d253e3d5ee4521'>4. barChart3.b.v3</a>

gpl-3.0 Licensed

Similar vizzes