Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!

Jack990 priority 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 priority 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.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 5.0.0
  • Device: mac
  • Browser: chrome
  • OS: macos
  • Provided sample code: No
  • Provided link: No