🌍 Public
Viewing a saved revision (read-only)
8e0f9bc24e7e430283f82e537fb4e7f4
ICE-7 Reusable Scatterplot
This reusable scatter plot, built with D3.js, visualizes the cars dataset, plotting Mileage on the x-axis and Price on the y-axis, with each point colored by car brand (Honda, Mercedez, Ferrari). The chart includes labeled axes, a legend, and a title, all rendered as SVG. The visualization animates by cycling through the dataset's numeric columns (disp, Mileage, hp, Price) as the x-value every two seconds, demonstrating the chart's reusability through a configurable `scatterPlot` function that leverages D3's `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Cars Dataset.