Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let´s make a bar chart!

Public visualization

Let´s make a bar chart!

0 stars2🌍 Public
MMatiasmedrano66
Last edited Dec 27, 2020
Created on Dec 26, 2020

This example shows a horizontal bar chart of population data for the ten most populous countries, with values scaled in thousands. The chart uses D3 v5’s `scaleLinear` for the x-axis, `scaleBand` for the categorical y-axis, and SVG rectangles for bars. Data is loaded from a CSV file and rendered with the `axisLeft` and `axisBottom` components, while margins and inner dimensions are computed manually for layout.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed