download png with "external" style for svg ?

Hi
in my notebook here

If i use the download.PNG menu of the cellule (zhmap) i get what i see it’s great
BUT
if i want do it inside my note book following this

it doesn’t work i have a png file but it seems that all style are not here ?.. how to do this ?..what i miss ?

Thanks

Hi @jipexu,

Observable’s “Download SVG” feature just includes the content of the <svg> itself. It doesn’t inline external CSS styles into the downloaded .svg file.

I’d recommend including the styles directly inline in your zhmap cell, in order to produce a completely self-contained SVG file.

Cheers,
Jeremy

Thanks @jashkenas
i will do this !