You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 11, 2024. It is now read-only.
In a Symfony 4.2 application using webpack, attempts to include highcharts resulted in a javascript error Highcharts not defined where the page source reads var linechart = new Highcharts.Chart({.
My eventual solution looked like this:
install highcharts with yarn add highcharts
copy .../node_modules/highcharts/highcharts.js to .../assets/js/
In a Symfony 4.2 application using webpack, attempts to include highcharts resulted in a javascript error
Highcharts not definedwhere the page source readsvar linechart = new Highcharts.Chart({.My eventual solution looked like this:
install highcharts with
yarn add highchartscopy
.../node_modules/highcharts/highcharts.jsto.../assets/js/create
.../assets/js/shim.jscontainingadd to
.../webpack.config.jsand the template includes:
While this worked for my simple column chart requirement I suspect that a more robust solution is required for complex applications of highcharts.