Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0๐ŸŒ Public
Ccelesteleclezio
Last edited Feb 9, 2021
Created on Feb 9, 2021

This example shows a horizontal bar chart of population counts for ten countries, with bars rendered as SVG rectangles and a categorical y-axis labeling each nation. The visualization relies on D3 v5 utilities including `csv` for parsing the `data.csv` file, `scaleLinear` and `scaleBand` for mapping population values and country names to pixel positions, and `axisLeft` for generating the country labels. Data values are converted from thousands to full numbers before rendering, and bars are styled with a steelblue fill.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed