Skip to main content
100%

Activity 8 - Q2.3

✓ Published0🌍 Public
SSamir Tarda
Last edited Apr 9, 2024
Created on Apr 9, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes