Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar chart

Public visualization

Viewing a saved revision (read-only)

b74d026babfb47468bd21c25082ac3e6

Bar chart

0 stars1🌍 Public
MMatan
Last edited Nov 7, 2020
Created on Nov 7, 2020
Forked from HTML Starter

This example shows a horizontal bar chart of population values across five countries, with a y-axis for country names and an x-axis for numeric population. The chart loads data from a local CSV file using `d3.csv` and renders SVG rectangles scaled with `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis. Axes are generated via `d3.axisLeft` and `d3.axisBottom`. The bars are styled with steelblue fills via CSS, and margins contain the plot area within an 960×500 SVG.

AI-generated description

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

See also React Starter.