Scatter Plot with Menus
This interactive scatter plot visualizes the Iris dataset, with a dropdown menu to select the y-axis attribute (sepal length, sepal width, petal length, petal width, or species) and a fixed x-axis representing the numeric "Gradovi" attribute. The visualization updates dynamically when the user changes the dropdown selection, using React state and D3 scales (scaleLinear, extent) to map data to SVG coordinates. The code leverages d3.csv for data loading, the .ticks() method for axis generation, and reusable React components for rendering axes and marks, with tooltips provided by SVG title elements.