//This is the critical line used to update preexisting elements without resetting the scene! Note that the index used to access the children array is based on order creation. The zeroeth item is the first element added to the illustration, the second element added would be the first index...
illo.children[0].translate.y=updatingData;
illo.updateRenderGraph();
yieldelement;
}
}
startingShapes={
newZdog.Rect({
addTo:illo,
width:80,
height:80,
translate:{z:40},
stroke:12,
color:"#E62",
fill:true,
id:"my name"
});
newZdog.Ellipse({
addTo:illo,
diameter:20,
translate:{z:20},
stroke:8,
color:"#636"
});
}
Zdog=require("zdog@1/dist/zdog.dist.min.js")
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.