Skip to main content
Public

Share visualization

Loading preview…

Fork of ICE 7 Q3

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 ICE 7 Q3

0
RRebecca Moore
Last edited Mar 25, 2023
Created on Mar 25, 2023
Forked from ICE 7 Q3

This visualization displays shampoo sales over 15 years as an area and line chart, with time on the x-axis and sales values on the y-axis. The code uses D3 v5’s `scaleTime`, `scaleLinear`, `line`, and `area` generators with `curveBasis` to create smooth, filled curves. Data is loaded from a CSV file via `csv()`, and axes are rendered using `axisBottom` and `axisLeft`. The SVG chart includes labeled tick marks and axis titles, with the sales data parsed as numbers and dates converted to JavaScript `Date` objects.

AI-generated description

A demonstration of how to start using D3 version 6.

Comments

Sign in to join the discussion.

MIT Licensed