Comments (3)
Show me the code that this error resulted
from django-graphos.
Well, I'm not thecristen, but I too am having a bad time getting this to work. Here's the code:
from django.http import HttpResponse
...
from django.template import RequestContext, loader
from django import forms
from graphos.sources.simple import SimpleDataSource
from graphos.renderers import gchart
...
def do_graph(request):
# get data
data = [
['Year', 'Sales', 'Expenses'],
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]
chart = gchart.LineChart(SimpleDataSource(data=data), html_id="Line Chart")
context = RequestContext( request, {'chart':chart.as_html(),'data':data})
template = loader.get_template('s3_numbers/do_graph.html')
return HttpResponse(template.render(context))
my template is basically '{{chart}}' (I also dump the data so that I know the template is actually getting used).
The output? A blank page (with the data dumped below some white space).
Oh, while I'm here I should mention that the tutorial is misleading (or at least, I certainly was unable to copy and paste it - I had to go look at the test code to figure the above out). The tutorial says you can use 'LineChart(...)', which of course doesn't work unless you do something more than the tutorial gives.
from django-graphos.
@thecristen @rustycar54 We have updated README.md with proper documentation. Your issue should be resolved after following the readme file
from django-graphos.
Related Issues (20)
- Morris Donut not supporting colors option?
- Demo page gives 500 error
- Dygraphs support
- Chart does not load when table update instead of page refresh
- Related WebPage may have Typo
- highchart tooltip useHTML does not work
- Issue with GoogleCharts and counting unique values HOT 1
- Setting Chart size to width of page? HOT 1
- Display chart inside javascript
- Add ability to pass links in gcharts
- C3.js renderer lacks support for area charts and stacking
- Demo page yields "404" error HOT 4
- maximum recursion depth exceeded on LineChart
- Issue on annotation?
- Docs and demo are down HOT 2
- This doesn't appear to work anymore with Google HOT 2
- Is this project still maintained?? HOT 1
- This project needs a maintainer.
- Bug in documentation HOT 1
- Documentation Error 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-graphos.