Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of HTML Starter

Public visualization

Viewing a saved revision (read-only)

764de7cd4f9341c7890c089ad143c17a

Fork of HTML Starter

0 stars0🌍 Public
JJustin Roberts
Last edited Mar 8, 2023
Created on Mar 8, 2023
Forked from HTML Starter

This example visualizes the population of two groups, female and male, as horizontal SVG bars from a loaded CSV file. The code uses `d3.csv` to parse the data, then applies `d3.scaleLinear` for bar widths and `d3.scaleBand` for vertical positioning. It appends `<rect>` elements to the SVG canvas, with heights set by the band scale. The chart updates dynamically when the asynchronous CSV data arrives.

AI-generated description