Skip to main content
100%

Activity6_Question2

✓ Published0🌍 Public
PPavanKumarRacharla@my.unt.edu
Last edited Apr 6, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

This visualization displays the distribution of ice cream ratings across six categories, from "Below 4" to "Above 8," using a horizontal stacked bar chart. Each bar represents a flavor (Vanilla, Butterscotch, Chocolate, Strawberry, Butterpecan, Cookies n Cream), with segments colored by rating category and lengths proportional to the percentage of ratings received. The chart is built with D3 v7, using `d3.stack()` to create stacked data, `d3.scaleLinear` for the x-axis, and `d3.scaleBand` for the categorical y-axis. Mouseover interactions reveal exact percentages via a tooltip, while a legend on the right identifies each rating segment.

AI-generated description

Food type ratings

MIT Licensed

Similar vizzes