Task 9 Question 2
✓ Published0🌍 Public
This example displays an area chart of highway MPG values grouped by vehicle make, using a steel-blue filled path to emphasize the distribution across categories. The visualization is rendered as an SVG via D3 v7, with data fetched from a remote CSV file and parsed using `d3.csvParse`. It employs `d3.scaleBand` for the categorical x-axis, `d3.scaleLinear` for the y-axis, and a `d3.area()` generator to create the shaded region. Axes are added using `d3.axisBottom` and `d3.axisLeft`, with rotated x-axis labels for readability.
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