Comments (3)
@someidiot I will have to look a bit more into the code to verify whether or not this is possible but the straight out answer is no. chartit is very tightly coupled to QuerySet and it's API. It does use said API for validation and field lookups. This is making it very hard to add functionality that doesn't conform to QuerySet. Right now I'm thinking about refactoring quite a few pieces of the code to allow for more flexibility but haven't had the time to do so in the last month.
Let me get back to you on the RawQuerySet support in a week or so, it may turn out less trickier than I think.
from django-chartit.
Thanks. It's no biggie, just trying to avoid having two different charting methods in my code, it would be nice to use this for everything.
from django-chartit.
@someidiot I have good news for you. I've managed to get a working support for RawQuerySet for Chart
type of charts. Haven't looked into PivotChart
yet, bout should be similar. The main change was that I needed to get rid of QuerySet.values() internally and make use of objects instead of dictionaries. However this is something I've been wanting to do for a while now.
Can you checkout my fork + topic branch, give it a try and let me know how that works for you? Also see the demoproject/ for some usage examples. I'm planning to release to PyPI very soon if this works for you.
from django-chartit.
Related Issues (20)
- 'Options' object has no attribute 'get_all_field_names' HOT 1
- '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
- Uncaught ReferenceError: $ is not defined at chartloader.js:3 HOT 6
- 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.