Skip to main content
100%

Create a Bar Chart

✓ Published0🌍 Public
Aadamverdin
Last edited Sep 23, 2017
Created on Sep 23, 2017

This bar chart displays the relative frequencies of five Romance languages—Spanish, Portuguese, French, Italian, and Romanian—using a simple SVG bar layout. The chart highlights Italian with a distinct green fill, while all other bars remain blue, and hovering over any bar changes its color to dark red. The visualization is built with D3 v4, using `d3.scaleBand` for the categorical x-axis, `d3.scaleLinear` for the numeric y-axis, and `d3.axisBottom` and `d3.axisLeft` for ticks. Data is loaded from a TSV file and parsed with a custom type conversion function that converts frequency values to numbers.

AI-generated description

Built 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

Similar vizzes