Activity6_q3
✓ Published0🌍 Public
This example displays a scatter plot of gross income against age for six individuals. Each point is colored distinctly, with opacity set to 0.5, and hover labels reveal the associated gender alongside the x and y values. The visualization is built using Plotly’s JavaScript library, specifically the `Plotly.newPlot` function, which renders the scatter markers into an 800 by 600 pixel div. The data are hardcoded in the script, with age and income values paired directly.
AI-generated descriptionMIT Licensed