Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

A4-Bar Graph

Public visualization

Viewing a saved revision (read-only)

153c2a58c9c74661a0416f80e984dbf5

A4-Bar Graph

0 stars2🌍 Public
Jjrcuster@dons.usfca.edu
Last edited Feb 17, 2025
Created on Jan 28, 2025

This example displays Broadway shows' weekly gross earnings over time, revealing the performance of shows like Miss Saigon and Tru. It uses an SVG bar chart where each bar represents a week, with the chart's height encoding the gross revenue. The code employs D3 version 7 to handle data parsing, scaling, and rendering, specifically using `d3.scaleBand` for the x-axis dates and `d3.scaleLinear` for the y-axis gross values. The data is loaded from a CSV file, and axes are created with `d3.axisBottom` and `d3.axisLeft`.

AI-generated description