Bonjour,
j'ai un tout petit souci les amis :p c'est que j'arrive pas à afficher les valeur des histogramme en dessus.
voici un exemple (regarder dans l'exemple les valeurs 27 et 100);
<lien url="http://www.excelabo.net/sites/default/files/image/astuces/histominimaxi.jpg">Exemple</lien>
je rappel j'ai essayer ça mais ca n'a pas marcher :
Code PHP :
$bplot1->value->Show();
$bplot2->value->Show();
voici mon code :
Code PHP :
<?php
// Create the basic graph
$graph = new Graph(470,400,'auto');
$graph->SetScale("textlin");
$graph->img->SetMargin(90,100,60,80); //(margin-left,,hauteur,)
//$graph->ygrid->Show(false);//arrière plan
$graph->ygrid->SetColor('white@0.5');
// Setup graph title
$graph->title->Set('Nombre Clients & Secrétaires');
$graph->title->SetColor("red");
// Some extra margin (from the top)
$graph->title->SetMargin(25);
$graph->title->SetFont(FF_ARIAL,FS_NORMAL,12);
// Create the three var series we will combine
$bplot1 = new BarPlot($datay1);
$bplot2 = new BarPlot($datay2);
//VOILA :D ce que j'ai essayer de faire pour afficher les valeurs en dessus
//de chacune des courbes de l'histogramme, mais ça ne marche
//pas du tout [^^confus2] ehooo regarder LA
$bplot1->value->Show();
$bplot2->value->Show();
// Set X-axis at the minimum value of Y-axis (default will be at 0)
$graph->xaxis->SetPos("min"); // "min" will position the x-axis at the minimum value of the Y-axis
// Adjust the position of the legend box
$graph->legend->Pos(0.39,0.76);
// Setup legends
$bplot1->SetLegend('Clients');
$bplot2->SetLegend('Secrétaires');
// Setup each bar with a shadow of 50% transparency
$bplot1->SetShadow('black@0.4');
$bplot2->SetShadow('black@0.4');
$gbarplot = new GroupBarPlot(array($bplot1,$bplot2));
$gbarplot->SetWidth(0.3);
$graph->Add($gbarplot);
$graph->Stroke();
?>
savez-vous prk les amis ???
Merci pour l'aide
