Episode 9 - Reusable Charts (GIRIBAW) w/ Symbols
✓ Published0🌍 Public
This example demonstrates a reusable scatter plot built with D3 v6, visualizing the classic Iris dataset with petal width on the x-axis and sepal length on the y-axis. The scatterPlot.js module creates a configurable chart function that uses d3.scaleLinear for axes, d3.scaleOrdinal to map species to different d3.symbol shapes, and d3.symbol to generate the path data. Data is loaded asynchronously via d3.csv from a GitHub Gist. The chart is rendered as an SVG, with the reusable pattern allowing custom setters for dimensions, margins, accessors, and symbol size.
AI-generated descriptionMIT Licensed