score:1

it doesn't work like that, you don't embed php in a javascript, it is the other way round, you embed js in a php file.

php runs in the server and it is served to the client as html (+js +css), you should include your min.js in the php file wherever you want to render it the same way you are including chart.min.js


Related Query

More Query from same tag