Create a Bar Chart
✓ Published0🌍 Public
Aarcox80
Last edited Sep 23, 2017
Created on Sep 23, 2017
This simple bar chart displays the relative frequency of five spoken languages, with Italian highlighted in green and all bars turning red on hover. Built with D3 v4, it loads tab-separated data from `languages.tsv` and renders SVG rectangles. The chart uses `d3.scaleBand` for the categorical x-axis, `d3.scaleLinear` for the y-axis, and `d3.axisBottom`/`d3.axisLeft` for tick labels, with the y-axis formatted as percentages.
AI-generated descriptionBuilt with blockbuilder.org
forked from <a href='http://bl.ocks.org/jbelmont/'>jbelmont</a>'s block: <a href='http://bl.ocks.org/jbelmont/2886fb042412ded3e40bf5cf168413b6'>Create a Bar Chart</a>
mit Licensed