Iquery
Iquery

Reputation: 103

Cannot read property 'addEvent' of undefined

I am using the below scripts to create Charts in asp.net MVC but i am getting an error saying "Cannot read property 'addEvent' of undefined in Highcharts.js" "Cannot read property 'fireEvent' of undefined in exporting.js"

The scripts that are added are :

 <script src="http://code.highcharts.com/highcharts.js"></script>

 <script src="http://code.highcharts.com/modules/exporting.js"></script>

 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>   

Upvotes: 3

Views: 4378

Answers (1)

Andrei Nemes
Andrei Nemes

Reputation: 3122

I think the library you're using has a hard dependency on jQuery, try loading it first

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>

<script src="http://code.highcharts.com/highcharts.js"></script>

<script src="http://code.highcharts.com/modules/exporting.js"></script>

Upvotes: 1

Related Questions