🌍 Public
Viewing a saved revision (read-only)
8cfd0affb4b74990bee8cf45e3cd923d
Fork of activity6_Task3_answer
This interactive D3.js scatter plot visualizes smartphone specifications, plotting screen size on the x-axis against battery life on the y-axis. Individual data points are color-coded by phone category (budget in sky blue, midrange in light green, and flagship in orange), with data loaded from a remote CSV using `d3.csv`. The visualization uses `d3.scaleLinear` for axes, labels drawn via SVG text elements, and supports dynamic viewport sizing through `window.innerWidth` and `window.innerHeight`.
AI-generated description