Published
Edited
Aug 27, 2019
2 stars
Insert cell
Insert cell
// Put your style spec code in here and press shift-enter
evaluate({
type: 'fill',
paint: {
'fill-color': ['case', ['==', ['get', 'foo'], 'bar'], 'blue', 'red']
},
layout: {
'visibility': "none"
}
}, environment)
Insert cell
Insert cell
Insert cell
Insert cell
feature = ({
type: 'Feature',
geometry: {
type: 'Point',
coordinates: [30, 30]
},
id: 3,
properties: {
foo: 'bar'
}
})
Insert cell
Insert cell
featureState = ({})
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