Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

vincent15000's avatar

Larapex-Charts

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

0 likes
2 replies
vincent15000's avatar

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.

vincent15000's avatar

I have abandonned larapex-charts, chartjs is better and it's not a google package.

Please or to participate in this conversation.