Skip to main content
100%

Activity-6 Task-2

✓ Published2🌍 Public
Kkrishna444battula@gmail.com
Last edited Oct 20, 2024
Created on Oct 19, 2024

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 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