Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
AAmeer Nuri
Last edited Jul 8, 2023
Created on Jul 8, 2023
Forked from D3 Starter

This example demonstrates a minimal D3 starter template that renders a row of five red circles on an SVG canvas. The code uses D3 v7 APIs, including `d3.select` to access the SVG element, `d3.range` to generate an array of five fruit objects, and the data-join pattern with `.data()`, `.enter()`, and `.append()`. Each circle is positioned horizontally via a calculated `cx` attribute and vertically centered, with a fixed fill color and radius. The page loads D3 from a CDN and runs the script from a separate bundle file.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes