Skip to main content
100%

Activity6 Q 2.3

✓ Published0🌍 Public
RRukmini Devi Y
Last edited Oct 23, 2024
Created on Oct 23, 2024
Forked from Activity6_Task2_Q3

This stacked bar chart shows sales figures for laptops, phones, and tablets across five retail stores, with each store represented as a horizontal bar broken into three colored segments. The visualization uses d3.stack() to process the CSV data, d3.scaleLinear and d3.scaleBand for positioning, and an ordinal color scale for categories. Interactive tooltips appear on mouseover, displaying exact sales values via a custom HTML div, while the SVG rendering includes axis labels and a legend.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes