Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3.js Bar Chart Example

Public visualization

D3.js Bar Chart Example

0 stars0🌍 Public
BBhavanaGIrni
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Making A Bar Chart

This D3.js example shows a straightforward bar chart of categorical data with axes and labels, visualizing values for five categories (A through E). The visualization renders as an SVG, using D3 v6's modular imports including `scaleBand`, `scaleLinear`, `axisLeft`, and `axisBottom` to map the dataset to bar positions and heights. The chart reads its data from a CSV file via `d3.csv`, converting the population column to numeric values, while the styling uses steelblue fills for the bars.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed