🌍 Public
Viewing a saved revision (read-only)
033803edea8447d89b5cf2083288dc63
Let's make a barchart with D3.js
This example shows a bar chart of the top 10 countries by population, using a linear scale for the x-axis and a band scale for the y-axis. The chart renders population values with tick labels formatted in billions (B) and includes a title and axis label. Built with React and D3 v5, it loads data from a CSV file and draws SVG rectangles, using `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the visualization.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.