Skip to main content
100%

Pathetic Bar Chart

✓ Published1🌍 Public
JJoe Hutchins
Last edited Feb 20, 2022
Created on Feb 19, 2022

This example visualizes the 2012 population figures for the first ten countries in an OECD dataset. It renders a horizontal bar chart using React components and SVG rectangles. The code fetches CSV data with d3.csv, then scales the bars with d3.scaleBand and d3.scaleLinear. Each country’s population determines the rectangle width, with the x-axis scaled to the maximum value. The visualization updates once data loads, showing a simple loading message beforehand.

AI-generated description

A program that load in some data about CSS named colors using D3 utilities, and uses React to render a Bar Chart

MIT Licensed

Similar vizzes