Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

q1

Public visualization

Viewing a saved revision (read-only)

ee0682272b964443bedad4ce6e8e91d1

q1

0 stars1🌍 Public
SSaba Siddiqi
Last edited Oct 31, 2026
Created on Oct 30, 2026
Forked from HTML Starter

This interactive bar chart explores movie genres, average revenue, and movie counts across years, with data loaded from a CSV file. The visualization offers five views: alphabetical, by value, by derived metric, stacked, and grouped arrangements. Using D3 v7, the chart employs `d3.scaleBand`, `d3.scaleLinear`, and `d3.scaleOrdinal` with an interpolated color range to distinguish years. The SVG output responds to button clicks that trigger `drawBars` or `drawTwoKeys` functions, dynamically re-sorting and re-rendering the bars. The stacked and grouped modes use `d3.sum` and a shared x-axis for genre and year comparisons.

AI-generated description