Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Q2

Public visualization

Viewing a saved revision (read-only)

8dccf8b34fb04fed9b18f6abda51229c

Activity6_Q2

0 stars0🌍 Public
AAnirudhaKulakarniKaranam@my.unt.edu
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from HTML Starter

This stacked bar chart displays monthly sales data for two products across five months, with each bar segmented to show the relative contribution of product1 and product2. The visualization uses D3.js v7's `d3.stack()` to compute the stacked series and `d3.scaleBand` for the categorical x-axis. Bars are rendered as SVG rectangles with hover opacity changes, while `d3.axisBottom` and `d3.axisLeft` generate the month and sales axes. The dataset is hardcoded as an array of objects in the script.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.