Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Refactored Bar Chart

Public visualization

Refactored Bar Chart

0 stars1๐ŸŒ Public
Jjanneprice
Last edited Mar 25, 2022
Created on Mar 25, 2022

This bar chart displays the top ten countries by population in 2020, with horizontal bars showing population values. The visualization is built using React components that render SVG elements, with D3 v5 utilities handling data loading via `d3.csv`, scale construction through `scaleBand` and `scaleLinear`, and number formatting. Each bar is a `<rect>` element, and tick marks are generated by `xScale.ticks()` in the `AxisBottom` component.

AI-generated description

A program that loads in some data using D3 utilities and uses React state.

Comments

Sign in to join the discussion.

MIT Licensed