I am trying to build a scatterplot with arrow lines inbetween the two points, denoting the movement from 2019-2021. Looking at the documentation here (Styling markers in Python), the following code should work for graph_objects.
help(go.scatter.Marker.angleref) displays the following information:
Sets the reference for marker angle. With "previous", angle 0
points along the line from the previous point to this one. With
"up", angle 0 points toward the top of the screen.
The 'angleref' property is an enumeration that may be specified as:
- One of the following enumeration values:
['previous', 'up']