Is it possible to change the color of the link within a hovertext? ie something other than the default blue.
I am using go.Scattermapbox with:
hovertemplate="%{hovertext}<br><a href='%{customdata}'>Click here for Project Overview</a>",
Is it possible to change the color of the link within a hovertext? ie something other than the default blue.
I am using go.Scattermapbox with:
hovertemplate="%{hovertext}<br><a href='%{customdata}'>Click here for Project Overview</a>",
hi @tamara.vasey
can you try it with:
fig.update_layout(
hoverlabel=dict(
font=dict(
color="red"
)
)
)
The full code example is:
import plotly.express as px
df = px.data.gapminder().query("continent=='Oceania'")
fig = px.line(df, x="year", y="lifeExp", color="country")
fig.update_traces(mode="markers+lines")
fig.update_layout(
hoverlabel=dict(
font=dict(
color="red"
)
)
)
fig.show()