A4-Bar Graph
✓ Published2🌍 Public
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 descriptionMIT Licensed