flamegraph icon indicating copy to clipboard operation
flamegraph copied to clipboard

Readme should mention the SVG is interactive

Open martin-t opened this issue 5 years ago • 2 comments

The default image viewer on some systems shows it as a simple image and the function names are too long to fit. It took me a while to figure out that i can open it in e.g. firefox and hover over them to see the full name.

martin-t avatar Jul 23 '19 21:07 martin-t

Additional info: If you host the SVG on an image hosting site like 0x0.st, it will not be interactive. But if you load the image from a local file system, it will be. This is due to browser security policies that I'm not very familiar with.

eminence avatar Jul 26 '19 13:07 eminence

@eminence Sorry for necro-posting, but that's actually not correct. Hosting externally doesn't matter, rather the way the svg is embedded in the page.

If you embed the file on the page using a <img src="https://blah.svg"/> tag, then it won't be interactive, but if you use a <iframe src="https://blah.svg"/> it will be interactive.

Tested against Chrome and Firefox.

Scottapotamas avatar Nov 03 '19 06:11 Scottapotamas