Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Online sales Revenue yearwise

Public visualization

Viewing a saved revision (read-only)

f54c71e8ea6742c7ae003b638781b532

Online sales Revenue yearwise

0 stars0🌍 Public
MManideeprenikindi
Last edited Jul 24, 2023
Created on Jul 24, 2023

An interactive area chart displays total online sales revenue by year, with a smooth line and shaded region that highlight revenue trends over time. The visualization loads CSV data and parses dates using D3’s time parsing, then scales the axes with `scaleTime` and `scaleLinear`. It renders an SVG with an axis-left and axis-bottom, and generates the line and area paths using `line()` and `area()` with `curveBasis`. The styling, including gridlines and color, is applied via CSS.

AI-generated description

A demonstration of how to start using D3 version 6.