Viewing a saved revision (read-only)
bfbe1039081f40eaaf179eadf0cab02e
Fork of Cars Scatter Plot
This scatter plot visualizes the Iris dataset, showing the relationships between sepal and petal dimensions across three Iris species. Colored circles represent individual flowers, with distinct colors for Iris-setosa, Iris-versicolor, and Iris-virginica. The visualization is interactive, allowing users to select which measurements appear on the x and y axes through dropdown menus. Hovering over the legend highlights all points of a corresponding species by increasing their opacity. The code uses D3.js version 5, with functions like `scaleLinear` for axis scaling, `axisBottom` and `axisLeft` for rendering axes, and `transition` for smooth animations when the data is re-rendered or filtered. Data is loaded from a CSV file, and the SVG canvas is dynamically updated with new points and axes.
AI-generated descriptionThis scatter plot shows data about cars, from UCI Machine Learning Repository: Auto MPG Data Set.