tip:{},// This causes the plot to error with "Uncaught (in promise) TypeError: Cannot read properties of null (reading 'fi')"
width:100,
height:100,
x1:0,
x2:100,
y1:0,
y2:100,
fill:(x,y)=>{
returnMath.sin(5*x*0.01)*Math.cos(11*y*0.01);
},
imageRendering:"pixelated",
interpolate:"none"
}).plot()
Plot.raster({
width:100,
height:100,
x1:0,
x2:100,
y1:0,
y2:100,
fill:(x,y)=>{
returnMath.sin(5*x*0.01)*Math.cos(11*y*0.01);
},
// tip: {},
imageRendering:"pixelated",
interpolate:"none"
}).plot()
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.