Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task2_q2_3

Public visualization

Viewing a saved revision (read-only)

e0ed6395095f4950b0558b3d2594102f

Activity6_Task2_q2_3

0 stars0🌍 Public
HHema Tummapala
Last edited Oct 25, 2024
Created on Oct 23, 2024
Forked from Activity6_Task2

This stacked bar chart displays the proportion of sales for five product categories across five rating ranges, from "less than 5" to "greater than 8.5". The visualization uses `d3.stack` to create stacked bars, with `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the numeric x-axis. Interactive tooltips appear on mouseover, showing the specific rating range and sales proportion. The chart reads data from a local CSV file and renders with SVG elements, animated transitions, and a legend using `d3.scaleOrdinal` for color assignment.

AI-generated description