Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question 4: Area Chart

Public visualization

Viewing a saved revision (read-only)

08b5f771a67248f294a8872e9e058643

Question 4: Area Chart

0 stars0🌍 Public
Sshreshnaanugu@gmail.com
Last edited Oct 27, 2025
Created on Oct 27, 2025

This area chart visualizes monthly revenue trends across multiple products, with each product represented as a colored filled region that can be hovered to adjust opacity. The chart uses D3 v7 to load CSV data via `d3.csv`, aggregates revenue by product and month using `d3.group` and `d3.rollup`, and renders the areas with `d3.area` alongside scaled point-based x-axes (`d3.scalePoint`) and linear y-axes (`d3.scaleLinear`). Interactive dots respond to mouse hover by increasing their radius, and gridlines provide reference for revenue values.

AI-generated description