Coder Social home page Coder Social logo

Comments (6)

atodorov avatar atodorov commented on July 27, 2024

So that means jQuery isn't loaded I guess.

First tell me what version of jQuery are you using, also which version of Highcharts ? chartit has been reported to work with rather old versions and I have no idea which ones of the new ones work (atm there's no easy way to test version compatibility).

If you are using fairly new versions try with older ones, especially the ones listed at the bottom of README.

If you still get the same error even with the versions from README then you have to debug the page (or provide a reproducer which we can examine publicly) and see why is that. Especially try to get a backtrace from JavaScript so we can see which parts of the code are trying to access jQuery before it is loaded.

Of course post your findings and more info here.

from django-chartit.

mfgabriel92 avatar mfgabriel92 commented on July 27, 2024

jQuery is being loaded because Bootstrap would've complained it were missing. jQuery version is v.3.2.1 and Highcharts is v5.0.12.

I used the versions specified in the README but the errors persists.

I do not see much. It only points to the file located in /.../site-packages/chartit/static/chartit/js/chartloader.js, accusing $ not to be defined. I don't know very well what else I could try to debug the page as you suggested. All files being called are loaded normally, as I can see in "Network" tab.

from django-chartit.

atodorov avatar atodorov commented on July 27, 2024

Googling your error says that you should put the references to jquery scripts first:
https://stackoverflow.com/questions/2075337/uncaught-referenceerror-is-not-defined

is by any chance jQuery loaded after chartloader.js ?

from django-chartit.

mfgabriel92 avatar mfgabriel92 commented on July 27, 2024

from django-chartit.

atodorov avatar atodorov commented on July 27, 2024

I expect it to be, since It's being called before anything else. I cannot see anywhere else if it really is when I access the route.

which condition do you expect to be true? That jQuery is loaded after chartloader.js? (this leads to the error IMO). Check the resulting HTML code and tell me the order in which .js files are specified in the header.

from django-chartit.

atodorov avatar atodorov commented on July 27, 2024

Closing due to inactivity. If you still experience this problem please reopen and provide the requested information.

from django-chartit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.