🌍 Public
Viewing a saved revision (read-only)
b15cf48d41884218bd51d16f1552ae25
Saketh Sara ICE-7
This example shows a reusable scatter plot of sales versus profit for ten product categories, with each point colored steelblue and annotated with tooltips. The visualization is rendered as an SVG using D3 v7, employing `d3.scaleLinear` for axes and `d3.axisBottom`/`d3.axisLeft` for ticks. Data is loaded asynchronously from a local CSV file via `d3.csv`. The chart is wrapped in a custom `scatterPlot` function that accepts configuration options, demonstrating a modular approach for reuse.
AI-generated description