Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Costumizing Axes

Public visualization

Costumizing Axes

0 stars1🌍 Public
Ddanielchamone
Last edited Oct 30, 2019
Created on Oct 29, 2019
Forked from Making a Bar Chart

This chart displays the populations of the most populous countries as a horizontal bar chart, using a linear scale for population and a band scale for country names. D3’s `axisBottom` and `axisLeft` are customized, with tick formatting via `format(".3s")` converting values to billions, and grid lines shown through `tickSize(-innerHeight)`. The data is loaded from a CSV file using `csv`, and rectangles are drawn in SVG with `scaleLinear` and `scaleBand`. The chart also includes a title and an axis label.

AI-generated description

This is a population chart by country.

Comments

Sign in to join the discussion.

MIT Licensed