Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
JJun Suzuki
Last edited Nov 16, 2021
Created on Nov 16, 2021

This example displays a horizontal bar chart of the 2020 populations for the top ten countries, sorted by descending value. Built with React and rendered as SVG, it uses D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis. The custom `AxisBottom`, `AxisLeft`, and `Marks` components draw tick lines, labels, and rectangle bars by mapping data attributes to spatial scales. Population data is loaded asynchronously via `d3.csv` from a GitHub-hosted CSV file.

AI-generated description

A program that loads in data about CSS named colors using React to visualize the data as a radial burst.

MIT Licensed

Similar vizzes