Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement updateMode property #1024

Closed
dangreen opened this issue Feb 28, 2022 · 1 comment
Closed

Implement updateMode property #1024

dangreen opened this issue Feb 28, 2022 · 1 comment

Comments

@dangreen
Copy link
Collaborator

dangreen commented Feb 28, 2022

What problem are you trying to solve?

Chart.js' update() method can accept update mode as argument.

(method) Chart<TType, TData, TLabel>.update(mode?: "resize" | "reset" | "none" | "hide" | "show" | "normal" | "active" | undefined): void

Currently, react-chartjs-2 doesn't support passing update mode to Chart.js.

Describe the solution you'd like

Need to implement the updateMode property to pass it to every chartRef.current.update() call.

Source: #1006

@Arantiryo
Copy link
Collaborator

Arantiryo commented Jun 7, 2022

Implemented in 4.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants