Skip to main content
100%

d3 Bar Chart

✓ Published1🌍 Public
JJohnPaulPagelerJr
Last edited Mar 13, 2019
Created on Jan 20, 2019
Forked from d3 Bland Canvas

This example renders a horizontal bar chart of population data for the ten most populous countries, sourced from a CSV file. Built with D3.js v5.7.0, it uses `scaleLinear` for the numeric x-axis and `scaleBand` for the categorical y-axis, drawing steel-blue `rect` elements within an SVG canvas. The chart displays axes via `axisLeft` and `axisBottom`, and populates bars by joining data to SVG groups.

AI-generated description

This is a work through example of a d3 bar-chart from Curran Kelleher published on Youtube: [Making a Bar Chart with D3.js and SVG] (https://www.youtube.com/watch?v=NlBt-7PuaLk&index=7&list=PL9yYRbwpkykvOXrZumtZWbuaXWHvjD8gi)

MIT Licensed

Similar vizzes