🌍 Public
Viewing a saved revision (read-only)
d9b8674c94374f06bee3c27533f21638
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