Skip to main content
Public

Share visualization

Loading preview…

Untitled

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

Untitled

0
JJimMaltby
Last edited Jul 3, 2021
Created on Jul 2, 2021

Two SVG canvases demonstrate basic line drawing with D3 v5. The first shows a single fixed red line, while the second uses `d3.select` and `.enter().append('line')` to map an array of seven numeric values to multiple blue and green lines with varying coordinates. The blue lines position themselves horizontally based on array index, while green lines stagger vertically. Both use SVG attributes like `x1`, `y1`, `x2`, and `y2` with inline stroke styles, rendered against light and dark gray backgrounds. The page loads D3 from a CDN and renders purely as vector SVG without animation or interaction.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed