Skip to main content
100%

My First Bar Chart

✓ Published0🌍 Public
AAdan Rodriguez
Last edited Jan 31, 2023
Created on Jan 24, 2023
Forked from D3 Starter

This example shows a basic bar chart of monthly revenue from a CSV file, with each bar’s height proportional to its revenue value. The chart uses D3 v7’s `scaleBand` for the x-axis months and `scaleLinear` for the y-axis, rendering rectangles in an SVG. Axes are added with `axisBottom` and `axisLeft`, while the raw data is loaded and parsed via `csv`. The visualization demonstrates a straightforward first step in binding data to SVG elements using D3’s data join pattern.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes