Skip to main content
Public

Share visualization

Loading preview…

test

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

test

0
AAmanda-Tai
Last edited Sep 27, 2022
Created on Sep 27, 2022
Forked from D3 Starter

This example demonstrates the basic setup for using D3 version 6, displaying a single message extracted from a flower dataset. It loads flower measurements as JSON and displays the first entry’s content in an HTML element. The code uses the native `import` statement to access the data from a local JavaScript module, then manipulates the DOM directly with `document.getElementById` and `textContent`. The visualization serves as a minimal introduction to integrating D3 v6 with modern ES6 module syntax, highlighting the correct import pattern for external data files.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed