Activity 8 - Q2.3
✓ Published0🌍 Public
This stacked bar chart visualizes "Food Nutritional Ratings" across seven food groups (banana, poacee, sorgho, carot, apple, mango, olive, ananas) using data from a local CSV file. It renders in SVG with D3 v7, using `d3.csv` to load data, `d3.stack` to create series, and `d3.scaleBand`, `d3.scaleLinear`, and `d3.scaleOrdinal` for axes and color encoding. The chart includes axis labels, a legend, and a hidden tooltip element.
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