🌍 Public
Activity6_Task2_q2_3
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 descriptionMIT Licensed
Comments
Sign in to join the discussion.