🌍 Public
Viewing a saved revision (read-only)
3a0cb86e716f4a7a815dfe3e5fa0c8c2
Fork of ScatterPlot
This scatter plot visualizes the relationship between sale price and number of ratings for iPhone products, using a dataset loaded via `d3.csv`. It shows individual data points as circles, with axes labeled for both variables. The code employs D3 v7’s `d3.scaleLinear` for positioning, `d3.axisBottom` and `d3.axisLeft` for axes, and appends circles with `g.selectAll('.dot')`. Styling uses CSS for axis text and hover effects, while the fill color is conditionally applied based on product name.
AI-generated descriptionA whole smiley face