Skip to main content
100%

Bar Chart

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

This bar chart displays the total number of Ebola cases for three West African countries—Guinea, Liberia, and Sierra Leone—using steelblue bars that turn brown on hover. The visualization loads data from a TSV file via `d3.tsv`, then uses `d3.scale.ordinal` for the x-axis categories and `d3.scale.linear` for the y-axis frequency scale. Axes are rendered with `d3.svg.axis`, while `d3.max` computes the y-domain, and the chart applies conventional margins around a 960×500 SVG canvas. The code relies on D3.js version 3.5.5, sourced from a gist by BrandonStroud.

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