...

/

Understanding the Problem

Understanding the Problem

Newly created elements will have default x, y, height, and width attributes. This can create problems when trying to animate them.

We'll cover the following...

We are going to take the time to discuss the problem with our chart. Switching between metrics does not seem to be an issue. However, the animations do not work normally. The transitions occur very quickly. That is because, by default, the animation is configured to play for a quarter of a second.

The animation has been slowed down so that we can see the problem more clearly.

If we switch from humidity to temperature, the animation for the bars starts at the top left corner. They animate into the correct spot. The problem is that the starting positions are wrong. So, why is this happening?

Default

...