Skip to main content
100%

Activity6_Task2

✓ Published2🌍 Public
Rrahman.mehmood2002@gmail.com
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from Hello VizHub

This stacked bar chart displays the average horsepower, torque, and highway MPG for various car makes, sorted by total value. The chart uses a horizontal layout with segments colored in shades of orange to represent each specification. It is built with D3 v7 and renders as an SVG, employing `d3.stack()` for the stacked data transformation, `d3.scaleOrdinal` for color mapping, and `d3.axisBottom` and `d3.axisLeft` for axes. The data is loaded from a CSV file and processed with numeric conversion.

AI-generated description

Stacked Bar Chart

MIT Licensed

Similar vizzes