Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Chart Destroy, Dispose, and Clear Canvas Example

edharris4 free 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


Kamila Pieńkowska staff answered 2 years ago


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


bpeterson priority commented 2 years ago

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


Kamila Pieńkowska 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 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

  • 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