Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
PPedram
Last edited Feb 14, 2023
Created on Nov 20, 2022
Forked from D3 Starter

This example demonstrates a basic D3.js v7 setup with an SVG canvas, showing two outlined columns: a left column with a static blue circle and text label, and a right column that maps an array of seven numeric values to green circles of varying radii. It uses `d3.select` and the standard append/attr chain to construct the SVG structure, then applies `d3.scaleLinear` to map data domain [100,700] to a range of [1,10] for circle sizing. The right column’s circles are positioned linearly by index, while a text element is transformed and anchored. The code runs in a simple HTML file with D3 loaded via unpkg.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes