Task2Q1
✓ Published0🌍 Public
This example uses a stacked bar chart to compare performance metrics (horsepower, torque, and highway MPG) across seven car makes from a CSV file. Built with D3 v7, it loads data via `d3.csv`, formats values with `d3.format`, and renders SVG bars using `d3.scaleBand` for the y-axis and `d3.scaleLinear` for the x-axis. Segments are colored via `d3.scaleOrdinal`, and interactive tooltips reveal exact values on hover using D3's event handlers.
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.
MIT Licensed