Skip to main content
100%

Activity6_Task3(Question 6)

✓ Published0🌍 Public
SSowjanya Devupalli
Last edited Oct 22, 2024
Created on Oct 18, 2024
Forked from Task8 question3

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes