Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE 7 Q3

Public visualization

Viewing a saved revision (read-only)

8a1d3d29dbf74972869fb46b2913a1da

Fork of ICE 7 Q3

0 stars0🌍 Public
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.