Chart Destroy, Dispose, and Clear Canvas Example


Topic: Chart Destroy, Dispose, and Clear Canvas Example

edharris4 asked 2 years ago

The snippet found at: https://mdbootstrap.com/snippets/standard/kpienkowska/4434713 which tells how to destroy and dispose of a chart instance and clear the canvas is no longer an active link and gives a 404 error.

As pie or doughnut charts which have the option enable to show the percentages on the graphs respond with an error when trying to update the data, I'm coding a work-around that will destroy and dispose of the chart instance and clear the canvas so that I can just redraw the updated chart in the old chart's location.

Thanks,

E


kpienkowska staff answered 2 years ago

I've prepared a new snippet. https://mdbootstrap.com/snippets/standard/kpienkowska/4526223


bpeterson pro premium priority commented 2 years ago

Can you make a snippet that does the same thing with dynamic/ asynchronous data?


kpienkowska staff commented 2 years ago

It works the same with every type of chart. Can you explain what exactly you want to see in this snippet?


bpeterson pro premium priority commented 2 years ago

I've been trying to make this work with dynamic/ asynchronous data https://mdbootstrap.com/snippets/standard/bpeterson/4484230


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 5.0.0
  • Device: Any Computer
  • Browser: Chrome, iOS,
  • OS: linux, PHP8, mySQL
  • Provided sample code: No
  • Provided link: Yes
Tags