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

enter image description here

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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -