3

I am working on a filled area animation, very similar to: link

How to I add annotation that will be animated in accordance to the plot animation? that is, how do I make the annotation text appear only when the point it is annotating appears?

1 Answer 1

1

The trick is to add

 layout = go.Layout(annotations= [dict( 'my Annotations')])

in to the frame

frames = [dict(data=[], traces=[], layout = go.Layout(annotations= [dict( 'my Annotations')]) )]

Then the annotations will be related to the frame and not to the parent layout

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.