{"version":"1.0","type":"rich","title":"Reusable scatter plot with different symbols","description":"This example presents a reusable scatter plot comparing sepal length and petal width from the Iris dataset. It uses a D3 v6 SVG rendering with `scaleOrdinal` to assign one of the `symbols` shapes to each iris species, and `symbol().size()` to generate the path data for the data points. The chart’s axes are created with `axisLeft` and `axisBottom` from a linear scale. The `scatterPlot` function is modular, allowing configuration of data, margins, size, and value accessors through its getter-setter methods, which are invoked via `selection.call()`.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/088f8475846942ad8b0d5851210731ec?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}