Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

axes and stuff

Public visualization

axes and stuff

0 stars2๐ŸŒ Public
AAndrew Fletcher
Last edited Jan 12, 2020
Created on Jan 11, 2020
Forked from itsa bar chart!

This example displays a horizontal bar chart of population by country. The chart uses a linear scale for the population axis and a band scale for country names, with gridlines extending across the plot area. Built with D3 v5, it uses `svg.append`, `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to render SVG bars. The code loads population data from a CSV, multiplies values by 1000, and formats tick labels using D3's `format('.3s')`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed