🌍 Public
Viewing a saved revision (read-only)
220e35ba78d24d5798efb3a0f23388ea
Task8Question4
This interactive scatter plot displays the candy dataset, plotting sugar percentage against win percentage, with points colored red or blue to indicate the presence or absence of chocolate. The visualization is built with D3 v6, using `scaleLinear` for the axes, `axisLeft` and `axisBottom` for tick marks, and the `join` operator to bind the data. The SVG canvas resizes to the browser window, and the code loads the CSV data from a remote GitHub source, parsing numeric fields and a categorical chocolate indicator.
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.