Published
Edited
Nov 7, 2019
Insert cell
Insert cell
Insert cell
md`## Current zoom: ${clustersMap.getZoom().toFixed(2)}`
Insert cell
Insert cell
clustersMap.setPaintProperty('clusters', "circle-opacity", clusterOpacity);
Insert cell
Insert cell
clustersMap.setPaintProperty('unclustered-point', "circle-opacity", pointOpacity);
Insert cell
viewof clusterRadius = slider({
min: 1,
max: 50,
step: 1,
value: 50,
title: "Cluster Radius",
description: "How far the cluster \"reaches\" to grab points."
});
Insert cell
viewof clusterMaxZoom = slider({
min: 0,
max: 22,
step: 0.5,
value: 10,
title: "Cluster Max Zoom",
description: "The max zoom to display clusters"
});
Insert cell
viewof blueClusterRadius = slider({
min: 5,
max: 20,
step: 1,
value: 10,
title: "Blue Cluster Radius"
});
Insert cell
viewof yellowClusterRadius = slider({
min: 5,
max: 20,
step: 1,
value: 10,
title: "Yellow Cluster Radius"
});
Insert cell
viewof pinkClusterRadius = slider({
min: 5,
max: 20,
step: 1,
value: 10,
title: "Pink Cluster Radius"
});
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