Skip to main content
Public

Share visualization

Loading preview…

Fork of Activity6_task2 question3

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Activity6_task2 question3

0
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

Comments

Sign in to join the discussion.

MIT Licensed