Skip to main content
100%

Crab scatter plot

✓ Published1🌍 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

MIT Licensed

Similar vizzes