🌍 Public
Viewing a saved revision (read-only)
9952c186afa64db78ef27eb4e4c6f828
Activity6_q3
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 description