🌍 Public
Viewing a saved revision (read-only)
7032fe2461d0440aa0b0c13018e69af2
Fork of 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 descriptionA demonstration of how to start using D3 version 6.