{"version":"1.0","type":"rich","title":"Reusable Charts + symbol","description":"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.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/69cb20303dcd44599812a12c4dd6e498?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}