Public
Edited
Jun 13, 2023
1 fork
Insert cell
Insert cell
example = FileAttachment("example.json").json()
Insert cell
data = example.data
Insert cell
data
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
data1
X
year
Y
mean
Color
series
Size
Facet X
Facet Y
Mark
line
Type Chart, then Shift-Enter. Ctrl-space for more options.

Insert cell
Plot.plot({
color: {
legend: true,
domain: example.levels // specify your domain array here
},
marks: [
Plot.lineY(data1, {
x: "year",
y: "mean",
stroke: "series",
tip: true
})
]
})

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