🌍 Public
Viewing a saved revision (read-only)
c05a329eca9a402f813a2ef21c4cef4c
Making a Bar Chart
This example demonstrates how to build a basic bar chart from a CSV dataset, showing the population of ten countries. It uses D3.js v5 to load the data and map each country's population value to the height of a corresponding rectangle on an SVG canvas. The chart is rendered using SVG elements, with the `d3.csv` parser handling the `data.csv` file and SVG `<rect>` elements scaled proportionally to the population figures.
AI-generated description