Activity-6 Task-2
✓ Published2🌍 Public
This example visualizes the low and high emission ranges for various transportation modes as a stacked bar chart, with the total height of each bar representing the high emission value and the lower segment representing the low emission value. It also displays a usage count label above each bar. Built with D3 v7, it loads data from a CSV file and uses `d3.stack` to create the stacked series, `d3.scaleBand` for the x-axis, and `d3.scaleLinear` for the y-axis. Hovering over a bar triggers a tooltip showing the exact emission value for that mode.
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