Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Crab scatter plot

Public visualization

Viewing a saved revision (read-only)

12676e12f4114918b48d46098b1396f1

Crab scatter plot

1 star1🌍 Public
LLouis Astorg
Last edited Aug 2, 2022
Created on Aug 2, 2022

This example shows the relationship between fishing depth and catch per unit effort for horsehair crabs, with each point representing a single haul. It uses a D3.js (v7) scatter plot rendered as SVG, where the x-axis maps bottom depth and the y-axis shows CPUE. The code loads data from a CSV file via `d3.csv`, then builds the plot using `d3.scaleLinear` for axes, `d3.axisLeft` and `d3.axisBottom` for tick marks, and `d3.format` for comma-separated numeric labels. Tooltips display each point's exact coordinates.

AI-generated description

D3 Scatter Polt template