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

Added a custom pie orientation example

  • Loading branch information...
Ben Welsh
Ben Welsh committed Oct 21, 2009
1 parent 902729d commit 7bebea1114c6cdacc41acef497ab8e1e322b38d1
Showing with 24 additions and 6 deletions.
  1. +12 −6 docs/examples.html
  2. +12 −0 docs/examples.txt
View
@@ -1,9 +1,3 @@
-[<django.template.FilterExpression object at 0x118e9f0>]
-grid_lines_data
-[(6, 5), (6, 10), (6, 15)]
-(6, 5)
-(6, 10)
-(6, 15)
<!DOCTYPE html>
<html>
<head>
@@ -366,6 +360,18 @@ <h2>Chart tag examples</h2>
<td><img src="http://chart.apis.google.com/chart?chs=300x200&amp;cht=p&amp;chts=cc0000,18&amp;chtt=Pie%21&amp;chd=e:VVqq.." width="300" height="200" /></td>
</tr>
+ <tr>
+ <th colspan="2">Custom pie orientation</th>
+ <tr>
+ <td><pre>{% chart %}
+ {% chart-data data1 %}
+ {% chart-size &quot;300x200&quot; %}
+ {% chart-type &quot;pie&quot; %}
+ {% chart-pie-orientation &quot;4.7&quot; %}
+{% endchart %}</pre></td>
+ <td><img src="http://chart.apis.google.com/chart?chs=300x200&amp;cht=p&amp;chp=4.7&amp;chd=e:VVqq.." width="300" height="200" /></td>
+ </tr>
+
<tr>
<th colspan="2">Google-o-meter chart, with data scaling</th>
<tr>
View
@@ -343,6 +343,18 @@ Custom title sizes, colors
{% chart-title "Pie!" 18 "cc0000" %}
{% endchart %}
+Custom pie orientation
+--------------------------
+
+::
+
+ {% chart %}
+ {% chart-data data1 %}
+ {% chart-size "300x200" %}
+ {% chart-type "pie" %}
+ {% chart-pie-orientation "4.7" %}
+ {% endchart %}
+
Google-o-meter chart, with data scaling
---------------------------------------

0 comments on commit 7bebea1

Please sign in to comment.