Published
Edited
Apr 14, 2019
Fork of gls
Insert cell
Insert cell
Insert cell
data = {
const data = {
"worms": [
{
"path": [
[50, 50],
[100, 50],
[100, 100],
[50, 100]
],
"head": [100, 100],
"drawHead": false,
"length": 75,
"direction": false,
"step": 1,
"color": "lightskyblue",
"width": 2
},
{
"path": [
[50, 50],
[100, 50],
[100, 100],
[50, 100]
],
"head": [100, 100],
"drawHead": false,
"length": 85,
"direction": true,
"step": 2,
"color": "lightskyblue",
"width": 2
}
]
}
return data
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
const dbapi = GlsApiClient.create('https://cors-anywhere.herokuapp.com/' + dbUrl)
return dbapi.add(user, password, glsName, JSON.stringify(data))
.then(data => data)
.catch(err => err)
}
Insert cell
Insert cell
Insert cell
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