Skip to main content
100%

Episode 9 - Reusable Charts (GIRIBAW) w/ Symbols

✓ Published0🌍 Public
Eemberix@gmail.com
Last edited Jun 4, 2021
Created on Jun 3, 2021

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 description
MIT Licensed

Similar vizzes