Skip to main content
Public

Share visualization

Loading preview…

Fork of Q2_AreaChart

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 Q2_AreaChart

0
Aaadesh.pranesh@gmail.com
Last edited Apr 21, 2024
Created on Apr 21, 2024
Forked from Q2_AreaChart

This example shows a dual-series area chart comparing annual oil and gold prices from 2000 to 2020, using data embedded in the script. It renders two overlapping filled regions with distinct colors, strokes, and axes via d3.area, d3.scaleLinear, and d3.axisBottom/axisLeft in an SVG. A lightsteelblue tooltip appears on hover (though no mouse handlers are attached), and the chart uses margins, a combined dataset, and static paths without animation.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed