Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Starter

Public visualization

Fork of D3 Starter

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed