Type Table, then Shift-Enter. Ctrl-space for more options.
data1
X*
—
Y*
—
Color
—
Size
—
Facet X
—
Facet Y
—
Mark
Auto
Type Chart, then Shift-Enter. Ctrl-space for more options.
removePatient=data.filter((d)=>d.patientID)
import{Streamgraph}from"@d3/streamgraph"
chart=Streamgraph(data1,{
x:d=>d.date,
y:d=>d.time_spent,
z:d=>d.patient_id,
yLabel:"Time Spent",
width,
height:500
})
import{LineChart}from"@d3/line-chart"
flart=LineChart(data1,{
x:d=>d.date,
y:d=>d.time_spent,
yLabel:"Time Spent (min)",
width,
height:500,
color:(d)=>d.patient_id
})
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.