Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart.js

Public visualization

Bar Chart.js

0 stars1🌍 Public
Dddperdue
Last edited Mar 23, 2020
Created on Mar 23, 2020

This bar chart displays the populations of five countries, using horizontal bars to compare values. It loads data from a CSV file and renders with D3 v5, using `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`. The SVG is sized via attributes, and margins define an inner plotting area. Axis ticks are formatted with `d3.format`, and the chart includes a title and axis label. The bars are filled with steelblue, and grid lines are drawn using a negative tick size.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed