Task8 question3
✓ Published1🌍 Public
This scatter plot visualizes candy data, showing the relationship between sugar percentage and win percentage. Each circle represents a candy, colored red for chocolates and blue for non-chocolates. The visualization loads data from a remote CSV file using the `d3.csv` function, then plots points with `d3.scaleLinear` scales and `d3.extent` domains. Axes are rendered with `d3.axisLeft` and `d3.axisBottom`, and the code uses D3's `select`, `append`, and `join` methods to build the SVG. Axis labels are added as text elements with a green fill.
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