Skip to main content
100%

Activity6_Task2_Q3

✓ Published0🌍 Public
MManojsai Bangaru
Last edited Mar 31, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

This example presents a horizontal stacked bar chart comparing tax revenue and excise revenue for ten Indian states, including Delhi, Maharashtra, and Gujarat. The chart visually separates the two revenue components using steelblue and orange bars, with the total length representing combined revenue. Built with D3.js v7, the visualization uses `d3.scaleBand` for the categorical state axis, `d3.scaleLinear` for the quantitative revenue axis, and `d3.stack` to prepare the data for rendering as SVG rectangles.

AI-generated description
MIT Licensed

Similar vizzes