Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart.js

Public visualization

Viewing a saved revision (read-only)

f27d67ffef094ccea9646e1b5591b10c

Making a Bar Chart.js

0 stars0🌍 Public
SSuzie1022susu
Last edited Jan 10, 2023
Created on Jan 9, 2023

This bar chart visualizes the populations of ten countries, ranging from China to Mexico. The data is loaded from a CSV file and values are multiplied by 1000. Using d3’s `scaleLinear` for the x-axis and `scaleBand` for the y-axis, it renders steel-blue rectangles in SVG, with axes labeled via `axisLeft` and `axisBottom`.

AI-generated description