Skip to content

Calling .destroy() on a animated graph does not stop the graph animation #2613

@Delca

Description

@Delca

I receive datasets asynchronously and plot them as soon as I can, thus destroying and creating a new chart each time. This lead me to discover that destroying a Chart object through .destroy() does not seem to prevent the animation manager from continuing to animate it.

Here is a JSBin example where the animation is set to last for 8 seconds but the graph gets destroyed after only one. As a visual aid, the page's colour is changed when .destroy() is called.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions