Skip to main content
100%

Scatter Plot- Penguine Dataset

✓ Published0🌍 Public
Ttejasviprasad06@gmail.com
Last edited Mar 8, 2023
Created on Mar 8, 2023

This scatter plot visualizes the Palmer Penguins dataset, mapping flipper length on the x-axis and body mass on the y-axis, with each circle colored by penguin species (Adelie, Gentoo, or Chinstrap). The code uses D3 v5’s `csv` loader, `scaleLinear` for axes, and `extent` to compute domains, rendering circles as SVG elements with `attr`-based positioning. It also loads bill length and depth values as extra attributes on each mark, despite not using them for the chart’s geometry. The axes are drawn with `axisLeft` and `axisBottom`, and custom text labels are appended manually.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes