[Bps-public-commit] r11464 - RT-Extension-Reports/html/Reports/Elements

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Apr 3 21:50:21 EDT 2008


Author: sunnavy
Date: Thu Apr  3 21:50:21 2008
New Revision: 11464

Modified:
   RT-Extension-Reports/html/Reports/Elements/ShowResults

Log:
set title in img

Modified: RT-Extension-Reports/html/Reports/Elements/ShowResults
==============================================================================
--- RT-Extension-Reports/html/Reports/Elements/ShowResults	(original)
+++ RT-Extension-Reports/html/Reports/Elements/ShowResults	Thu Apr  3 21:50:21 2008
@@ -106,9 +106,9 @@
 
             my $wc = WebChart->new( width => 800, height => 600, img_dir =>
 $RT::MasonComponentRoot . '/NoAuth/images/wc', web_img_dir => '/NoAuth/images/wc' );
-            my ( $seg, $file ) = $wc->render( data => \@data, type => 'bars',
-options => { legend_labels => [@$Headers[2 .. @$Headers -1]] } );
-            $html .= "<div>$_:</div><div>$seg</div>";
+            my $seg = $wc->render( data => \@data, type => 'bars',
+options => { legend_labels => [@$Headers[2 .. @$Headers -1]], title => $_ } );
+            $html .= $seg;
         }
         $m->out( $html );
         $m->abort;



More information about the Bps-public-commit mailing list