Scatter Plot
This scatter plot visualizes the classic Iris dataset, encoding sepal length and width for 150 flowers as circles on a Cartesian plane. Each point represents a flower, colored by species using a custom color generator that produces maximally distinct hues via the LAB color space. The visualization is built as a reusable D3 module, demonstrating how optional configuration properties like point size and color can be flexibly applied. Rendered in SVG, the plot reveals the well-known clustering of Iris setosa, versicolor, and virginica species, with axes labeled from the dataset's metadata. The code leverages RequireJS for modular loading and highlights a clean separation between data, metadata, and visualization logic.
AI-generated descriptionThis program makes a scatter plot from Iris data set, showcasing how a single reusable visualization module can gracefully support optional visualization configuration properties like size and color.
Based on Data Canvas Part 3 - Bar Chart.