🌍 Public
Viewing a saved revision (read-only)
ac26f53b0e7c488fa6af7d80ee610d6d
Task-8(Question-2)
This visualization shows a horizontal stacked bar chart comparing three car attributes—horsepower, torque, and highway MPG—across 31 car makes. The data is loaded from a CSV file using d3.csv, and the stacked layout is created with d3.stack(). The x-axis uses a linear scale to represent cumulative values, while the y-axis uses d3.scaleBand for categorical car makes. Color encoding is applied via d3.scaleOrdinal with a defined range, and the chart includes an x-axis, y-axis labels, and a legend rendered in SVG.
AI-generated description