Modif espace de dessin
This commit is contained in:
parent
3423a38639
commit
5240d3f4dd
@ -56,7 +56,7 @@ class GraphBar extends DolibarrGraph {
|
|||||||
|
|
||||||
$graph->SetFrame($this->showframe);
|
$graph->SetFrame($this->showframe);
|
||||||
|
|
||||||
$graph->img->SetMargin(40,20,20,35);
|
$graph->img->SetMargin(50,20,20,35);
|
||||||
|
|
||||||
if ($this->type == 'LinePlot')
|
if ($this->type == 'LinePlot')
|
||||||
{
|
{
|
||||||
@ -70,7 +70,7 @@ class GraphBar extends DolibarrGraph {
|
|||||||
$b2plot->SetFillColor($this->barcolor);
|
$b2plot->SetFillColor($this->barcolor);
|
||||||
|
|
||||||
$graph->xaxis->scale->SetGrace(20);
|
$graph->xaxis->scale->SetGrace(20);
|
||||||
|
/*
|
||||||
$LabelAngle = 0;
|
$LabelAngle = 0;
|
||||||
|
|
||||||
if ($this->LabelAngle <> $LabelAngle && strlen($this->LabelAngle) > 0)
|
if ($this->LabelAngle <> $LabelAngle && strlen($this->LabelAngle) > 0)
|
||||||
@ -81,7 +81,7 @@ class GraphBar extends DolibarrGraph {
|
|||||||
$graph->xaxis->SetLabelAngle($LabelAngle);
|
$graph->xaxis->SetLabelAngle($LabelAngle);
|
||||||
$graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,7);
|
$graph->xaxis->SetFont(FF_VERDANA,FS_NORMAL,7);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
$graph->title->Set($this->titre);
|
$graph->title->Set($this->titre);
|
||||||
|
|
||||||
//$graph->title->SetFont(FF_VERDANA,FS_NORMAL);
|
//$graph->title->SetFont(FF_VERDANA,FS_NORMAL);
|
||||||
@ -112,7 +112,7 @@ class GraphBar extends DolibarrGraph {
|
|||||||
// Draw a text box in the middle
|
// Draw a text box in the middle
|
||||||
$txt = "Données manquantes !";
|
$txt = "Données manquantes !";
|
||||||
$t = new Text($txt,ceil($width / 2),ceil($height/2));
|
$t = new Text($txt,ceil($width / 2),ceil($height/2));
|
||||||
$t->SetFont(FF_VERDANA, FS_BOLD, 10);
|
//$t->SetFont(FF_VERDANA, FS_BOLD, 10);
|
||||||
|
|
||||||
// How should the text box interpret the coordinates?
|
// How should the text box interpret the coordinates?
|
||||||
$t->Align('center','top');
|
$t->Align('center','top');
|
||||||
|
|||||||
@ -46,7 +46,7 @@ class GraphBrouzouf {
|
|||||||
$graph->yaxis->scale->SetGrace(20);
|
$graph->yaxis->scale->SetGrace(20);
|
||||||
|
|
||||||
|
|
||||||
$graph->img->SetMargin(60,20,20,40);
|
$graph->img->SetMargin(50,20,20,40);
|
||||||
|
|
||||||
if ($this->type == 'LinePlot')
|
if ($this->type == 'LinePlot')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user