Public
Edited
May 22, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
L = require('leaflet@1.2.0')
Insert cell
html`<link href='${resolve('leaflet@1.2.0/dist/leaflet.css')}' rel='stylesheet' />`
Insert cell
topojson = require("topojson-client@3")

Insert cell
Insert cell
Insert cell
Insert cell
ridesByDate = {
const data = await FileAttachment("BluebikeRidesByDateAndBikeType@1.csv").csv({ typed: true });;
return data.columns.slice(1)
.flatMap((type) => data.map(({ date, [type]: rides}) => ({date, type, rides})));
}
Insert cell
ridesByMonth = {
const data = await FileAttachment("monthlyWinterBluebikesData2022-2024").csv({ typed: true });;
return data.columns.slice(2)
.flatMap((type) => data.map(({ month, year, [type]: rides}) => ({month, year, type, rides})));
}
Insert cell
stations = FileAttachment("BluebikeWinter2024RidesByStationAndBikeType@1.csv").csv()
Insert cell
import {legend} from "@d3/color-legend"
Insert cell
Insert cell
Insert cell
d3 = require('d3@5.0')

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