Skip to main content
100%

Bar Chart

✓ Published0🌍 Public
AAlvaroMoro
Last edited Jul 14, 2018
Created on Jul 14, 2018

This bar chart visualizes the frequency of letters in the English language, using a TSV file as its data source. The chart loads and parses the data with `d3.tsv`, formats percentage labels via `d3.format`, and encodes the x- and y-positions using `d3.scale.ordinal` and `d3.scale.linear`. Axes are rendered with `d3.svg.axis`, while `d3.max` computes the domain. When the page loads, bars animate upward over one second via chained `.transition().duration(1000)`, starting from the bottom of the chart before settling into place.

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>

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/5cebc9137ffcd6271071'>Bar Chart</a>

forked from <a href='http://bl.ocks.org/thoma2nm/'>thoma2nm</a>'s block: <a href='http://bl.ocks.org/thoma2nm/59ad8df8112637667982'>Bar Chart</a>

mit Licensed

Similar vizzes