Skip to content

Async updates to the plotly values make annotations disappear  #231

Open
@mason

Description

@mason

https://codepen.io/mason142/pen/gOLmvGY

In this codepen I have a scatter chart setup with some setTimeout's to trigger react state changes which power the values in plotly. As you can see, the red line disappears after I change the value of g. if you double click the chart it comes back. If I update x,y, and g at the same time then there are no issues.

If annotations x,y values are hard coded and don't change based on state changes like in this example then the problem also goes away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions