🌍 Public
Viewing a saved revision (read-only)
61a8f603e8f141aa949620511d0e7d48
Making a bar chart
This example shows a bar chart of COVID-19 total cases by country, ordered from China at the top to Qatar at the bottom. The chart is rendered as an SVG using the D3.js library, which loads the CSV data asynchronously via the `csv` function. The code selects the existing SVG element using `select` and reads its width and height attributes with `attr` to establish the chart dimensions.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.