Skip to main content
100%

Activity 6_Question2

✓ Published0🌍 Public
MMonish Galla
Last edited Apr 3, 2024
Created on Apr 3, 2024
Forked from Hello VizHub

This visualization presents a stacked bar chart comparing the horsepower and torque values for different car makes, with each bar segmented by these two attributes. The chart uses a categorical color scale to distinguish horsepower from torque, and the hover interaction reveals the specific value for each segment. Built with D3.js v7, the code loads data from the Iris.csv file, applies a linear scale for the value axis, and a band scale for the categorical makes. Tooltips are implemented using D3’s selection and event handling to display detailed information on mouseover.

AI-generated description

The impact of horsepower and torque

This stacked bar chart gives the percentage of horsepower and torque

MIT Licensed

Similar vizzes