Skip to main content
Public

Share visualization

Loading preview…

HTML 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

HTML Starter

0
SSophia Murage
Last edited Apr 14, 2020
Created on Apr 14, 2020
Forked from HTML Starter

This example demonstrates a stacked bar chart built with D3.js v5 and rendered as SVG within a React application. The chart visualizes five data points, each with three numeric keys (p, d, e), using `d3.stack()` to compute layer offsets and `d3.scaleBand()` and `d3.scaleLinear()` for positioning. Rectangles are appended via data joins inside groups, with each layer’s fill color assigned sequentially. The code includes placeholder divs for map and sankey visualizations, though only the bar chart is implemented.

AI-generated description

A bare minimum HTML page.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed