Can't add chart

arashabtahi asked 3 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 3 years ago

Hi. Did you import all the necessary files to your project? Here is the instruction https://mdbootstrap.com/docs/standard/pro/installation/. Or maybe there is some typo in your path to our JS file.


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Open

Specification of the issue
  • User: 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