Platform
Solutions
Resources
Pricing
Sign in
Sign up
Volodymyr Agafonkin
Engineer at Mapbox, creator of Leaflet, algorithms geek, open source enthusiast, musician, father of twin girls, Ukrainian. 🇺🇦
Workspace
Fork
Published
By
Volodymyr Agafonkin
Edited
Aug 17, 2021
4 forks
5 stars
Insert cell
Insert cell
expression
=
createExpression
(
[
"interpolate"
,
[
"linear"
]
,
[
"zoom"
]
,
0
,
[
"rgb"
,
[
"get"
,
"rating"
]
,
0
,
0
]
,
10
,
[
"rgb"
,
0
,
0
,
[
"*"
,
4
,
[
"get"
,
"rating"
]
]
]
]
,
'color'
// output type: number, string, color, ...
)
Insert cell
expression
.
evaluate
(
{
zoom
:
9.2
}
,
// global properties
{
properties
:
{
rating
:
30
}
}
// feature data
)
Insert cell
Insert cell
Insert cell
One platform
to build and deploy the best data apps
Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
expression
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
createExpression
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML