Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Area Chart

Public visualization

Viewing a saved revision (read-only)

7efe0217dff544a190f02258c2f85c69

Fork of Area Chart

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

This example shows electronic sales from 2013 to 2021 with a combined line and area chart. The visualization overlays a smooth black line representing yearly sales trends with a green filled area beneath it, using d3.line(), d3.area(), and curveBasis for interpolation. The SVG chart uses d3.scaleTime and d3.scaleLinear for axes, with d3.axisLeft and d3.axisBottom adding gridlines and labels. Data is loaded as CSV from a GitHub gist, parsed with d3.timeParse, and rendered using D3 v5.

AI-generated description

combined line and area charts