DataViz bar chart not loading from a local server but the same code working from the file:// protocol

3 posts, 0 answers
  1. Kishan
    Kishan avatar
    2 posts
    Member since:
    Nov 2011

    Posted 02 Mar 2012 Link to this post

    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. TDG
    TDG avatar
    8 posts
    Member since:
    Nov 2010

    Posted 03 Nov 2012 Link to this post

    I got same error. It was working fine but all the certain, it is not working anymore.
    My code includes

    <script src=""></script>
    <script src=""></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=""></script>

    I don't understand why it stop working and complaint about
  3. Alexander Valchev
    Alexander Valchev avatar
    2892 posts

    Posted 07 Nov 2012 Link to this post

    Hello guys,

    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.

    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!
Back to Top