🌍 Public
Viewing a saved revision (read-only)
e28ef2344f8c4e1890cb4048dbc52b9b
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.