Fork of Activity-6 Question-2
✓ Published0🌍 Public
This example visualizes restaurant cuisine ratings across different percentage brackets using a stacked horizontal bar chart. It shows the distribution of ratings from below 4.0 to above 8.0 for six cuisines, with each bar segment colored by rating category. The visualization uses d3.stack to create the stacked data, d3.scaleBand for the y-axis cuisine categories, and d3.scaleLinear for percentage values. Interactive tooltips display specific rating percentages on hover, while axes are rendered using d3.axisBottom and d3.axisLeft with custom tick styling.
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.
MIT Licensed