Skip to content
Advertisement

Uncaught TypeError: L.minichart is not a function (Leaflet Piechart)

I tried to create my chart using leaflet and caught an error that say L.minichart is not a function. And here is my script :

JavaScript

Advertisement

Answer

You have not imported the library. Include it inside the head tag after importing leaftet css and js:

JavaScript

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement