<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -357,6 +357,19 @@
           &lt;td&gt;&lt;img src=&quot;http://chart.apis.google.com/chart?chl=head&amp;amp;chs=300x200&amp;amp;cht=gom&amp;amp;chds=0,10&amp;amp;chd=t:5.0&quot; width=&quot;300&quot; height=&quot;200&quot; /&gt;&lt;/td&gt;
         &lt;/tr&gt;
       
+        &lt;tr&gt;
+          &lt;th colspan=&quot;2&quot;&gt;Map chart&lt;/th&gt;
+        &lt;tr&gt;
+          &lt;td&gt;&lt;pre&gt;{% chart %}
+    {% chart-size &amp;quot;440x220&amp;quot; %}
+    {% chart-type &amp;quot;map&amp;quot; %}
+    {% chart-map-area &amp;quot;usa&amp;quot; %}
+    {% chart-map-data mapdata %}
+    {% chart-colors &amp;quot;fffffff&amp;quot; &amp;quot;ff0000&amp;quot; &amp;quot;0000ff&amp;quot; %}
+{% endchart %}&lt;/pre&gt;&lt;/td&gt;
+          &lt;td&gt;&lt;img src=&quot;http://chart.apis.google.com/chart?chs=440x220&amp;amp;cht=t&amp;amp;chtm=usa&amp;amp;chld=KSCAMN&amp;amp;chco=fffffff,ff0000,0000ff&amp;amp;chd=e:AA..gA&quot; width=&quot;440&quot; height=&quot;220&quot; /&gt;&lt;/td&gt;
+        &lt;/tr&gt;
+      
     &lt;/tbody&gt;
   &lt;/table&gt;
 &lt;/body&gt;</diff>
      <filename>docs/examples.html</filename>
    </modified>
    <modified>
      <diff>@@ -337,4 +337,17 @@ Google-o-meter chart, with data scaling
       {% chart-data-scale &quot;0,10&quot; %}
       {% chart-data &quot;5&quot; %}
     {% endchart %}
+    
+Map chart
+---------
+
+::
+
+    {% chart %}
+        {% chart-size &quot;440x220&quot; %}
+        {% chart-type &quot;map&quot; %}
+        {% chart-map-area &quot;usa&quot; %}
+        {% chart-map-data mapdata %}
+        {% chart-colors &quot;fffffff&quot; &quot;ff0000&quot; &quot;0000ff&quot; %}
+    {% endchart %}
 </diff>
      <filename>docs/examples.txt</filename>
    </modified>
    <modified>
      <diff>@@ -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, &quot;MN&quot;: 50},
     }
     examples = []
     source = Path(__file__).parent.child(&quot;examples.txt&quot;).read_file()</diff>
      <filename>docs/render-examples.py</filename>
    </modified>
    <modified>
      <diff>@@ -100,6 +100,9 @@ class Chart(object):
         return s
 
     def url(self):
+        if self.options.get('cht', None) == 't':
+            self.datasets.append(self.options.pop(&quot;_mapdata&quot;))
+
         # Figure out the chart's data range
         if not self.datarange:
             maxvalue = max(max(d) for d in self.datasets if d)
@@ -266,6 +269,7 @@ def chart_type(arg):
         * 'pie-3d'
         * 'venn'
         * 'scatter'
+        * 'map'
         
     &quot;&quot;&quot;
     types = {
@@ -283,6 +287,7 @@ def chart_type(arg):
         'venn':             'v',
         'scatter':          's',
         'google-o-meter':   'gom',
+        'map':              't',
     }
     return {&quot;cht&quot;: types.get(arg, arg)}
 
@@ -415,6 +420,22 @@ def chart_markers(dataset_index, iterable):
     
     return {&quot;chm&quot;: smart_join(&quot;|&quot;, markers)}
 
+@option(&quot;chart-map-area&quot;)
+def chart_map_area(where):
+    return {'chtm': where}
+    
+@option(&quot;chart-map-data&quot;)
+def chart_map_data(data):
+    place_list = []
+    value_list = []
+    for (k, v) in data.items():
+        place_list.append(k)
+        value_list.append(v)
+    return {
+        &quot;chld&quot;: smart_join(&quot;&quot;, *place_list),
+        &quot;_mapdata&quot;: value_list
+    }
+        
 #
 # {% axis %}
 #</diff>
      <filename>templatetags/charts.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f5310391610aa229c8bb583fe36f30703a558c47</id>
    </parent>
  </parents>
  <author>
    <name>Jacob Kaplan-Moss</name>
    <email>jacob@jacobian.org</email>
  </author>
  <url>http://github.com/jacobian/django-googlecharts/commit/9c0002f0d42e8334e32adab0386b6bbf814461b6</url>
  <id>9c0002f0d42e8334e32adab0386b6bbf814461b6</id>
  <committed-date>2008-10-21T10:00:08-07:00</committed-date>
  <authored-date>2008-10-21T10:00:08-07:00</authored-date>
  <message>Added support for map type.</message>
  <tree>09be56e8792a755554bad0efba95ce4a59bea798</tree>
  <committer>
    <name>Jacob Kaplan-Moss</name>
    <email>jacob@jacobian.org</email>
  </committer>
</commit>
