Skip to main content
100%

Question 2

✓ Published0🌍 Public
Aasimcyb@gmail.com
Last edited Apr 11, 2024
Created on Apr 10, 2024
Forked from Activity6_Task2

A stacked bar chart visualizes sales performance by region, breaking down percentages across four product categories using data from a local CSV file. The chart employs D3 v7's `d3.stack` and `d3.scaleBand` to render SVG rectangles, with a tooltip triggered by mouse events. An ordinal color scale maps categories, and axes display percentage values. The static title and legend complete the presentation, showcasing local module imports alongside the D3 library.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes