Published
Edited
May 14, 2019
1 fork
Insert cell
md`# Tangshan Data`
Insert cell
d3 = require('d3')
Insert cell
Insert cell
Insert cell
Insert cell
viewof test2 = embed({
"$schema": "https://vega.github.io/schema/vega-lite/v3.json",
repeat: {column: headers},
"config": {
"invalidValues": null
},
spec: {
width:300,
height:300,
"data": {values: data},
"mark": {"type":"line", point:true},
"encoding": {
"x": {"field": "Time", "type": "temporal"},
"y": {"field": {"repeat":"column"}, "type": "quantitative"},
"color":{"field":"District","type":"nominal"}
}
}
})
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