{
const image = FileAttachment("Middle-earth.jpeg").image()
const plot1 = vl.markImage()
.data({
"values": [
{"x": 100, "y": 200, "img": await(FileAttachment("Middle-earth.jpeg").url())},
]
})
.encode(
vl.x().fieldQ('x'),
vl.y().fieldQ('y'),
vl.url().fieldN('img')
)
const circles = vl.markCircle({
stroke: '#555555',
strokeWidth: 1,
strokeOpacity: 0.7,
color: "#54E1AE",
size: 80
})
.data(data)
.encode(
vl.x().fieldQ('x'),
vl.y().fieldQ('y')
)
const layer = vl.layer( plot1, circles)
return layer.render()
}