Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

data visulization

Public visualization

Viewing a saved revision (read-only)

d84740e8a92d49999f811706d2c88aa8

data visulization

0 stars6🌍 Public
AAkshay
Last edited Jan 29, 2021
Created on Jan 29, 2021
Forked from HTML Starter

This example shows a horizontal bar chart of country populations, with bars scaled by population values and country names on the y-axis. The visualization uses D3 v6’s `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to load the data, map population counts to bar widths, and render axes. Bars are drawn as SVG `rect` elements within a grouped `<g>` element, with margins applied via a `translate` transform. The data, sourced from `data.csv`, has population values multiplied by 1000 before rendering.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.