🌍 Public
Viewing a saved revision (read-only)
ac9f4ffd738f41e69671a08c84c4e815
Draw scatter plot
This React example generates a scatter plot with 50 randomly positioned points, rendered using the Recharts `ScatterChart` with `XAxis`, `YAxis`, and `CartesianGrid`. A button triggers regeneration of the data, while a custom `Tooltip` displays the exact X and Y coordinates on hover. The plot uses random numeric values between 0 and 100 for both axes, with the point count displayed dynamically.
AI-generated description