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

We are getting an error "ERROR Error: Canvas is already in use. Chart with ID '2' must be destroyed before the canvas can be reused." while **rebinding** the chart from API, #21

Closed
VikasSaxenaxcdify opened this issue May 29, 2022 · 1 comment
Labels
question Further information is requested wontfix This will not be worked on

Comments

@VikasSaxenaxcdify
Copy link

VikasSaxenaxcdify commented May 29, 2022

We are getting an error "ERROR Error: Canvas is already in use. Chart with ID '2' must be destroyed before the canvas can be reused." while rebinding the chart from API,

we have used
ctx.clear(); and ctx.destroy()
method for clearing the canvas but getting errors while used
ERROR TypeError: ctx.destroy is not a functin

ERROR Error: Canvas is already in use. Chart with ID '2' must be destroyed before the canvas can be reused.
at new Chart (chart.esm.js:5354:1)
at new WordCloudChart (index.umd.js:747:1)
at EmployeeComponent.wordcloudChart (employee.component.ts:281:21)
at employee.component.ts:339:14
at Object.next (Subscriber.js:110:1)
at SafeSubscriber._next (Subscriber.js:60:1)
at SafeSubscriber.next (Subscriber.js:31:1)
at map.js:7:1
at OperatorSubscriber._next (OperatorSubscriber.js:9:1)
at OperatorSubscriber.next (Subscriber.js:31:1)

@VikasSaxenaxcdify VikasSaxenaxcdify added the question Further information is requested label May 29, 2022
@sgratzl
Copy link
Owner

sgratzl commented May 31, 2022

how is the given angular created error related to this plugin of chart.js? I would ask the devs who developed the angular chart.js binding

@sgratzl sgratzl added the wontfix This will not be worked on label May 31, 2022
@sgratzl sgratzl closed this as completed May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants