This is a migrated thread and some comments may be shown as answers.
DataViz bar chart not loading from a local server but the same code working from the file:// protocol
2 Answers 117 Views
This is a migrated thread and some comments may be shown as answers.
Kishan
Top achievements
Rank 1
Kishan asked on 02 Mar 2012, 12:51 PM
I am doing a little project which involves me saving data into an array from user inputs which i wish to display using a bar chart. However when i run the code from aptana studio local server, i get no chart, but if i open it using the file:// protocol, it works how it should. Not sure what is going on. I'm still learning web development so i'm not really sure what has gone wrong.

The console error i am recieving when running from a local server is:
$("#chart").kendoChart is not a function
field: "year"

2 Answers, 1 is accepted

Sort by
0
TDG
Top achievements
Rank 1
answered on 03 Nov 2012, 02:21 PM
I got same error. It was working fine but all the certain, it is not working anymore.
My code includes

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>


<!-- CDN-based script reference for Kendo UI DataViz; utilizing a local reference if offline -->
<script>    window.jQuery || document.write('<script src="js/jquery.min.js"><\/script>')</script>
<script src="http://cdn.kendostatic.com/2012.2.710/js/kendo.dataviz.min.js"></script>

I don't understand why it stop working and complaint about
TypeError: $("#" + chartid).kendoChart is not a function

any idea?
0
Alexander Valchev
Telerik team
answered on 07 Nov 2012, 01:52 PM
Hello guys,

@TDG
I believe that the problem is caused by the multiple jQuery libraries that are loaded on the page. To fix the issue please make sure jQuery is not included more than once in your page. Remove any duplicate script references to jQuery.

You can find more information in the troubleshooting help topic.

Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Asked by
Kishan
Top achievements
Rank 1
Answers by
TDG
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or