Hi, I've used a modified version of this function in my chart https://observablehq.com/@7722371e7ecac8bd/bhikkhu-patimokkha. This modified version allow for higher precision and add a white background.
The only issue is that it doesn't include imported images in the final PNG. I included a licence logo at the bottom of the chart using :
svg
.append("svg:image")
.attr(
"xlink:href",
"https://mirrors.creativecommons.org/presskit/buttons/88x31/svg/by-nc.svg"
)
and it doesn't show in the downloaded PNG.
Any idea how to solve this ?
Thanks a lot