Activity6_Task2
✓ Published1🌍 Public
This stacked bar chart visualizes the distribution of cosmetic brand ratings across five percentage-based categories, from "below 5.0" to "above 8.5". Each horizontal bar represents a brand (e.g., Clinique, ELF, Sephora), with segments colored by rating category. The D3.js code uses `d3.stack()` to compute cumulative values, `d3.scaleLinear()` for the x-axis, and `d3.scaleBand()` for the categorical y-axis. It renders to SVG, includes interactive tooltips on mouseover showing exact percentages, and loads data from a CSV file.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed