Skip to main content
100%

Refactored Barchart

✓ Published0🌍 Public
GGokulkrishnan1996
Last edited Jul 8, 2022
Created on Jul 8, 2022

This horizontal bar chart displays the populations of the top 10 countries from the UN Population 2019 dataset, sorted by country name. Built with React and D3 v5, it uses `scaleBand` for the y-axis and `scaleLinear` for the x-axis, rendering bars as SVG `rect` elements. The chart loads the data via `d3.csv`, and both the left and bottom axes are rendered as separate React components (`AxisLeft`, `AxisBottom`), with marks generated by the `Marks` component.

AI-generated description

program follows circle

MIT Licensed

Similar vizzes