Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

q2

Public visualization

Viewing a saved revision (read-only)

bf1a47da91064234a35b24a90033f78e

q2

0 stars0🌍 Public
SSaba Siddiqi
Last edited Oct 31, 2026
Created on Oct 31, 2026
Forked from q2

This visualization displays average movie revenue per genre and year as a heatmap using D3 v7. The code builds a grid of colored rectangles from CSV data via `d3.csv` and `d3.rollups`, with a sequential color scale using `d3.scaleSequential` and `d3.interpolateRgb`. A gradient legend with an axis accompanies the SVG chart, and two buttons let viewers reorder rows alphabetically or by row mean using `d3.axisLeft` and `d3.axisBottom`. The data comes from a gist-hosted CSV file.

AI-generated description