Skip to main content
100%

Actvity6_Task3_Question

✓ Published0🌍 Public
VVarshith Peddineni
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example displays a scatter plot of the Palmer Penguins dataset, mapping bill length on the x-axis and bill depth on the y-axis. Each point is colored by species using a categorical color scale, and a legend identifies the three penguin species. The visualization uses D3.js v7 to load the CSV data, scale axes with `d3.scaleLinear`, render the SVG circles, and construct the legend with `d3.select` and `d3.append`. Axes and labels are formatted with `d3.axisBottom` and `d3.axisLeft`, while `d3.schemeCategory10` assigns point colors.

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