Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
AAdamBlaine1
Last edited Feb 4, 2016
Created on Feb 4, 2016

This bar chart displays the frequency of each letter in the English alphabet, using steelblue bars that turn brown on hover. The chart is rendered with SVG and loads its data from a TSV file containing letter-frequency pairs. It uses D3’s ordinal scale for the x-axis (letters) and a linear scale for the y-axis (frequencies, formatted as percentages), with axes generated via `d3.svg.axis`. The code leverages `d3.tsv` for data parsing, `d3.max` to set the domain, and D3’s selection and data-join methods to draw the rectangles. Margins follow the conventional layout, with the y-axis labeled "Frequency".

AI-generated description

This simple bar chart is constructed from a TSV file storing the frequency of letters in the English language. The chart employs conventional margins and a number of D3 features:

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3885304'>Bar Chart</a>

Similar vizzes