Skip to main content
100%

Activity6_Task2

✓ Published1🌍 Public
Kkrishnavisheshkatta@my.unt.edu
Last edited Apr 10, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

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 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