Skip to main content
100%

Activity6_task2

✓ Published0🌍 Public
Yyadlapallisaisathvik@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024

This visualization shows the distribution of horsepower across ten car models, using a horizontal stacked bar chart where each bar represents a model and segments show the proportion of its power falling into five ranges from below 200 to above 800 horsepower. The chart uses a divergent color scale from green through purple, blue, yellow, and red, with model names on the y-axis and percentage on the x-axis. Built with d3.v7, it employs d3.stack() to create the stacked layout, d3.scaleBand() for the categorical y-axis, and d3.scaleLinear() for the continuous x-axis. Interactive tooltips display the exact percentage for each segment on mouseover, with data sourced from a CSV file containing proportional values that sum to one per car.

AI-generated description

Above is the bar chart analysis of horsepower's of different car models. Models present in the analysis are Ford Mustang GT, Tesla Model S Plaid, Chevrolet Silverado,Porsche 911 Turbo, Dodge Challenger, Toyota Tacoma, BMW i8, Rivian R1T, Lamborghini Huracan, Ford F-150. The above models are classifeid as sports, muscle, electric, supercar, pickup truck, suv. Horsepower defines the power of the car. The more the horsepower the more the pickup of the car.

MIT Licensed

Similar vizzes