Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

GBCL

Public visualization

GBCL

0 stars0🌍 Public
AABEGUNRIN GIDEON KOLAWOLE
Last edited Feb 5, 2025
Created on Feb 5, 2025

This visualization displays a scatter plot of penguin bill length against flipper length, using data from the @curran/penguins dataset. It filters out incomplete records with `Array.filter` and `isNaN` before rendering. The chart is built with d3 scales (`scaleLinear`), axes (`axisLeft`), and positioned circles, with a gray inner rectangle and translucent points. Axis labels are added via the @curran/axis-labels package.

AI-generated description

A demonstration of how to filter out missing data, leveraging Array.filter and isNaN.

const filteredData = data.filter(
  (d) => !(isNaN(xValue(d)) || isNaN(yValue(d))),
);

Comments

Sign in to join the discussion.

MIT Licensed