Skip to main content
100%

Refactored Bar Chart

✓ Published1🌍 Public
FFonda Irena Santoso
Last edited Apr 21, 2021
Created on Apr 21, 2021

This visualization shows the population of the top 10 countries in 2020 as a horizontal bar chart, with all bars aligned to the left and sorted by country name. The application loads the data from a CSV file using D3’s `csv` utility, then renders the SVG with React components for the axes and marks. The y-axis uses `scaleBand` to position categorical labels, while the x-axis uses `scaleLinear` for the numeric population values. Each bar is drawn as a `<rect>` via the `Marks` component, with size determined by the population value.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

MIT Licensed

Similar vizzes