Home > front end >  Does Altair support tooltips when exporting in svg format?
Does Altair support tooltips when exporting in svg format?

Time:10-28

I tried exporting a sample graph with tooltips to SVG, but it seems the tooltips are lost. I could not find any documentation. Is there a way to have tooltips when using SVG?

CodePudding user response:

No, SVG does not support tooltips, so Altair does not include them when exporting to SVG.

(Side note because someone will mention it in the comments: SVG does have a <title> attribute that some SVG viewers show when the mouse is hovered over the associated element, but unfortunately it's not really sufficient to handle the complexity of the tooltips created by Altair)

  • Related