Activity 7 Area Chart
✓ Published0🌍 Public
This example renders an area chart showing the proportion of ratings across different music genres. It uses stacked areas, colored with a custom palette, to display the data, with a legend identifying each genre. The chart is built with D3 v6, loading data from a CSV file via `d3.csv`. It creates an SVG visualization using `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and a custom `d3.area` generator for the areas, with axes and labels added via `d3.axisBottom` and `d3.axisLeft`.
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