Type Table, then Shift-Enter. Ctrl-space for more options.
penguinData.map(d=>({species:d.species,massKilograms:d.body_mass_g/100,billRation:d.culmen_length_mm/d.culmen_depth_mm})).filter((d)=>d.billRatio>3.5)// Add your code here to do the wrangling steps above!
// Find the minimum culmen length in penguinData:
d3.min(penguinData,d=>d.culmen_length_mm)
// Alternatively:
d3.deviation(penguinData,d=>d.culmen_depth_mm)// Standard deviation of culmen depth:
d3.count(penguinData,d=>d.flipper_length_mm)// Count of flipper length values:
penguinData
Type Table, then Shift-Enter. Ctrl-space for more options.
groupSpecies=d3.group(penguinData,(d)=>d.species)// Group penguinData by species (store Map as groupSpecies):
groupSpecies.get("Adelie")// Then get just the Adelies:
})// Create a new bar chart with Observable Plot to visualize mean body mass by species:
import{showMe}from"@observablehq/show-me"
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.