Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
MMokshithabhi
Last edited May 11, 2023
Created on May 11, 2023
Forked from D3 Starter

This example shows a single red hexagon drawn in the center of a small 100x100 SVG canvas. The shape is constructed from six coordinate points calculated with a constant size and offset. The code uses D3 v7 to select the body, append the SVG container, and bind the point array as data. A path element is created and its `d` attribute is set using `d3.svg.line()`, which is a legacy API from D3 v3 and not a current method.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes