Skip to main content
Public

Share visualization

Loading preview…

Fork of D3 Starter

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

Fork of D3 Starter

1
DDasbach.EJ
Last edited Apr 17, 2021
Created on Apr 15, 2021
Forked from D3 Starter

This example demonstrates a simple bar chart built with D3 version 6. The visualization starts with a blank page and generates a series of vertical midnight blue bars whose heights are determined by random values multiplied by a fixed scale. The code uses `d3.range` to generate a data set from 5 to 29, then applies the `d3.select('body')` and `.selectAll('div')` API to dynamically append bar elements to the HTML document. Each bar's height is set via the `.style('height', ...)` method, with inline styling producing varied bar lengths. The example serves as a minimal starter template for understanding D3's declarative approach to building DOM-based visualizations from scratch.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed