Skip to content

Chart does not properly update with animation in master #6104

@emmcb

Description

@emmcb

Regression from #5331

I have a chart parameterized by a slider, so as the user is moving the slider, I repeatedly call update() on the chart to reflect the new parameter value in real time.

It is working well with version 2.7.3, but when testing with master, the chart does not update until the user stops moving the slider.

I found that this is a regression from #5331 which removes the drop frame mechanism. As the update() method is called nearly each frame, the animation start time is also reset each frame, and consequently the chart is updated each frame with an animation progress of zero.

The same bug appears on tooltip animation with a line chart configured like this:

tooltips: { mode: 'nearest', intersect: false }
As moving the mouse cursor on the chart:

  • In 2.7.3 the tooltip follows the cursor
  • In master the tooltip does not move until we stop moving the cursor

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions