Skip to main content
Public

Share visualization

Loading preview…

Area chart with d3.js

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

Area chart with d3.js

1
Rrobertotienonyaranga@gmail.com
Last edited Mar 27, 2024
Created on Mar 27, 2024

This area chart displays the monthly average atmospheric CO₂ concentration over time, with the data loaded from a CSV file using d3.csv. The visualization shows a rising trend across the year axis, with the area filled in a soft green and a darker green stroke. The chart is rendered as an SVG using d3.scaleLinear for both axes, d3.axisBottom and d3.axisLeft for ticks, and d3.area to generate the filled path. The React-based setup runs D3 v6 within a simple HTML page.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed