ChartJs Version Migration
Hello, is it possible to migrate the version from 3.9.1 to the latest version that's in the bundled js?
Or should I just install it using npm install chart.js ?
Thank you.
Replies (3)
Hi,
We will provide ChartJs v4.2.1 update in the next Metronic v8.1.9 release in a few weeks. If you need to use the newest version of ChartJs now you can edit tools/package.json with "chart.js": "^4.2.1" and change tools/gulp.config.js as shown below:
chartjs: {
scripts: ["{$config.path.node_modules}/chart.js/dist/chart.umd.js"],
}, Then recompile your assets folder with Gulp or Webpack.
Please note that the build tools are required only in the development environment just to compile the assets when the source folder files are modified. In the hosting/server deployment, you will only need the compile assets, no need to install the build tools dependencies there.
Regards.
Great! You are the most welcome! If you need any further help please let us know.
Your Support Matters!
We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.