🌍 Public
Viewing a saved revision (read-only)
2bd79fec1a2e41b89fcf53b5f4b7f3c2
Activity-VII-Q2(11713131)
This area chart displays the distribution of car origins from the mpg dataset, counting vehicles per origin category. The code fetches a CSV file and aggregates rows by the origin column. Using Chart.js, it renders a line chart with filled background to create an area effect on a canvas element. The chart is configured with custom colors, a title, and a y-axis starting at zero, with responsive rendering disabled to maintain fixed dimensions.
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.