4

am trying to add a highchart to my existing website, i have tested this on a new website and it has worked, however when i add this to my own existing one it gives me some errors:

the code is from the highchart.

my code error in bold:

   $(function() {

       $('#container').highcharts({
  *

Uncaught TypeError: Object [object Object] has no method 'highcharts'

               chart: {
               type: 'column'
           },
           title: {
               text: 'Chart'
           },
           xAxis: {
           categories: ['Apples', 'Bananas']

           },
           yAxis: {
               title: {
                   text: 'KWH'
               }
           },

           series: [{

               name: 'June',
               color: '#92D050',
               data: [1, 0]
           },

             {
                 type: 'line',
                 color: '#FF0000',
                 name: 'May',
                 data: [0, 4]
}]           });

   });

also when i debug it says this on the console

> Uncaught TypeError: Object [object Object] has no method 'highcharts'
> Dashboard.aspx:393 Uncaught TypeError: Object [object Object] has no
> method 'draggable'

i have copied the code from the highchart like i did with the previous ones i made, however one thing i have notice for this site i have master page, so maybe it might be something there...

4

1 回答 1

2

似乎您缺少一些依赖项。确保您引用了所有必需的库。

于 2013-06-27T09:42:23.303 回答