🌍 Public
Viewing a saved revision (read-only)
cdcf376069d94673b6103ef94ffd5998
Activity 6_Question 6
This scatter plot visualizes the relationship between free and total sulfur dioxide levels in wine samples, with each point colored and shaped according to wine quality rating. Using D3.js v6, the visualization maps quality scores to distinct colors via a lookup object and applies different SVG symbol types through `d3.symbol()` and the `shapeMap` dictionary. The code loads wine quality data from a remote CSV file using `d3.csv()`, processes the numeric values, and renders the chart as an SVG with `d3.scaleLinear` axes and `d3.axisBottom`/`d3.axisLeft` for the x and y scales.
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.