Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Starter

Public visualization

Viewing a saved revision (read-only)

7f1f328889574f49b9195228a1fa6ef8

Fork of D3 Starter

0 stars0🌍 Public
BBastien Golomer
Last edited Apr 29, 2022
Created on Apr 28, 2022
Forked from D3 Starter

This example demonstrates a basic bar chart using D3 version 7, with data loaded from a CSV file containing yearly values. The visualization renders an SVG with a band scale for the x-axis and a linear scale for the y-axis, displaying bars for each year. The code uses `d3.csv` to asynchronously load the dataset, then applies `d3.axisBottom` and `d3.axisLeft` to generate labeled axes. The y-axis ticks are formatted with a dollar sign prefix, and bars are drawn as `rect` elements sized by the scales.

AI-generated description

A demonstration of how to start using D3 version 6.