🌍 Public
Viewing a saved revision (read-only)
230521563e5741cfbc0bcd47458218af
try
A stacked horizontal bar chart displays the distribution of product ratings across six cosmetics brands, with each bar segmented into five rating categories from "below 5.0" to "above 8.5." The chart uses SVG rendering with D3 v7, employing `d3.stack()` to compute the stacked series, `d3.scaleBand` for the categorical y-axis, and `d3.scaleLinear` for the percentage x-axis. Mouseover interactions reveal tooltips with precise percentage values for each brand and rating segment. Data comes from a CSV file loaded with D3’s data parsing.
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.