Skip to main content
100%

data visulization

✓ Published6🌍 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.

MIT Licensed

Similar vizzes