Skip to content

Disabling Animations when Updating a Chart #10390

@ehildebrandtrojo

Description

@ehildebrandtrojo

Documentation Is:

  • Missing or needed?
  • Confusing
  • Not sure?

Please Explain in Detail...

Hello,

I am plotting a line graph and would like to disable the 'pop-up' animation when I add a point to my chart. Looking through the docs, I found the following which seems to address the issue (please let me know if this isn't the fix I'm looking for),

Sometimes when a chart updates, you may not want an animation. To achieve this you can call update with 'none' as mode.

I tried adding mode: 'none' to my options dictionary, but that did not work. Does anyone have any examples/know where I should add mode: 'none' as directed by the docs?

Your Proposal for Changes

Specify where mode as 'none' should be added.

Example

https://www.chartjs.org/docs/latest/developers/updates.html#preventing-animations

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