Skip to main content
100%

Assignment 2 - Scatter Plot

✓ Published0🌍 Public
Cchsaisriharsha@gmail.com
Last edited Jul 23, 2023
Created on Jul 22, 2023

This example visualizes the Palmer Penguins dataset as a scatter plot, mapping bill length to the x-axis and bill depth to the y-axis while coloring each point by penguin species. It loads data from a CSV file and renders circles as SVG marks using D3 v6. The code defines scales with `scaleLinear`, generates axes with `axisLeft` and `axisBottom`, and includes a legend for species identification. The visualization is displayed across the full browser window with styled axis labels and customized fonts from Google Fonts.

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