Activity6_Question3
✓ Published0🌍 Public
This example shows a scatter plot of the candy dataset, mapping sugar percentage on the x-axis and win percentage on the y-axis. Each circle is colored red or blue depending on whether the candy contains chocolate. The visualization uses D3 v6 with SVG rendering, loading data from a GitHub-hosted CSV file. It applies `scaleLinear` for both axes, `extent` to set domains, and `axisLeft` and `axisBottom` for tick marks, along with explicit axis labels.
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