Skip to main content
100%

Hello D3 Version 6

✓ Published1🌍 Public
SST-commits
Last edited Sep 11, 2020
Created on Sep 11, 2020
Forked from D3 Starter

This example demonstrates how to create a basic bar chart from an array of numeric values using D3 version 6. The chart renders vertical bars as colored div elements appended to the document body, with each bar’s height proportional to its corresponding data point. The code uses the d3.select, data, enter, append, and style methods to bind the dataset to new div elements and set their heights dynamically. The dataset is a plain JavaScript array of 20 numbers, and the rendering relies on the DOM rather than SVG or canvas.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes