Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Hover, hold, and clink using Plotly Express

Hi Folks,

A newbee here. I just started using Plotly and I am making the following call which creates a scatter plot. I have imported hrefs using hover_name for each dot in my plot and I can see them but I am not able to click them. Any way to hold the window for a little longer so I can click on the link?

# x and y given as array_like objects

import plotly.express as px

import pandas as pd

df = pd.read_csv('sprintCompletedIssuesChangeLog.csv')

df['Created Timestamp'] = pd.to_datetime(df['Created Timestamp']);

df['Done Timestamp'] = pd.to_datetime(df['Done Timestamp']);

df.sort_values(by=['Done Timestamp'])

print(df)

fig = px.scatter(df, x="Done Timestamp", y="Cycle Time", color="Issue Type", hover_name="HrefURL", hover_data=["Created Timestamp", "Sprint"],

                labels={

                        "Done Timestamp": "Date Completed",

                        "Cycle Time": "Cycle Time (Days)"

                        }

)

# customize hover label format

fig.update_layout(hoverlabel=dict(bgcolor="white", font_size=16,font_family="Rockwell"))

# set chart title

fig.update_layout(hoverlabel_align = 'auto', title = "Iteration Cycle Time Report" )

fig.show()