Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE 7 Area Chart

Public visualization

Fork of ICE 7 Area Chart

0 stars0🌍 Public
Aaashrithd4
Last edited Mar 27, 2022
Created on Mar 27, 2022
Forked from ICE 7 Area Chart

This example visualizes car sales in India from 2009 to 2019 using a combined line and area chart. The line traces annual sales trends with a smooth curve, while the orange area underneath emphasizes the magnitude of sales over time. The visualization uses D3 v5’s `scaleTime`, `scaleLinear`, `axisBottom`, and `axisLeft` to render axes, and `line` with `area` generators that employ `curveBasis` for smoothing. Data is loaded from a CSV file via `d3.csv`, and the SVG is styled with custom CSS classes for ticks, labels, and paths.

AI-generated description

combined line and area charts

Comments

Sign in to join the discussion.

MIT Licensed