Skip to main content
Public

Share visualization

Loading preview…

area chart ic7

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 ic7

2
Ddivyagunuguntla
Last edited Mar 29, 2022
Created on Mar 29, 2022

This area chart displays bike users from 2012 to 2022, with the x-axis mapping years and the y-axis showing user counts. The visualization combines a black line chart with a purple filled area beneath it to emphasize the trend over time. Built with D3 v5, the code uses the `line` and `area` generators with a `curveBasis` smoothing function, and scales data with `scaleLinear`. The SVG is constructed using the `select`, `append`, and `attr` methods, with axes rendered via `axisBottom` and `axisLeft`. Data is loaded from a remote CSV file using `csv`, and tick labels are formatted with `format`.

AI-generated description

combined line and area charts

Comments

Sign in to join the discussion.

MIT Licensed