Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

17c078b38c4a409d9252c9122abe9d66

Making a Bar Chart

0 stars0🌍 Public
Kkenljames
Last edited Sep 17, 2020
Created on Sep 17, 2020

This example shows a horizontal bar chart of population estimates for ten countries, sorted from most to least populous, with countries labeled on the y-axis and population counts scaled along the x-axis. The visualization uses D3 v6 with an SVG rendering, employing `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and `axisLeft`/`axisBottom` to generate ticks. Data is loaded from a CSV file, values are multiplied by 1000 during preprocessing, and bars are appended as rectangles with a steelblue fill.

AI-generated description