Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published0🌍 Public
EEeshwarReddy
Last edited Mar 25, 2023
Created on Mar 23, 2023

This reusable D3 scatter plot visualizes the Iris Dataset, showing the relationship between petal width and sepal length with distinct symbols for each species. Built with a custom scatterPlot function, it uses D3's `scaleLinear` and `scaleOrdinal` for axes and symbol scaling, `axisLeft` and `axisBottom` for axis rendering, and `symbol().size()` to generate varied path shapes. The SVG output fills the browser window, with margins and a fixed symbol size of 100, while the data is parsed from a remote CSV, converting numeric columns to numbers before plotting.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset

MIT Licensed

Similar vizzes