Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE 7 Area Chart

Public visualization

Viewing a saved revision (read-only)

0c72285f07e4430681d88371152624b5

Fork of ICE 7 Area Chart

0 stars0🌍 Public
CChaitanya Ratan Sree
Last edited Nov 6, 2024
Created on Nov 6, 2024
Forked from ICE 7 Area Chart

This example visualizes the sales of cars in India from 2009 to 2019 as a combined line and area chart. The SVG rendering uses d3.scaleTime and d3.scaleLinear to map years and sales values, while d3.line and d3.area with curveBasis generate the smooth line and shaded region. The data is loaded from a CSV file via d3.csv and parsed with d3.timeParse. The chart includes labeled axes with gridlines, and the line and area are styled distinctly to highlight the trend over time.

AI-generated description

combined line and area charts