Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusability_Scatter_Plot

Public visualization

Reusability_Scatter_Plot

0 stars0🌍 Public
Sshabanasyed2266@gmail.com
Last edited Oct 28, 2025
Created on Oct 28, 2025

This interactive scatter plot visualizes the relationship between pet age and adoption fee, with point size encoding weight. Using D3 v7 with an SVG rendering, the `scatterPlot()` function configures linear scales for both axes via `d3.scaleLinear` and a square-root scale for bubble radius. It employs `d3.scaleOrdinal` with `d3.schemeSet2` to color-code points by pet type. The chart reads a CSV from a GitHub gist, and a CSS-styled tooltip appears on mouse movement via `.on('mousemove')`, displaying pet details. Grid lines and axis labels enhance readability.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed