Pathetic Bar Chart
✓ Published1🌍 Public
This example displays a horizontal bar chart of the top ten countries by population for 2020, sourced from a UN population CSV. The chart is bare, containing only colored rectangles with no axes, labels, or annotations. Built with React and D3, the code uses D3’s `csv` loader, `scaleBand`, `scaleLinear`, and `max` functions to map data to SVG rectangles, with React managing the data state and rendering.
AI-generated descriptionA program that loads in some data and creates a bar chart with no info text.
MIT Licensed