Topic: Minimalist charts not working for last 3 versions released.
freddiehaddad pro asked 7 years ago
MD Bootstrap Admin packs are not working correctly (see the minimalist chart).
https://mdbootstrap.com/previews/templates/admin-dashboard/html/dashboards/v-1.html
https://mdbootstrap.com/previews/templates/admin-dashboard/html/charts/charts.html
I posted about this roughly 2 months ago but it looks to have been overlooked.
It seems that EasyPieChart is not being included during compilation:
TypeError: $(...).easyPieChart is not a function
Jakub Strebeyko staff answered 7 years ago
Schermbecker answered 6 years ago
<mdb-simple-chart percent="85" barColor="ef1e25" trackColor="f2f2f2" scaleColor="303030" scaleLength="1" lineCap="round" lineWidth="5"
trackWidth="10" size="110" rotate="0" [animate]="{duration: 1000, enabled: true}"> </mdb-simple-chart>
taken from mdb website. nothing except '85 %' is displayed on screen :-(
Console says:
SimpleChartComponent.html:1 ERROR ReferenceError: EasyPieChart is not defined
at EasyPieChartComponent.ngOnInit (ng-uikit-pro-standard.es5.js:4948)
are you going to fix that or do I have to take regular pie chart instead?
Jakub Strebeyko staff commented 6 years ago
Hi there Schermbecker, Few questions: do you mean the admin template from freddiehaddad's original message? The minimal charts look good in this nifty admin template, while the console stays crystal-clear on my end. Did you try to clear your cache lately? Or perhaps you mean something different? What makes me think that is that the original poster's message concerns jQuery Admin Dashboard, while the snippet you provide is from MDB Angular. TL;DR: What exactly is broken and where? In general, if your problem regards something different than the original post, consider creating a separate support request on a board of appropriate technology. With Best Regards, KubaSchermbecker commented 6 years ago
Jakub, sorry, I guess my post could contain more info ;-) We bought the pro version of mdb lib for angular. I tried to use minimal charts in a project and copied the appropriate code snippet from your website to test the look. The only thing I saw on screen was the percentage string - but no chart around. So my problem is actually the same as described in this thread. Event the errormessage in dev console is the same here. I do not use any admin-dashboard template, but I guess the charts should work even without it. Sorry for confusing! Can you help?Damian Gemza staff commented 6 years ago
Dear Schermbecker, I'm Damian from Angular Team. Could you please specify if you're using ng-uikit-pro-standard library (installed as dependency into your application), or ng-uikit-pro-standard-compile (package with build tools)? Please let me know. Best Regards, DamianSchermbecker commented 6 years ago
Hi Damian, we use ng-uikit-pro-standard library, installed as dependency. Hope that helps. Kind Regards, ThorstenDamian Gemza staff commented 6 years ago
For me, it's working fine. Could you please send me your project or at least reproduction repository at d.gemza@mdbootstrap.com? It would help me to debug your problem.Schermbecker commented 6 years ago
With kind assistance of MDB Support staff my problem is solved. I missed to install easy-pie-Chart package, which is needed for minimal Charts. Thank you guys!FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: Yes
- Provided link: No