act8_t2
✓ Published0🌍 Public
A stacked horizontal bar chart visualizes the proportion of ratings across food categories, with each bar segmented by rating ranges from "Below 4" to "Above 8." The chart uses d3.stack to compute stacked series and d3.scaleBand for categorical positioning. An ordinal color scale distinguishes rating bands, while interactive tooltips display exact percentages on hover, built with D3 event handlers and HTML div elements. The SVG rendering includes custom axes with gridlines and a legend.
AI-generated descriptionFood items proportion
MIT Licensed