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