Published
Edited
Jun 25, 2020
Importers
9 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
initSVGObject = () => {
const obj = {};
obj.paths = densityContourPaths;
obj.depths = densityContourPaths.map((d,i) => i * 2)
obj.colors = densityContourPaths.map((d,i) => colorScale(i))
obj.strokes = densityContourPaths.map((d,i) => colorScale(i))
obj.center = { x: 150, y: 100 };
return obj;
}
Insert cell
scene = {
const scene = new THREE.Scene();
scene.background = new THREE.Color(0xffffff);
scene.add(group);
return scene;
}
Insert cell
group = {
const group = new THREE.Group();
const obj = initSVGObject();
addGeoObject( group, obj );

return group;
}

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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