Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars1🌍 Public
Hhireign
Last edited Feb 14, 2020
Created on Feb 14, 2020
Forked from Making a Bar Chart

A bar chart displays the population of ten countries, using a vertical bar for each nation with its value labeled above. The visualization is rendered as an SVG using D3 v5, with `d3.scaleBand` for the x-axis positions and `d3.scaleLinear` for the y-axis scale. The data is loaded from a CSV file via `d3.csv` and formatted with tick labels, while bars are styled in steelblue and positioned through transform translations. The code removes gridlines and axis domains for a cleaner presentation.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed