Skip to main content
100%

Fork of Reusable ScatterPlot for Restaurant Data

✓ Published0🌍 Public
AAamir Hameed mir
Last edited Jun 5, 2024
Created on Jun 5, 2024

This scatter plot visualizes restaurant data, mapping profit in millions against restaurant ratings for each data point. Built with D3.js (v6.7.0) and SVG, it uses a reusable `scatterPlot` function with scales, axes, and circles. The chart automatically cycles through different y-axis variables—restaurant rating, total reviews, and rating again—every 3 seconds, updating the axis labels and redrawing the plot via `setInterval`. Data is loaded from a CSV file hosted on GitHub, and the visualization is styled with the Poppins font and a custom color scheme.

AI-generated description

The reusable scatterplot is created by using html, css, d3.js.

MIT Licensed

Similar vizzes