🌍 Public
Viewing a saved revision (read-only)
8c89fcb1150749e38e4aadb2f84cb69b
Q2
A horizontal stacked bar chart displays average horsepower, torque, and highway MPG for 31 car makes, sorted by combined performance. Each bar segment is colored by metric, with light pink for horsepower, light blue for torque, and turquoise for highway MPG. The chart is built with Chart.js using a canvas element, parsing the bubblechart.csv file via PapaParse. Data is grouped and averaged per make before rendering, with tooltips showing precise values to two decimal places.
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.