🌍 Public
Viewing a saved revision (read-only)
835f7d52040e416ba5250ee2bf409b2c
Fork of Reusable D3 Scatter Plot
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.