highcharts - How to reference external javascript files from a SharePoint 2010 Content Editor Web Part -


i'm trying set basic highcharts example using sharepoint 2010 content editor web part, error message "object doesn't support property or method 'highcharts'". i'm using example content directly highcharts download. reason, script @ top of code not being loaded or i'm not able access it. i'm guessing has way sharepoint loads other scripts, i'm not sure.

<script src="https://teamone.com/sites/sandbox/mmg/christo/shared%20documents/hichartsapp/js/jquery-1.11.3.min.js"></script> <script src="https://teamone.com/sites/sandbox/mmg/christo/shared%20documents/hichartsapp/js/highcharts.src.js"></script>  <div id="charts_holder"> <h2>hicharts test page</h2> <p>this charts live</p> </div>   <div id="container" style="width:100%; height:400px;"></div>  <script type="text/javascript"> $(document).ready(function () {      $('#container').highcharts({       chart: {         type: 'bar'       },       title: {         text: 'fruit consumption'       },       xaxis: {         categories: ['apples', 'bananas', 'oranges']       },       yaxis: {         title: {             text: 'fruit eaten'         }       },       series: [{         name: 'jane',         data: [1, 0, 4]       }, {         name: 'john',         data: [5, 7, 3]       }]   }); });  </script> 

i haven't had luck sharepoint loading other js files content editor web part, i'm hoping have suggestion. in advance!


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -