Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Q2

Public visualization

Viewing a saved revision (read-only)

4ac5bc419f8a40658aa130856ed4b1d2

Activity6_Q2

0 stars1🌍 Public
Ddabbararakshitha@gmail.com
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Hello VizHub

This stacked bar chart visualizes the normalized proportions of horsepower, torque, and highway MPG for 31 car brands, showing how each metric contributes to a total value of 100% per make. The code uses d3.stack() to compute the layered segments, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the proportional x-axis. Data is embedded directly in the script and rendered as SVG rectangles, with a legend and percentage-formatted axis ticks.

AI-generated description