Published
Edited
May 22, 2021
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data = {
let data = d3.rollup(tweets,
v => v.length,
t => {
let d = new Date(t.local_time)
let formatTime = d3.timeFormat("%Y-%m-%d");
return formatTime(d)
})
return [...data.entries()].map(([d,v],i) => ({ "date": new Date(d), "value": v }))
}
Insert cell
tweets = d3.csv('https://raw.githubusercontent.com/taniki/datagouvfr-tweets/main/datagouvfr-mentions.csv')
Insert cell
import { legend } from '@d3/color-legend'
Insert cell
import { d3, Plot } from '@observablehq/plot'
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