<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
 *.swo
 *.swp
 .DS_Store
+reuters.html</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -505,6 +505,11 @@ Ico.BaseGraph = Class.create(Ico.Base, {
 });
 
 Ico.LineGraph = Class.create(Ico.BaseGraph, {
+  normalise: function(value) {
+    var total = this.start_value == 0 ? this.top_value : this.top_value - this.start_value;
+    return ((value / total) * (this.graph_height));
+  },
+
   chartDefaults: function() {
     return { plot_padding: 10 };
   },</diff>
      <filename>ico.js</filename>
    </modified>
    <modified>
      <diff>@@ -81,12 +81,6 @@ p.example { color: #555; }
     &lt;p&gt;Negative values should always be above the axis (not fixed yet):&lt;/p&gt;
     &lt;div class=&quot;linegraph&quot; id=&quot;rics_poll2&quot;&gt;&lt;/div&gt;
 
-    &lt;p&gt;Origin should be 0 for sets with the same values like this:&lt;/p&gt;
-    &lt;div class=&quot;linegraph&quot; id=&quot;rre1&quot;&gt;&lt;/div&gt;
-
-    &lt;p&gt;This should zoom into the range correctly:&lt;/p&gt;
-    &lt;div class=&quot;linegraph&quot; id=&quot;rre2&quot;&gt;&lt;/div&gt;
-
     &lt;script type=&quot;text/javascript&quot;&gt;
 var sparkline = new Ico.SparkLine($('sparkline'), [21, 41, 32, 1, 10, 5, 32, 10, 23], { width: 30, height: 14, background_colour: '#ccc' });
 var sparkline_2 = new Ico.SparkBar($('sparkline_2'), [1, 5, 10, 15, 20, 15, 10, 15, 30, 15, 10], { width: 30, height: 14, background_colour: '#ccc' });
@@ -118,24 +112,6 @@ var rics_poll = new Ico.BarGraph($('rics_poll4'), [20, 19, 15, 10],  { font_size
 var rics_poll = new Ico.BarGraph($('rics_poll5'), [10.1, 10.2, 10.5, 11],  { font_size: 10, colour: '#ff0099' });
 var rics_poll2 = new Ico.BarGraph($('rics_poll2'), [20, -20, -30],  { font_size: 10, colour: '#ff0099', labels: ['label one', 'label two', 'label three'] });
 var rics_poll2 = new Ico.BarGraph($('rics_poll3'), [2000, 2000],  { font_size: 10, colour: '#ff0099', labels: ['label one', 'label two'] });
-
-var rre = new Ico.LineGraph($('rre1'), { &quot;Your Forecast&quot;: [10, 10, 10, 10, 10, 10], &quot;Market&quot;: [5, 5, 5, 5, 5, 5] },
-                               { colours: {&quot;Your Forecast&quot;: '#000099', &quot;Market&quot;: '#999999' },
-                                 font_size: 9,
-                                 plot_padding: 2,
-                                 marker_size: 3,
-                                 curve_amount: false,
-                                 markers: 'circle' });
-
-var rre2 = new Ico.LineGraph($('rre2'), { 'values': [100.3, 100.4, 101.3, 100.4, 101.2, 101.8, 102.0, 103.5, 103.7, 103.1, 104.1, 103.0, 102.6, 104.2, 104.1, 103.3, 103.9, 104.6, 103.4, 104.5, 103.5, 103.6, 104.6, 104.4, 104.5, 103.7, 103.8, 102.9, 102.5, 102.3, 101.8, 103.1, 102.0, 100.8, 100.4, 100.3, 100.7, 100.7, 101.3, 101.6, 102.6, 98.0, 100.1, 100.8, 100.7, 100.3, 100.1, 100.9, 99.2, 100.1, 99.8, 99.9, 99.8, 99.3, 100.1, 100.2, 99.5, 99.8, 99.7, 100.8, 100.7, 100.0, 101.2, 101.2, 100.7, 101.3, 102.0, 101.6, 101.4, 101.1, 101.4, 100.3, 100.2, 100.6, 99.8, 100.0, 101.1, 100.6, 100.8, 100.3, 100.2, 100.7, 99.6, 100.2, 100.4, 100.4, 100.5, 100.3, 99.6, 99.5, 99.1, 98.3, 99.0, 99.1, 99.6, 100.2, 100.6, 100.3, 101.2, 100.0, 100.5, 100.4, 100.6, 100.1, 100.7, 100.7, 101.2, 100.3, 100.6, 100.3, 100.1, 100.5, 100.2, 99.8, 100.3, 100.5, 101.1, 101.5, 101.5, 101.2, 101.1, 100.9, 100.8, 101.4, 101.2, 101.3, 101.2, 100.9, 101.0, 100.6, 100.6, 99.9, 99.8, 99.5, 98.8, 98.6] },
-                                   { colours: { 'values': '#000099' },
-                                     labels: [&quot;1999&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;2000&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;2001&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;2002&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;2003&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;2004&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;2005&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;2006&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;2007&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;2008&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;],
-                                     font_size: 9,
-                                     plot_padding: 2,
-                                     curve_amount: false,
-                                     grid: true,
-                                     grid_colour: '#eee',
-                                     markers: false });
     &lt;/script&gt;
   &lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>index.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4ebcc694fb6a7b899368e8e79147830a1b6935d7</id>
    </parent>
  </parents>
  <author>
    <name>Alex Young</name>
    <email>alex@helicoid.net</email>
  </author>
  <url>http://github.com/alexyoung/ico/commit/7670d8ec8d4fb1ca6ffc7a046df3ff9f1cc779f1</url>
  <id>7670d8ec8d4fb1ca6ffc7a046df3ff9f1cc779f1</id>
  <committed-date>2009-09-11T09:20:31-07:00</committed-date>
  <authored-date>2009-09-11T09:20:31-07:00</authored-date>
  <message>Added correction for linegraph normalisation where errors crept in for non-zero start values</message>
  <tree>0cf3397f81d6b368fc276f238e0fb0afec8b5918</tree>
  <committer>
    <name>Alex Young</name>
    <email>alex@helicoid.net</email>
  </committer>
</commit>
