Scatter Plot with Menus
✓ Published1🌍 Public
This example shows an interactive scatter plot of the Iris dataset, where users can dynamically select which flower measurements to display on the X and Y axes via dropdown menus. The chart renders as an SVG using React components and D3 scales, with the `scaleLinear` function mapping the chosen attributes to pixel coordinates. Circle marks representing individual data points are drawn using the `Marks` component, while custom axes and labels are built from D3 tick values. The data is loaded from a CSV file using `fetch` and parsed with `csvParse`.
AI-generated descriptionRefactored Bar Chart.
MIT Licensed