Bring Drag & Drop to Dash with Dashboard Engine. 💫 Learn how at our next webinar!

Set a bordercolor for arrows in Plotly Go and possible to set hovertext in annotation?

Hi there! I’m new to Plotly. Is it possible to set a bordercolor for an arrow in Plotly GO? I’m trying to visualise eye-movements as seen in this picture below. This is created with matplotlib. Link: Scanpath in matplotlib

PyGaze_Analyser

My own visualisation in plotly go looks like this;

Second question;
I would like to add hovertext to the line/arrow annotation but I haven’t figured out how to do this. I have no problem adding a hovertext to the datapoints (see code below) via ‘fig.add_trace’. However, I would like to display a hovertext to the line/arrow connecting the datapoints (possible via ‘fig.add_annotation()’). Is this possible?

        fig.add_trace(go.Scatter(
            x=df['X'], 
            y=df['Y'], 
            hovertext=df['Duration'], 
            hovertemplate='Duration:%{hovertext}',
            marker=dict(
                color=marker_color,
                size=df['Duration']/15,
                line=dict(
                color=line_color,
                width=5
                ))
        ))