Skip to main content
100%

Fork of Activity6_task2 question3

✓ Published0🌍 Public
Ppuppireddyarchana@gmail.com
Last edited Apr 7, 2025
Created on Apr 7, 2025
Forked from Activity6_Q2

A stacked horizontal bar chart compares normalized proportions of horsepower, torque, and highway MPG across selected car brands, with each bar summing to 100%. The data, drawn from a CSV, is processed in D3 v7 by mapping each metric to a fraction of its total; `d3.stack()` creates the series, `d3.scaleBand` positions brands on the y-axis, and `d3.scaleLinear` maps the 0–1 range on the x-axis. SVG rectangles are colored via `d3.scaleOrdinal`, with axes formatted as percentages and a legend identifying the three metrics.

AI-generated description
MIT Licensed

Similar vizzes