🌍 Public
Viewing a saved revision (read-only)
41cad67c1730400083e9d09e15f361e8
activity 7 task 2
This area chart visualizes the maximum horsepower for various car makes, with the x-axis ordered by make and the y-axis scaled linearly from zero. The chart loads CSV data from a GitHub repository using `d3.csv`, then renders a filled blue area via the `d3.area()` generator onto an SVG canvas. Axes are added with `d3.axisBottom` and `d3.axisLeft`, and labels for “Car Make” and “Horsepower” are positioned using SVG text elements. The visualization uses D3 v7 with a clean, responsive layout and subtle hover opacity effects.
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.