Skip to main content
100%

ATS - Responsive Reusable Scatter

✓ Published2🌍 Public
Xxscotta@yahoo.com
Last edited Aug 28, 2024
Created on Aug 25, 2024
Forked from ATS - Scatter Plot

This example builds a responsive two-panel scatterplot dashboard of the classic Iris dataset, showing sepal dimensions in one view and petal dimensions in the other. Each panel encodes an additional variable through point size, with circle area scaled by the product of the other two measurements, and colors species via a D3 ordinal scale. The reusable scatterPlot function uses d3.scaleLinear, d3.axisLeft, d3.axisBottom, and d3.symbol to render SVG marks, axes, grids, and legends. The layout adapts from a side-by-side grid to a stacked single-column arrangement below 640px via CSS media queries.

AI-generated description
MIT Licensed

Similar vizzes