Skip to main content
100%

Create a Bar Chart

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

This example shows a simple bar chart depicting the frequency of five Romance languages (Spanish, Portuguese, French, Italian, and Romanian) using data loaded from a tab-separated values file. The chart renders as an SVG, with bars colored purple that darken to a reddish hue on hover. It uses D3 v4’s `d3.scaleBand` for the x-axis and `d3.scaleLinear` for the y-axis, along with `d3.axisBottom` and `d3.axisLeft` to display labels and percentage ticks. The y-axis is annotated with the title “Frequency.”

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>

forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/2a39771c0fd637243ff9640480506655'>Create a Bar Chart</a>

mit Licensed

Similar vizzes