Skip to main content
100%

Task8 question3

✓ Published1🌍 Public
Mmanohar varma
Last edited Apr 14, 2024
Created on Apr 14, 2024
Forked from Hello VizHub

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 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