Skip to main content
Public

Share visualization

Loading preview…

Area chart

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

0
Aanushaanumula
Last edited Jul 3, 2022
Created on Jul 3, 2022
Forked from HTML Starter

This example visualizes PS4 sales from 2015 to 2022 using an area chart, highlighting the yearly sales trend with a filled region beneath the curve. Built with React and D3 v5, the code leverages `select` for SVG manipulation, `scaleTime` and `scaleLinear` for axes, and `axisBottom`/`axisLeft` for tick generation. The area is created via `area()` with a `curveBasis` smoothing. Data is loaded from a GitHub CSV using `csv`, with sales values parsed as numbers and years as dates, rendered entirely as SVG.

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