Skip to main content
100%

Fork of Penguin Data set scatter Plot

✓ Published1🌍 Public
Vvryvarma5577@gmail.com
Last edited Mar 22, 2023
Created on Mar 22, 2023

This example presents a scatter plot of the Penguin Data set, displaying the relationship between texture_mean and body_mass_g for each penguin, with colors distinguishing species (Adelie, Gentoo, and Chinstrap). The code loads a CSV file from a GitHub gist using d3.csv, parses the data, and uses d3.scaleLinear to map values to pixel coordinates. It renders circular marks with an SVG selection and the join pattern, adds axes with d3.axisLeft and d3.axisBottom, and labels the plot with SVG text elements, all within a React-less D3 v5 setup.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes