Skip to content
This repository has been archived by the owner on Nov 25, 2017. It is now read-only.

Commit

Permalink
Merge commit 'jacob/master'
Browse files Browse the repository at this point in the history
Conflicts:

	googlecharts/templatetags/charts.py
  • Loading branch information
Chris Drackett committed Jan 20, 2009
2 parents ecbe582 + 9bbb63d commit ed742f0
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 692 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
*.pyc
13 changes: 13 additions & 0 deletions docs/examples.html
Expand Up @@ -357,6 +357,19 @@ <h2>Chart tag examples</h2>
<td><img src="http://chart.apis.google.com/chart?chl=head&amp;chs=300x200&amp;cht=gom&amp;chds=0,10&amp;chd=t:5.0" width="300" height="200" /></td>
</tr>

<tr>
<th colspan="2">Map chart</th>
<tr>
<td><pre>{% chart %}
{% chart-size &quot;440x220&quot; %}
{% chart-type &quot;map&quot; %}
{% chart-map-area &quot;usa&quot; %}
{% chart-map-data mapdata %}
{% chart-colors &quot;ffffff&quot; &quot;ff0000&quot; &quot;0000ff&quot; %}
{% endchart %}</pre></td>
<td><img src="http://chart.apis.google.com/chart?chs=440x220&amp;cht=t&amp;chtm=usa&amp;chld=KSCAMN&amp;chco=ffffff,ff0000,0000ff&amp;chd=e:AA..gA" width="440" height="220" /></td>
</tr>

</tbody>
</table>
</body>
Expand Down
13 changes: 13 additions & 0 deletions docs/examples.txt
Expand Up @@ -337,4 +337,17 @@ Google-o-meter chart, with data scaling
{% chart-data-scale "0,10" %}
{% chart-data "5" %}
{% endchart %}

Map chart
---------

::

{% chart %}
{% chart-size "440x220" %}
{% chart-type "map" %}
{% chart-map-area "usa" %}
{% chart-map-data mapdata %}
{% chart-colors "ffffff" "ff0000" "0000ff" %}
{% endchart %}

1 change: 1 addition & 0 deletions docs/render-examples.py
Expand Up @@ -19,6 +19,7 @@ def render_examples():
'data3' : [i**2 for i in range(20, 0, -1)],
'data4' : [sin(i/5.0)*5 for i in range(100)],
'venn' : [100, 80, 60, 30, 30, 30, 10],
'mapdata': {'KS': 0, 'CA': 100, "MN": 50},
}
examples = []
source = Path(__file__).parent.child("examples.txt").read_file()
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit ed742f0

Please sign in to comment.