Changeset 1551


Ignore:
Timestamp:
Oct 3, 2010, 10:54:06 AM (10 years ago)
Author:
roux
Message:

correction légende plots groupes seances/sections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/plot/templates/_groupes.php

    r1463 r1551  
    3737$xsize = 390;
    3838if ($plot == 'total') {
    39   $xtitre = 80; $ysize = 300; $ylegend = 145; $x0 = 140; $y0 = 112;
     39  $xtitre = 80; $ysize = 360; $ylegend = 145; $x0 = 140; $y0 = 112;
    4040  $duree = "l'année passée";
    4141  $shortduree = 'annee';
     
    4343  $titre = 'du travail parlementaire';
    4444} else {
    45   $xtitre = 25; $ysize = 190; $ylegend = 50; $x0 = 155; $y0 = 85;
     45  $xtitre = 25; $ysize = 190; $ylegend = 60; $x0 = 155; $y0 = 85;
    4646  $filename .= '-'.$plot.'.png';
    4747  $titre = 'par groupe du travail de cette séance';
    4848  if (preg_match('/section/', $plot)) {
    4949    $xtitre = 28; $xtitre = 38;
    50     $titre = 'par groupe du travail sur le dossier';
     50    $titre = 'par groupe du travail sur ce dossier';
    5151  } else if (preg_match('/com/', $plot)) {
    5252    if (array_sum($interventions) == 0) {
     
    6060}
    6161$Test = new xsPChart($xsize,$ysize);
    62 if ($plot != 'total') { $Test->drawFilledRoundedRectangle(7,7,$xsize-7,$ysize-7,5,240,240,240); }
    63 if ($plot != 'total') { $Test->drawRoundedRectangle(5,5,$xsize-5,$ysize-5,5,230,230,230); }
     62$Test->drawFilledRoundedRectangle(7,7,$xsize-7,$ysize-7,5,240,240,240);
     63$Test->drawRoundedRectangle(5,5,$xsize-5,$ysize-5,5,230,230,230);
    6464$Test->setColorPalette(0,200,200,200);
    6565$Test->setColorPalette(1,30,30,200);
     
    8686$Test->setColorPalette(4,255,50,190);
    8787$Test->setColorPalette(5,255,30,30);
     88$Test->drawFilledRoundedRectangle(15,$ylegend-14,72,$ylegend+5,5,255,255,255);
    8889$Test->drawLegend(15,$ylegend,$DataDescrLegend,255,255,255);
    8990$Test->xsSetFontProperties("tahoma.ttf",10);
    90 $Test->drawTitle(20,$ylegend+13,'Groupes',0,0,0);
     91$Test->drawTitle(20,$ylegend,'Groupes',0,0,0);
    9192
    9293$Test->xsSetFontProperties("tahoma.ttf",12);
Note: See TracChangeset for help on using the changeset viewer.