Skip to main content
100%

Let's Make a Bar Chart (v4)

✓ Published0🌍 Public
Aadgramigna
Last edited Feb 10, 2017
Created on Feb 10, 2017

This bar chart displays the relative frequency of each letter in the English alphabet, using a simple, static SVG visualization. The code loads letter-frequency data from a TSV file and maps it to rectangles using `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis. Axes are rendered with `d3.axisBottom` and `d3.axisLeft`, with y-axis ticks formatted as percentages. Hovering over a bar changes its fill from steelblue to brown via CSS, while the chart itself is built with D3 v4’s data-join pattern (`enter().append`).

AI-generated description

forked from <a href='http://bl.ocks.org/rcrocker13/'>rcrocker13</a>'s block: <a href='http://bl.ocks.org/rcrocker13/78368af248f42eae9f7cdf8bc530328b'>Let's Make a Bar Chart (v4)</a>

mit Licensed

Similar vizzes