Topic: chart.js
Jack990 free asked 2 years ago
Hello
I found that some chart.js things I need are missing from MDB (bootstap) , like time series support which I need.
It is easy enough to just add the chart.js files (Chart.min.js and then chartjs-adapter-date-fns.bundle.min.js for time series) and and use that instead of the MDB version.
So my question is: Could I expect that to cause problems down the road by using the chart.js directly instead of the mdb variant?
best, j
Kamila Pieńkowska staff answered 2 years ago
We cannot assure you that this application will function properly. Can you prepare a snippet to show what doesn't work with MDB package alone?
Jack990 free commented 2 years ago
Your college said 2 weeks ago in https://mdbootstrap.com/support/angular/how-to-add-chartjs-adapters-to-charts/ that mdbootstrap does not support adaptors
For time series support one needs an adaptor like
cdn.jsdelivr.net/npm/chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.bundle.min.js
and in the plot js, under options, scales, time: { unit: 'year',},
I can use chartjs directly by loading its js, and then load that adaptor js, so am asking if that causes any problems with mdbootstrap.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 5.0.0
- Device: mac
- Browser: chrome
- OS: macos
- Provided sample code: No
- Provided link: No