Update Method for mdb-chart


Topic: Update Method for mdb-chart

bernspe pro premium priority asked a year ago

Expected behavior MDBChart update on data update Actual behavior no update Resources (screenshots, code snippets etc.)


Bartosz Cylwik staff answered a year ago

Hi! You can update the data used in your chart by updating the data ref value and options by updating the options ref value, like shown here in this snippet:

https://mdbootstrap.com/snippets/vue/b-cylwik/5480840#js-tab-view

The only thing is that those changes cannot be performed at the same time. The default animation duration in charts is 1000ms so there needs to be more than 1000ms between updating the options and data.

Best Regards!


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: Pro
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB5 4.0.0
  • Device: Desktop
  • Browser: Chrome
  • OS: MacOSX
  • Provided sample code: No
  • Provided link: No
Tags