Fork of task 8 question 2.2
✓ Published0🌍 Public
This visualization displays the proportion of ratings (from "Below 4" to "Above 8") for six food categories using stacked horizontal bars. The chart uses D3 v7 to process the CSV data with d3.stack(), maps categories to the y-axis via d3.scaleBand(), and encodes proportions on the x-axis with d3.scaleLinear(). Interactive tooltips, styled with CSS, reveal exact percentages on mouseover. The SVG rendering includes a legend and custom color palette from a d3.scaleOrdinal() scale.
AI-generated descriptionFood items proportion
MIT Licensed