Public
Edited
Jun 1, 2023
Insert cell
Insert cell
raw = FileAttachment("edt-matiere.csv").csv()
Insert cell
raw_parsed = raw.map((row,i) =>{
let parseDate=d3.timeParse("%m/%d/%Y")
row.date = parseDate(row.Date)
row.index = i
return row
})
Insert cell
timeParse = d3.timeParse("%m/%d/%Y")
Insert cell
d3.group(raw, d=>d["Code Cours"])
Insert cell
Plot.line(raw_parsed, {x: "date", y: "index"}).plot()
Insert cell
Plot.line(raw_parsed, {x: "date", y: "index"}).plot({facet: {data: raw_parsed, x: "Code Cours"}, marks:[Plot.frame()]})
Insert cell
Plot.dot(raw_parsed, {x: "date", y: "Groupe(s)", fill: "Code Cours"}).plot()
Insert cell
types_groupes = [...d3.group(raw, d => d["Groupe(s)"])].map(d => d[0])
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

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