Public
Edited
May 15, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
bertin = require("bertin@1")
Insert cell
toto = form.option1 + '_' + form.option3 + '-' + form.option1 + '_' + form.option2
Insert cell
sdf_temp = bertin.properties.add({
geojson: sdf,
field: "temp",
expression: toto
})
Insert cell
sdf_temp2 = bertin.properties.add({
geojson: sdf_temp,
field: "temp2",
expression: "(temp**2)**0.5"
})
Insert cell
sdf_temp3 = bertin.properties.add({
geojson: sdf_temp2,
field: "temp3",
expression: "(temp / temp2)"
})
Insert cell
colors = {
if (sdf_temp3['features'][0]['properties']['temp3']==-1){
return(['#00abc5','orange'])
}
else{
return(['orange','#00abc5'])
}
}
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