Pathethic Barchart
✓ Published1🌍 Public
Cchrismeeky
Last edited Oct 18, 2021
Created on Oct 17, 2021
Forked from Fork of Rendering of loaded data on pie chart
This example renders a simple bar chart using React and D3, displaying the top 10 countries by 2020 population from a CSV file loaded via d3.csv. Each country is represented as an SVG `<rect>` whose width is scaled by population using `d3.scaleLinear`, while `d3.scaleBand` positions the bars vertically. The chart lacks axes and labels, giving it a deliberately minimal, unfinished aesthetic. The code also includes separate React components for a yellow circular face with eyes and an arc-based mouth, though these are not used in the main visualization.
AI-generated descriptionLoads external data using d3's csv utility and renders on a "pathetic" barchart
MIT Licensed