Reusable Charts + symbol
✓ Published0🌍 Public
This example demonstrates a reusable scatter plot built with D3 version 7, visualizing the classic Iris dataset. The chart encodes sepal length against petal width, with each species represented by a distinct symbol (circle, cross, diamond, etc.) and color-coded (blue, green, red) using `d3.scaleOrdinal` and `d3.symbol`. The code uses `d3.csv` to load data and a custom `scatterPlot` function with setters for dimensions, margins, and accessors. Axes are rendered via `d3.axisLeft` and `d3.axisBottom`, with the plot updating through `selection.join` for dynamic data binding.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed