Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pathetic Bar Chart with React and D3 - 01

Public visualization

Viewing a saved revision (read-only)

5701b7fb2b004280ab22a941bb795d3d

Pathetic Bar Chart with React and D3 - 01

0 stars1🌍 Public
EEhtisham UL Hassan
Last edited Nov 28, 2021
Created on Nov 28, 2021

This example visualizes the top 10 countries by 2020 population from a United Nations dataset, represented as horizontal bars whose widths scale with population values. The chart uses a D3 scaleBand for categorical y-axis positioning and a scaleLinear for quantitative x-axis scaling within an SVG rendered by React. Data is fetched as CSV from a GitHub gist, parsed with d3.csvParse, and state management is handled through React hooks (useState, useEffect). React 16.13.1 and D3 v5.11.0 are loaded via CDN.

AI-generated description

Radial Brust visualization of all the named CSS colors defined on MDN.