// Optional: create a black background rectangle, to make your rectangles in the heatmap pop out
// TODO: perform your data join, creating a rectangle for every cell in binned_data
// * you will use your band scales to determine the x and y positions
// * you will use the bandwidths of the band scales to determine the width and height of rectangles
// * you will use your complementary color scale for the fill of the rectangle
// TODO: axes (use the same linear scales that you used in the above scatterplot)
returnsvg.node()
}
binned_data={
letbinned_data=[]
returnbinned_data
}
data=FileAttachment("vgg_umap@4.json").json()
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.