Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

practice2- Making A Bar Chart

Public visualization

Viewing a saved revision (read-only)

421bdedf5d824f94b5b130f1c73069dc

practice2- Making A Bar Chart

0 stars0🌍 Public
DDi Cui
Last edited May 19, 2023
Created on May 19, 2023

A horizontal bar chart displays the populations of ten countries, with bars extending from a shared origin. The chart uses D3’s scaleBand for categorical y-axis positioning and scaleLinear for numeric x-axis scaling, rendering via SVG. Data is loaded from a CSV file and parsed with D3’s csv function. Axes, gridlines, and labels are generated using D3’s axisBottom and axisLeft, with custom tick formatting to abbreviate large numbers. The bars are visually styled via CSS, and the chart includes a title and an axis label.

AI-generated description