Skip to main content
Public

Share visualization

Loading preview…

AK's_AreaChart

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

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

AK's_AreaChart

0 stars0Public
Aamulyakannam
Last edited Jul 3, 2022
Created on Jul 3, 2022

This example shows a smoothed area chart of mobile phone prices over time, with monthly cost values plotted on the y-axis and time on the x-axis. The SVG visualization uses D3 v5 scales (`scaleTime`, `scaleLinear`) and generators (`line`, `area`) with `curveBasis` to create the filled curve. Data is loaded from a CSV file and parsed with `d3.timeParse`. Axes are rendered with `axisBottom` and `axisLeft`, including grid lines via tick sizing. The chart is built within a React project but uses direct DOM manipulation through D3 selections.

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