Topic: Can't add chart

arashabtahi free asked 2 years ago

After adding the html and script I get the following error

Uncaught TypeError: mdb.Chart is not a constructor at index.html:391

line 391: new mdb.Chart(document.getElementById('pie-chart'), dataPie);

Dawid Wajszczuk staff commented 2 years ago

Hi. Did you import all the necessary files to your project? Here is the instruction Or maybe there is some typo in your path to our JS file.

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: Laptop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No