Skip to main content
100%

D3JS bar chart

✓ Published2🌍 Public
FFedor Sharygin
Last edited Mar 4, 2021
Created on Feb 28, 2021

This D3.js bar chart displays population figures for ten countries, ordered alphabetically along the vertical axis with horizontal bars scaled by population. It uses `d3.csv` to load the data, `d3.scaleLinear` and `d3.scaleBand` for positioning, and `d3.axisLeft` and `d3.axisBottom` to render the axes. The SVG chart appends rectangles with heights based on band width and fills them with steelblue.

AI-generated description
MIT Licensed

Similar vizzes