Bar Chart
This bar chart displays the frequency of each letter in the English alphabet, sorted alphabetically along the x-axis with percentage values on the y-axis. The data comes from a TSV file and is rendered as SVG rectangles that turn brown on hover. The code uses d3.tsv for parsing, d3.scale.ordinal for x-position, d3.scale.linear for y-scaling, d3.max for domain computation, and d3.svg.axis for both axes, with d3.format applied to the y-axis ticks for percentage display.
AI-generated descriptionThis 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:
- d3.tsv - load and parse data
- d3.format - format percentages
- d3.scale.ordinal - x-position encoding
- d3.scale.linear - y-position encoding
- d3.max - compute domains
- d3.svg.axis - display axes
forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/3885304'>Bar Chart</a>