assg2_q2
✓ Published0🌍 Public
This area chart visualizes the relationship between wine quality and alcohol content, using data from a CSV file of red wine samples. The chart plots quality on the x-axis and alcohol percentage on the y-axis, with the area filled in light gray. Built with D3.js v7, the code loads data via `d3.csv`, sorts records by quality, and constructs the visualization using `d3.area`, `d3.scaleLinear`, and SVG axis generators (`d3.axisBottom`, `d3.axisLeft`). The SVG canvas is created with dynamic width and height based on specified margins.
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