Published
Edited
Oct 1, 2019
Insert cell
Insert cell
// import the d3 library
Insert cell
// create a variable with the URL for your data
Insert cell
// read the TSV data into an array called salaries using d3
Insert cell
Insert cell
// d3.nest() is called on its own line
// then the subsequet methods are called on individual lines
Insert cell
Insert cell
// do the same as above with another line that calls .entries on our array of players
Insert cell
Insert cell
function summarizer(players) {

// stuff here



}
Insert cell
Insert cell
// create the positions variable
Insert cell
Insert cell
import {table} from "@tmcw/tables@513"
Insert cell
// call table() on positions
Insert cell

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.
Learn more