Update ApexChart plugin
Hi,
We have used Metronic demo 2 for our project since 1/5 years ago. We need to update the ApexChart plugin but it does not have a separate folder and its code is inside the bundle file. How we can update it?
Thanks
Replies (2)
Hi, don't edit the bundle file directly — it will get overwritten on the next build. In Metronic, ApexCharts is managed through npm, so check the version in your package.json, then run npm install apexcharts@latest and rebuild your assets with gulp. That will regenerate the bundle with the new version. I ran into the same thing in Demo 2, and following this post helped me understand why editing the bundle doesn't work. If you're using the precompiled version without the build tools, you can manually replace apexcharts.min.js in assets/plugins/custom/apexcharts/ with the new file from the ApexCharts site, but do test one chart first as there can be breaking changes between versions.
Hi,
You should use the build tools and manage the dependencies defined in package.json and recompile the bundle using gulp/webpack. Can you refer to the documentation of your downloaded version?
Regards,
Sean