This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Added a pie orientation function

  • Loading branch information...
1 parent 7e2c17a commit 902729d61ed0c479a0d9278747117e4e3c7b8235 Ben Welsh committed Oct 21, 2009
Showing with 5 additions and 2 deletions.
  1. +0 −1 .gitignore
  2. +5 −1 googlecharts/templatetags/charts.py
View
@@ -1 +0,0 @@
-*.pyc
@@ -411,7 +411,11 @@ def chart_title(title, fontsize=None, color="000000"):
@option("chart-legend", multi="|")
def chart_legend(*labels):
return {"chdl": smart_join("|", *flatten(labels))}
-
+
+@option("chart-pie-orientation")
+def chart_pie_orientation(radians):
+ return {"chp": radians}
+
@option("chart-labels", multi="|")
def chart_labels(*labels):
return {"chl": smart_join("|", *flatten(labels))}

0 comments on commit 902729d

Please sign in to comment.