An SVG is create from the following test.dot file:
digraph {
google[label="google"
URL="https://google.com"
target="_blank" fontcolor=blue
]
}
With "dot -Tsvg test.dot > test.svg", an test.svg is created.
The SVG can be shown in the following .html
<object data="test.svg" type="image/svg+xml">
the link is clickable in Chrome.
Now, if I add another line under the object
line
<a href="https://stackoverflow.com/">Stackoverflow</a>
the new href
wouldn't show up in Chrome.
If I use img
and href
as following in .html
<img src="test.svg">
<a href="https://stackoverflow.com/">Stackoverflow</a>
then the stackoverflow
shows up with the svg, but the link in the SVG is not clickable anymore.
How can you make the SVG clickable and the stackoverflow
href also showing?