/[dolibarr]/dolibarr/htdocs/telephonie/stats/graph/bar.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/telephonie/stats/graph/bar.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by rodolphe, Wed Aug 24 08:55:11 2005 UTC revision 1.7 by rodolphe, Thu Oct 20 19:24:47 2005 UTC
# Line 56  class GraphBar extends DolibarrGraph { Line 56  class GraphBar extends DolibarrGraph {
56    
57          $graph->SetFrame($this->showframe);          $graph->SetFrame($this->showframe);
58            
59          $graph->img->SetMargin(40,20,20,35);          $graph->img->SetMargin(50,20,20,35);
60            
61          if ($this->type == 'LinePlot')          if ($this->type == 'LinePlot')
62            {            {
# Line 70  class GraphBar extends DolibarrGraph { Line 70  class GraphBar extends DolibarrGraph {
70          $b2plot->SetFillColor($this->barcolor);          $b2plot->SetFillColor($this->barcolor);
71            
72          $graph->xaxis->scale->SetGrace(20);          $graph->xaxis->scale->SetGrace(20);
73            /*
74          $LabelAngle = 0;          $LabelAngle = 0;
75    
76          if ($this->LabelAngle <> $LabelAngle && strlen($this->LabelAngle) > 0)          if ($this->LabelAngle <> $LabelAngle && strlen($this->LabelAngle) > 0)
# Line 81  class GraphBar extends DolibarrGraph { Line 81  class GraphBar extends DolibarrGraph {
81              $graph->xaxis->SetLabelAngle($LabelAngle);              $graph->xaxis->SetLabelAngle($LabelAngle);
82              $graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,7);              $graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,7);
83            }            }
84                  */
85          $graph->title->Set($this->titre);          $graph->title->Set($this->titre);
86            
87          //$graph->title->SetFont(FF_VERDANA,FS_NORMAL);          //$graph->title->SetFont(FF_VERDANA,FS_NORMAL);
# Line 112  class GraphBar extends DolibarrGraph { Line 112  class GraphBar extends DolibarrGraph {
112          // Draw a text box in the middle          // Draw a text box in the middle
113          $txt = "Données manquantes !";          $txt = "Données manquantes !";
114          $t = new Text($txt,ceil($width / 2),ceil($height/2));          $t = new Text($txt,ceil($width / 2),ceil($height/2));
115          $t->SetFont(FF_VERDANA, FS_BOLD, 10);          //$t->SetFont(FF_VERDANA, FS_BOLD, 10);
116                    
117          // How should the text box interpret the coordinates?          // How should the text box interpret the coordinates?
118          $t->Align('center','top');          $t->Align('center','top');

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26