add title

This commit is contained in:
Anton Nesterov 2024-09-24 16:54:06 +02:00
parent b937e3e1b5
commit 2ab62c83a7
No known key found for this signature in database
GPG key ID: 59121E8AE2851FB5

View file

@ -54,7 +54,7 @@ export function sideBySidePlot(opts: {
})
plt.setAttribute('xmlns', 'http://www.w3.org/2000/svg')
const svgUrl = `data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(plt)))}`
imgTags.push(`<img src='${svgUrl}'>`)
imgTags.push(`<img title="${xTarget} / ${yTarget}" src='${svgUrl}'>`)
}
}
const output = `