<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -27,7 +27,7 @@ module ActiveOLAP::Helpers
       end
     
       case options[:for]
-      when :line_chart; end_time 
+      when :line_chart; begin_time 
       else; &quot;#{begin_time} - #{end_time}&quot;
       end
     end</diff>
      <filename>lib/active_olap/helpers/display_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -11,19 +11,19 @@ module ActiveOLAP::Helpers
       raise &quot;Only suitable for 2D cubes&quot; unless cube.depth == 2
       raise &quot;Only 1 aggregate supported&quot; if cube.aggregates.length &gt; 1
     
-      content_tag(:table, html_options.merge(:class =&gt; &quot;active-olap table 2d&quot;)) do    
+      html = content_tag(:table, html_options.merge(:class =&gt; &quot;active-olap table 2d&quot;)) do    
         content_tag(:thead) do
-          content_tag(:tr) do
+          content_tag(:tr, :class =&gt; 'category') do
             content_tag(:th, '&amp;nbsp;') + &quot;\n\t&quot; +
             cube.dimensions[1].categories.map do |category|
-              content_tag(:th, show_active_olap_category(category, :for =&gt; :matrix), :class =&gt; 'category', :id =&gt; &quot;category-#{category.label}&quot;)
+              content_tag(:th, show_active_olap_category(category, :for =&gt; :matrix), :class =&gt; 'column', :id =&gt; &quot;category-#{category.label}&quot;)
             end.join
           end
         end &lt;&lt; &quot;\n&quot; &lt;&lt;
         content_tag(:tbody) do
           cube.map do |category, sub_cube|
-            content_tag(:tr, :class =&gt; 'category', :id =&gt; &quot;category-#{category.label}&quot;) do
-              &quot;\t\n&quot; + content_tag(:th, show_active_olap_category(category, :for =&gt; :matrix)) + 
+            content_tag(:tr) do
+              &quot;\t\n&quot; + content_tag(:th, show_active_olap_category(category, :class =&gt; 'category row', :id =&gt; &quot;category-#{category.label}&quot;, :for =&gt; :matrix)) + 
               sub_cube.map do |category, value|
                 content_tag(:td, show_active_olap_value(category, cube.aggregates.first, value, :for =&gt; :matrix), :class =&gt; 'value')
               end.join
@@ -31,6 +31,16 @@ module ActiveOLAP::Helpers
           end
         end
       end
+      
+      if options[:totals]
+        html &lt;&lt; content_tag(:tr, :class =&gt; 'totals') do
+          &quot;\t\n&quot; + content_tag(:th, '&amp;nbsp;') + 
+          cube.map do |sub_cube, value|
+            content_tag(:td, show_active_olap_value(sub_cube.category, cube.aggregates.first, cube.sum, :for =&gt; :matrix), :class =&gt; 'value')
+          end.join
+        end
+        
+      end
     end
 
     def active_olap_table(cube, options = {}, html_options = {})</diff>
      <filename>lib/active_olap/helpers/table_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3146c8ae87a3a9adf84a52947ef3cb35a3f345aa</id>
    </parent>
  </parents>
  <author>
    <name>Willem van Bergen</name>
    <email>willem@vanbergen.org</email>
  </author>
  <url>http://github.com/wvanbergen/active_olap/commit/875a8113379dfad9006043e19d020cd317f02071</url>
  <id>875a8113379dfad9006043e19d020cd317f02071</id>
  <committed-date>2008-12-23T08:26:36-08:00</committed-date>
  <authored-date>2008-12-23T08:26:36-08:00</authored-date>
  <message>Tweaking some helpers</message>
  <tree>6187334e571641e67a6402173ac8a46c091ecb70</tree>
  <committer>
    <name>Willem van Bergen</name>
    <email>willem@vanbergen.org</email>
  </committer>
</commit>
