Comments (6)
I got this error too. You have to fix the view and the template. You can reference the piechart example to see how this is done.
In the view, you need to add extra data like in the piechart.
data = {
'charttype': charttype,
'chartdata': chartdata,
'extra': {'x_is_date': True,
'x_axis_format': "%d %b %Y %H"},
}
Then you fix the template to make it look like the piechart example.
Change
{% load_chart charttype chartdata "linechart_container" True "%d %b %Y %H" %}
to
{% load_chart charttype chartdata "linechart_container" extra %}
Now extra is iterated over, passing in x_is_date and x_axis_format.
from django-nvd3.
@samesense Thanks for the comment. I got that error resolved.
However, I have a different error now :(
I tried copying the files to "mysite\polls\static" folder... but, even that didn't work.
PS: I have copied all STATIC related variables from settings.py from the example
Pls help...
from django-nvd3.
@prasadmc I had this issue too. In settings.py, you need to add bower apps for d3 and nv.d3. Then run manage.py collectstatic to populate static w/ d3 and nv.d3 files. My bower app section of settings looks like this:
BOWER_INSTALLED_APPS = (
'jquery#1.9',
'underscore',
'd3#3.3.6',
'nvd3#1.1.12-beta',
)
from django-nvd3.
I am using python 2.7, django 1.9, installed django-nvd3 using "pip install django-nvd3" and followed all the instructions and i am still getting this error.
please help....
from django-nvd3.
I have the same problem here. StackedAreaChart however seems to work fine.
from django-nvd3.
how you solved this guys?
from django-nvd3.
Related Issues (20)
- Documentation is not helpful HOT 3
- Example Error: argument of type 'bool' is not iterable
- Update python-slugify [required: ==1.1.4]
- The chart can't show with error "Uncaught TypeError: a.dispatch.render_start is not a function" HOT 1
- Impossible add more than one tooltip for char
- Multibarchart x axis with text labels does shows NaN% in chart , but gets label correct in tooltip HOT 2
- Separate x for series
- data:87 Uncaught TypeError: chart.tooltipContent is not a function HOT 3
- Doesn't work demo project
- long xAxis Label
- Data from database HOT 2
- Rotate x-axis labels HOT 1
- GET /static/nvd3/build/nv.d3.min.css HTTP/1.1" 404 HOT 1
- Custom Tooltip
- Is that possible for add hyperlink to Chart?
- Getting the error "a.dispatch.render_start is not a function" HOT 4
- NaN% values displayed at x-axis of Multibar chart
- Vertical guideline? HOT 1
- pip install error HOT 3
- NVD3 not displaying the graph HOT 1
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-nvd3.