Topic: Chart Destroy, Dispose, and Clear Canvas Example

edharris4 free asked 1 year 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


Kamila Pieńkowska staff answered 1 year ago


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


bpeterson priority commented 1 year ago

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


Kamila Pieńkowska staff commented 1 year ago

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


bpeterson priority commented 1 year 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

  • ForumUser: 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