Skip to main content
100%

Horizontal Bar Chart Sort

✓ Published0🌍 Public
Aadkinsc
Last edited Sep 28, 2017
Created on Sep 28, 2017

A horizontal bar chart displays letter frequencies from a TSV data file, with bars sorted ascending by frequency value. The visualization uses D3 v4’s `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the numeric x-axis, rendered as SVG rectangles. The code applies `d3.axisTop` and `d3.axisLeft` for axes, and bars change color on hover. The data is loaded via `d3.tsv` and sorted using a comparison function on the frequency field.

AI-generated description

forked from <a href='http://bl.ocks.org/rcrocker13/'>rcrocker13</a>'s block: <a href='http://bl.ocks.org/rcrocker13/66a11b84ff86edc61ffb61b3d99cf02a'>Horizontal Bar Chart Sort</a>

mit Licensed

Similar vizzes