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
Oonika123
Last edited Nov 4, 2020
Created on Nov 4, 2020
Forked from Making a Bar Chart

This example displays a horizontal bar chart of country populations using D3 v5, with the data loaded from a CSV file via `d3.csv`. The chart uses `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the y-axis, rendering SVG rectangles with a steelblue fill. Axes are added with `d3.axisLeft` and `d3.axisBottom`, and the population values are incremented by a constant before rendering, as shown in the code.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed