Activity6_Task3(Question 6)
✓ Published0🌍 Public
This scatter plot visualizes candy data, showing the relationship between sugar percentage and win percentage. Each dot represents a candy type, colored red for chocolate candies and blue for non-chocolate candies. The visualization uses D3 v6's `csv` loader to fetch data from a GitHub repository, then employs `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to create the axes. The SVG rendering includes labeled axes for sugar and win percentages, with the plot displayed across the full browser window using `window.innerWidth` and `window.innerHeight`.
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