Bar Chart
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 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>