🌍 Public
Viewing a saved revision (read-only)
902b2830419e4dfdb2f88bcae7d21e94
Activity-6(q2)
This stacked bar chart compares horsepower, torque, and highway fuel efficiency across 31 car manufacturers. The data is loaded from a CSV file and rendered as SVG using D3.js v7. The chart uses stacked segments to show the cumulative value of the three attributes for each manufacturer, with a color-coded legend. The y-axis represents the total sum, while rotated x-axis labels identify each brand. The visualization employs D3's `scaleBand`, `scaleLinear`, `scaleOrdinal`, and `stack` utilities, along with `axisBottom` and `axisLeft` for the axes.
AI-generated descriptionThis stacked bar chart compares multiple attributes like horsepower, torque, highway_mpg across the car manufacturers.