Viewing a saved revision (read-only)
ffa3994784b9465aa73fd4624e85440b
Activity6_task2
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 descriptionAbove 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.