Comments (6)
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.
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.
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.
from django-chartit.
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.
Closing due to inactivity. If you still experience this problem please reopen and provide the requested information.
from django-chartit.
Related Issues (20)
- 'Options' object has no attribute 'get_all_field_names' HOT 1
- Support for RawQuerySet HOT 3
- 'Graph' object has no attribute 'META' HOT 2
- Change series label on line charts HOT 2
- setting legend order HOT 2
- How to do drilldowns? HOT 2
- Generate Charts from Views? HOT 4
- chartit.shutupandship.com HOT 2
- Publish demo site automatically from Travis CI
- time series data HOT 1
- Line chart is not rendering a graph. It's showing {% load chartit %} in browser. HOT 1
- 'NoneType' object is not subscriptable HOT 8
- highcharts formatter
- __proxy__ found error if translated field supplied as "legend_by"
- can this be used by Jinja2 engine? how
- Themes
- column chart data is being sorted by y-axis values HOT 1
- can't import six HOT 1
- django.utils.six
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-chartit.