Skip to main content
100%

Making a Bar Chart Fork

✓ Published0🌍 Public
Ssamwatersw15
Last edited Sep 23, 2020
Created on Sep 20, 2020
Forked from Making a Bar Chart

This example visualizes the average price of a two-bedroom flat across ten countries, using a horizontal bar chart rendered as SVG. The chart orders countries by price and labels each bar with its value in thousands. The code uses D3 v5 utilities including `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, with data loaded from a CSV file via `d3.csv`. A `format('.3s')` tick formatter abbreviates axis labels, while the bars themselves are styled with a steelblue fill.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes