Fork of Activity6_task2 question3
✓ Published0🌍 Public
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 descriptionMIT Licensed