Author: ornicar2
Date: 2010-02-05 12:50:49 +0100 (Fri, 05 Feb 2010)
New Revision: 27589

Modified:
   plugins/diemPlugin/trunk/dmAdminPlugin/lib/chart/dmWeekChart.php
Log:
[Diem]
- fixed dmWeekChart visits metric

Modified: plugins/diemPlugin/trunk/dmAdminPlugin/lib/chart/dmWeekChart.php
===================================================================
--- plugins/diemPlugin/trunk/dmAdminPlugin/lib/chart/dmWeekChart.php    
2010-02-05 11:10:27 UTC (rev 27588)
+++ plugins/diemPlugin/trunk/dmAdminPlugin/lib/chart/dmWeekChart.php    
2010-02-05 11:50:49 UTC (rev 27589)
@@ -11,13 +11,13 @@
     
     $dataSet = new dmChartData;
     $dataSet->AddPoint($this->data['pageviews'], 'pageviews');
-    $dataSet->AddPoint($this->data['visitors'], 'visitors');
+    $dataSet->AddPoint($this->data['visits'], 'visits');
     $dataSet->AddPoint($this->data['bounces'], 'bounces');
 //    $dataSet->AddPoint($this->data['pagesPerVisitor'], 'pagesPerVisitor');
     $dataSet->AddPoint($this->data['date'], 'date');
     $dataSet->SetAbsciseLabelSerie("date");
     $dataSet->SetSerieName("Pages", "pageviews");
-    $dataSet->SetSerieName("Visitors", "visitors");
+    $dataSet->SetSerieName("Visitors", "visits");
     $dataSet->SetSerieName("Bounces", "bounces");
 //    $dataSet->SetSerieName("per Visitor", "pagesPerVisitor");
     
@@ -25,16 +25,16 @@
     $this->setGraphArea(40, 10, $this->getWidth()-40, $this->getHeight()-20);
     $this->drawGraphArea(255, 255, 255);
   
-    $dataSet->AddSerie("visitors"); 
+    $dataSet->AddSerie("visits");
     $dataSet->AddSerie("bounces"); 
-    $dataSet->SetYAxisName("visitors");
+    $dataSet->SetYAxisName("visits");
     $this->setLineStyle(1, 6);
     
$this->drawScale($dataSet->GetData(),$dataSet->GetDataDescription(),SCALE_START0,
 self::$colors['grey2'][0], self::$colors['grey2'][1], 
self::$colors['grey2'][2],TRUE,0,0, false, 1);
     $this->drawGrid(4,TRUE, self::$colors['grey1'][0], 
self::$colors['grey1'][1], self::$colors['grey1'][2]);
     $this->drawLineGraph($dataSet->GetData(),$dataSet->GetDataDescription());
     
$this->drawPlotGraph($dataSet->GetData(),$dataSet->GetDataDescription(),3,2,255,255,255);
     
-    
$this->drawArea($dataSet->GetData(),"visitors","bounces",self::$colors['blue'][0],
 self::$colors['blue'][1], self::$colors['blue'][2], 50);
+    
$this->drawArea($dataSet->GetData(),"visits","bounces",self::$colors['blue'][0],
 self::$colors['blue'][1], self::$colors['blue'][2], 50);
   
 //    $this->clearScale();
 //    $dataSet->removeAllSeries(); 
@@ -88,7 +88,7 @@
     {
       $report = $this->gapi->getReport(array(
         'dimensions'  => array('day', 'month', 'date'),
-        'metrics'     => array('pageviews', 'visitors', 'bounces'),
+        'metrics'     => array('pageviews', 'visits', 'bounces'),
         'sort_metric' => 'date',
         'start_date'  => date('Y-m-d',strtotime('10 days ago')),
         'end_date'  => date('Y-m-d',strtotime('1 day ago'))
@@ -97,9 +97,10 @@
       $data = $this->reportToData($report, array(
         'date',
         'pageviews',
-        'visitors',
+        'visits',
         'bounces'
       ));
+
       $this->setCache('data', $data);
     }
     

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to