Fork of Reusable D3 Scatter Plot
✓ Published1🌍 Public
PPoojaThandra
Last edited Mar 10, 2023
Created on Mar 10, 2023
Forked from Fork of Reusable D3 Scatter Plot with Symbols
This visualization displays the classic Iris dataset as a scatter plot of petal width against sepal length, encoded using D3's scaleLinear, scaleOrdinal, and symbol scales. Each of the three iris species is represented by a distinct D3 symbol shape, rendered as SVG paths using the symbol generator. The code builds a reusable scatterPlot function with configurable accessors for x, y, and symbol values, and adds axisBottom and axisLeft for the axes. Data is loaded asynchronously via d3.csv from a GitHub-hosted CSV file, with the plot filling the entire browser window.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.
MIT Licensed