Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar_Chart

Public visualization

Viewing a saved revision (read-only)

45e908218e724aef839a589e9210f8ae

Bar_Chart

0 stars0🌍 Public
TTimothy Roy
Last edited Sep 17, 2021
Created on Sep 17, 2021

This example shows a horizontal bar chart of UN population data for various countries, rendered as SVG elements using React. The chart maps country names to the y-axis with d3.scaleBand and uses d3.scaleLinear for the x-axis based on population values, though the width encoding is incomplete. Data is loaded asynchronously with d3.csv from a remote URL, and React’s useState and useEffect manage the fetch and render cycle. The visualization highlights a hybrid approach, combining D3’s data-loading and scaling utilities with React’s component-based DOM updates.

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!