🌍 Public
Viewing a saved revision (read-only)
d2377eae795b41458b49826f085b88f7
Fork of Fork of Reusable scatter plot with different symbols
MMokshithabhi
Last edited May 11, 2023
Created on May 11, 2023
This reusable D3 scatter plot visualizes the Iris dataset, mapping petal width to the x-axis and sepal length to the y-axis. Each species is represented by a distinct symbol from the d3.symbols collection, with the symbol type determined by a d3.scaleOrdinal. The code uses d3.scaleLinear for axes, d3.axisLeft and d3.axisBottom for ticks, and d3.csv to load the data. Rendering is done via SVG paths, with the chart configured through a custom reusable function pattern.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.