Add a link to alt chart title

I tried to add a link pointing to the query used by an alt chart to the title (e.g. mychart(query) ) but it seems not possible per my google search. I have to use below which is not compact:

st.write(“query”)

any idea how to add a link to the alt chart with better design? Thanks.