Published
Edited
Aug 15, 2018
2 forks
Insert cell
Insert cell
vegaEmbed(plot)
Insert cell
vegaLite(plot)
Insert cell
plot = Object({
"data": {
"values": [
{"fixed": 3, "variable": 10, "storage": 20},
{"fixed": 8, "variable": 7, "storage": 26}
]
},
"transform": [{"fold": ["variable", "fixed"], "as": ["key", "value"]}],
"mark": "line",
"encoding": {
"x": {"field": "storage", "type": "quantitative"},
"y": {"field": "value", "type": "quantitative"},
"color": {"field": "key", "type": "nominal"}
}
})
Insert cell
Insert cell
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