Skip to main content
100%

let's make a bar chart.js

✓ Published0🌍 Public
HHaifan Li
Last edited Mar 15, 2020
Created on Mar 15, 2020

This example displays a horizontal bar chart mapping categorical country labels to numeric values from a CSV file. The visualization uses D3.js v5 APIs including `scaleLinear` for the value axis and `scaleBand` for the country axis, with SVG rectangles rendered inside a 960×500 canvas. The data is loaded asynchronously via `csv`, and the chart is generated entirely from the provided data.csv dataset, showing one bar per country with widths proportional to the parsed value field.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes