Skip to main content
100%

Bar chart

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

MIT Licensed

Similar vizzes