🌍 Public
Viewing a saved revision (read-only)
f90b6e4977df46ab82ce8ba6fa2a63f5
Assignment2_d2.js_Question2
This area chart shows how three categories—A, B, and C—trend upward from 2010 to 2024, with stacked filled regions emphasizing their cumulative growth. The visualization uses Plotly.js’s `Plotly.newPlot` to render scatter traces with `fill: 'tozeroy'` and `fill: 'tonexty'` modes, creating layered area shading. Data is hardcoded as arrays in the script, with category names assigned via the `name` property. The layout specifies axis titles and the overall chart title.
AI-generated description