Skip to main content
100%

Draw scatter plot

✓ Published0🌍 Public
Aadam.hsaine@gmail.com
Last edited Jan 20, 2025
Created on Jan 16, 2025

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
MIT Licensed

Similar vizzes