Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 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.

MIT Licensed

Similar vizzes