Activity 6
✓ Published0🌍 Public
This example demonstrates a stacked bar chart that visualizes how three categorical data fields (AM, AZ, FD) contribute to a total for each of five discrete IDs. The chart uses D3.js v7 and SVG rendering, with d3.stack() to process the data into layers, d3.scaleBand() for the x-axis, and d3.scaleLinear() for the y-axis. The bars are colored using d3.schemeCategory10 and drawn with semi-transparent rectangles.
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