Published
Edited
Feb 20, 2018
1 star
Insert cell
Insert cell
mutable value = 5
Insert cell
viewof slider1 = slider({min: 0, max: 100, value: mutable value})
Insert cell
viewof slider2 = slider({min: 0, max: 100, value: mutable value})
Insert cell
{
if (slider1 !== mutable value) {
mutable value = slider1;
viewof slider2.input.value = slider1;
viewof slider2.dispatchEvent(new CustomEvent("input"));
}
}
Insert cell
{
if (slider2 !== mutable value) {
mutable value = slider2;
viewof slider1.input.value = slider2;
viewof slider1.dispatchEvent(new CustomEvent("input"));
}
}
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.
Learn more