SVG examples to be embedded in static Web pages

Hi, I recently came across streamlit:

My aim is to produce an SVG to be embedded on a Web page.

Gnuplot can produce interactive SVG like so

For example I require that mouse hover to show the values like so:


So my question is, can streamlit produce the sort of interactive plots I need to embed? Are there some good examples on blogs and such?

Hi @hendry, welcome to the Streamlit community!

svg can be implemented as follows:

import streamlit as st

<svg height="100" width="100">
  <circle cx="50" cy="50" r="40" stroke="black" stroke-width="3" fill="red" />
, unsafe_allow_html=True)

Animated SVG uses JavaScript if I’m not mistaken, but this might be implementation-specific (I don’t know). You could try to copy the SVG example into my code above, or possibly use components.html from the Streamlit Components functionality to display: