{"version":"1.0","type":"rich","title":"adding axis to D3 scatterplot","description":"This example shows a scatter plot of the Iris dataset, mapping petal length on the x-axis and sepal length on the y-axis, with points colored by species. Implemented in React with D3 v7, it uses `scaleLinear` for axis scaling, `extent` to compute domains, and `axisLeft`/`axisBottom` to render labeled axes. The SVG circles are positioned and colored via D3’s selection and join API, with margins offsetting the axis labels.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d92495f39a7b45279c7871b8b2ef297d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}