Reusable Canvas
✓ Published1🌍 Public
An interactive scatterplot displays the Iris dataset, plotting sepal and petal measurements against each other. Users can switch the x- and y-axis variables via dropdown menus created with a custom `menu` function. The visualization uses D3 v7 with `scaleLinear`, `axisLeft`, and `axisBottom` for scales and axes, while reusable modules like `canvasPlot` and `scatterPlot` structure the layout and rendering. SVG elements and transitions animate point movement when axes change, with tooltips showing details on hover.
AI-generated descriptionMIT Licensed