javascript - Using HighChart JS files locally -
i'm trying use highchats js files locally in code. when use official link below working
<script src="http://code.highcharts.com/highcharts.js"></script> <script src="http://code.highcharts.com/highcharts-more.js"></script> <script src="http://code.highcharts.com/modules/exporting.js"></script> <div id="container" style="height: 400px; min-width: 310px; max-width: 600px; margin: 0 auto"></div>
when tried same local imported file below not working
<script src="${pagecontext.servletcontext.contextpath}/resources/js/exporting.js"></script> <script src="${pagecontext.servletcontext.contextpath}/resources/js/highcharts-more.js"></script> <script src="${pagecontext.servletcontext.contextpath}/resources/js/highcharts.js"></script>
the below error i'm facing
is possible use locally or if keep files in server help.
i think order important when loading libraries. try this:
<script src="${pagecontext.servletcontext.contextpath}/resources/js/highcharts.js"></script> <script src="${pagecontext.servletcontext.contextpath}/resources/js/highcharts-more.js"></script> <script src="${pagecontext.servletcontext.contextpath}/resources/js/exporting.js"> </script>
Comments
Post a Comment