viewof viz = embed(
{
data: { name: "data" },
mark: { type: "text", clip: true, tooltip: false },
params: [{ name: "f_in", value: 20 }],
transform: [{ filter: "datum.f_in==f_in" }],
encoding: {
x: { field: "x", type: "quantitative", scale: { domain: [0, 400] } },
y: {
field: "y",
type: "quantitative",
scale: { domain: [0, 200] },
sort: "descending"
},
size: { field: "size", type: "quantitative" },
angle: {
field: "x",
type: "quantitative",
scale: { range: [0, 300] }
},
detail: { field: "p_in", type: "nominal" },
text: { value: "❄️" }
},
config: { legend: { disable: true } },
datasets: {
data: []
},
width: 300,
height: 260,
background: "darkred"
},
{ renderer: "canvas" }
)