🌍 Public
Viewing a saved revision (read-only)
0b676aab4e854f6987e7356af10836dc
Activity 6 Question 3
This interactive scatter plot visualizes chemical characteristics of wine cultivars, mapping alcohol content along the x-axis against flavanoids on the y-axis. Data points are colored by target class using a switch statement that assigns skyblue, lightgreen, or orange markers. The visualization loads a CSV dataset from a GitHub repository, parses numeric fields, and renders using D3 v6’s `scaleLinear`, `axisLeft`, `axisBottom`, and `select` APIs. The SVG output is displayed full-window with axis labels for both variables.
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.