Skip to main content
100%

Stylized bar chart with React & D3

✓ Published1🌍 Public
Rrvdv
Last edited Dec 26, 2021
Created on Dec 24, 2021

This stylized bar chart displays the population of 15 countries, with horizontal bars scaled proportionally to their 2020 population estimates and a custom tooltip showing the formatted value on hover. Built with React and D3 v7, the chart uses D3's `scaleBand` for the categorical y-axis, `scaleLinear` for the continuous x-axis, and renders SVG elements via React components for axes and marks. The styling employs a light gray grid and dodgerblue bars, with the data loaded from a remote CSV using D3's `csv` parser and formatted with the `format` function.

AI-generated description
MIT Licensed

Similar vizzes