I think I have to exactly like I'm doing with ChartJS ... generate the data in the backend and create the graphics in AlpineJS.
But this way no need to use Larapex-Charts, just use ApexCharts.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I already use ChartJS, it's just wonderful.
I just discovered Larapex-Charts and I'm trying to use it, it seems interesting.
http://larapex-charts.netlify.app/
I have followed exactly what is in the documentation and it works fine.
But ...
I'd like to use it without any CDN, but it's not so easy for me : I have installed the apexcharts library with npm and then I have added these lines in the app.js file.
import ApexCharts from 'apexcharts';
window.ApexCharts = ApexCharts;
But I get this error.
dashboard:353 Uncaught ReferenceError: ApexCharts is not defined
What do you suggest me ?
Thanks for your help.
V
Please or to participate in this conversation.