Skip to main content
Public

Share visualization

Loading preview…

Fork of Area chart for electronics sale

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 Area chart for electronics sale

1
Ppriyapravallika44@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025

This area chart displays electronics sales figures across six months, from January through June, with a semi-transparent steel-blue filled region bounded by a dark-blue line. The SVG visualization uses D3 v6 scales and generators, including `d3.scalePoint` for the month axis, `d3.scaleLinear` for the sales axis, and `d3.area` and `d3.line` to produce the filled and stroked paths. Axis labels for "Month" and "Sales ($)" are added via `d3.axisBottom` and `d3.axisLeft`, with styling applied through CSS classes. Sales data is hardcoded in the script, with values ranging from 49,000 to 57,000 dollars.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed