Skip to main content
Public

Share visualization

Loading preview…

Area chart_ICE7

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_ICE7

0
RRahulbelede97@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024

This area chart displays car sales by car type across three years (2019–2021), using layered, semi-transparent filled areas to compare sales trends over the categorical x-axis. The visualization loads data from a remote CSV file via `d3.text`, then processes it into arrays. It uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.area` with a monotone curve to draw the three colored series, each with adjustable opacity. Axes, labels, and a legend are added via D3’s SVG manipulation, with the chart rendered entirely in SVG.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed