Assignment2_d2.js_Question2
✓ Published0🌍 Public
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 descriptionMIT Licensed