Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

26 - dojango-charting #26

Open
klipstein opened this issue Nov 6, 2011 · 0 comments
Open

26 - dojango-charting #26

klipstein opened this issue Nov 6, 2011 · 0 comments

Comments

@klipstein
Copy link
Owner

I've been working on getting charting support integrated into dojango. This
is an initial upload to get some feedback. It supports all the basic 2D
charts. The pie chart is a bit awkward still and needs a better
abstraction.  I also want to find a way to add support for the new django
aggregate functions(any good ideas on this are welcome). The views.py
currently uses the new multiline parser in ticket #24.

Plots, and series are required. Series can simply be "<name>": {}. All the
parameters simple take what the corresponding charting command would.
The stores parameter ties into the database in the same way the datagrid
does. Store names are expected to correspond to the name of a series.

Example:
{% load dojango_chart %}
{% chart %}
   id = "<chart_name>"
   pane_id = "<chart's content pane>"
   parent_id = "<pane_id's tab container>"
   root_id = "<parent_id's tab container>"
   contentClass = "<css class>"
   chartClass = "<css class>"
   legendClass = "<css class>"
   legend = {<legend options>}
   axes = {
      "x": {"minorTicks": 0},
      "y": {"minorTicks": 0, "vertical": 1, "min": 0}
   }
   plots = {
      "default": {"type": "StackedAreas"}
   }
   series = {
      "<name>": {"opts": {<options>}},
   }
   seriesOrder = []
   stores = {
      "<name>": {
         "app": "",
         "model": "",
         "fields": [],
         "axis": "x",
         "sort": "",
         "query": {}
      }
   }
{% endchart %}

Original link: http://code.google.com/p/dojango/issues/detail?id=26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant