本文整理汇总了PHP中BarPlot::SetWidth方法的典型用法代码示例。如果您正苦于以下问题:PHP BarPlot::SetWidth方法的具体用法?PHP BarPlot::SetWidth怎么用?PHP BarPlot::SetWidth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BarPlot
的用法示例。
在下文中一共展示了BarPlot::SetWidth方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ShowHBar
/**
* Show Horizontal Bar graph
*/
function ShowHBar(&$legend, &$value)
{
$height = 50 + count($value) * 18;
$width = 500;
// Set the basic parameters of the graph
$graph = new Graph($width, $height, 'auto');
$graph->SetScale("textlin");
$top = 30;
$bottom = 20;
$left = 100;
$right = 50;
$graph->Set90AndMargin($left, $right, $top, $bottom);
$graph->xaxis->SetTickLabels($legend);
$graph->SetFrame(false);
// Label align for X-axis
$graph->xaxis->SetLabelAlign('right', 'center', 'right');
// Label align for Y-axis
$graph->yaxis->SetLabelAlign('center', 'bottom');
// Create a bar pot
$bplot = new BarPlot($value);
$bplot->SetFillColor("orange");
$bplot->SetWidth(0.5);
// We want to display the value of each bar at the top
$graph->yaxis->scale->SetGrace(10);
$graph->yaxis->SetLabelAlign('center', 'bottom');
$graph->yaxis->SetLabelFormat('%d');
$bplot->value->Show();
$bplot->value->SetFormat('%.d votes');
// Setup color for gradient fill style
$bplot->SetFillGradient("navy", "lightsteelblue", GRAD_MIDVER);
$graph->Add($bplot);
$graph->Stroke();
}
示例2: makeGraph
function makeGraph($x_data, $y_data, $num_results, $title = "Statistics", $graph_type = "bar", $graph_scale = "textint")
{
// default graph info
$width = 600;
$height = 500;
$top = 60;
$bottom = 30;
$left = 80;
$right = 30;
if ($graph_type != 'csv' && $num_results == 0) {
header('Content-type: image/png');
readfile($GLOBALS['BASE_DIR'] . '/images/no-calls.png');
exit;
}
// Set the basic parameters of the graph
switch ($graph_type) {
case "line":
//do line graph here
break;
// not really a graph, returns comma seperated values
// not really a graph, returns comma seperated values
case "csv":
header("content-type: text/csv");
header('Content-Disposition: attachment; filename="statistics.csv"');
$columns = implode(',', $x_data);
$rows = implode(',', $y_data);
echo $columns . "\n" . $rows;
break;
case "bar":
default:
// bar is default
$graph = new Graph($width, 90 + 10 * $num_results, 'auto');
$graph->SetScale($graph_scale);
// Nice shadow
$graph->SetShadow();
$graph->Set90AndMargin($left, $right, $top, $bottom);
// Setup labels
$graph->xaxis->SetTickLabels($x_data);
// Label align for X-axis
$graph->xaxis->SetLabelAlign('right', 'center', 'right');
// Label align for Y-axis
$graph->yaxis->SetLabelAlign('center', 'bottom');
// Create a bar pot
$bplot = new BarPlot($y_data);
$bplot->SetFillColor("#708090");
$bplot->SetWidth(0.5);
$bplot->SetYMin(0);
//$bplot->SetYMin(1990);
$graph->title->Set($title);
$graph->Add($bplot);
$graph->Stroke();
}
}
示例3: render
function render($imgType)
{
$this->graph->SetImgFormat($imgType);
if ($this->chartType == 'piechart') {
$plot = new PiePlot3d($this->value_r);
$plot->SetTheme("sand");
$plot->SetCenter(0.35);
$plot->SetAngle(50);
$plot->SetLegends($this->display_r);
$plot->SetLabelType(PIE_VALUE_ADJPER);
} else {
$this->graph->xaxis->SetTickLabels($this->display_r);
$plot = new BarPlot($this->value_r);
$plot->SetWidth(0.5);
$plot->SetFillColor("orange@0.75");
}
$this->graph->Add($plot);
$this->graph->Stroke();
}
示例4: executeBarGraph
public function executeBarGraph()
{
//Set the response header to a image JPEG datastream
$this->getResponse()->setContent('image/jpeg');
// Change this defines to where Your fonts are stored
DEFINE("TTF_DIR", "/usr/share/fonts/truetype/freefont/");
// Change this define to a font file that You know that You have
DEFINE("TTF_SANS", "FreeSans.ttf");
$util = new util();
$dataDVDrip = $util->getTotalFormat('DVDrip', 'movies');
$dataHDrip = $util->getTotalFormat('HDrip', 'movies');
$data720p = $util->getTotalFormat('720p', 'movies');
$data1080p = $util->getTotalFormat('1080p', 'movies');
$datay = array($dataDVDrip, $dataHDrip, $data720p, $data1080p);
$graph = new Graph(199, 145);
$graph->SetScale('textlin');
$graph->SetColor('black');
$graph->SetMarginColor('#393939');
$graph->SetFrame(true, '#393939');
$top = 25;
$bottom = 20;
$left = 50;
$right = 20;
$graph->Set90AndMargin($left, $right, $top, $bottom);
// Setup labels
$lbl = array("DVDrip", "HDrip", "720p", "1080p");
$graph->xaxis->SetTickLabels($lbl);
$graph->xaxis->SetColor('white');
$graph->xaxis->SetLabelAlign('right', 'center', 'right');
$graph->yaxis->SetLabelAlign('center', 'bottom');
$graph->yaxis->SetColor('white');
// Create a bar pot
$bplot = new BarPlot($datay);
$bplot->SetWidth(0.5);
$bplot->SetFillGradient(array(250, 2, 2), array(109, 2, 2), GRAD_VERT);
$graph->Add($bplot);
$graph->Stroke();
return sfView::NONE;
}
示例5: generate_image
function generate_image()
{
global $percent, $legend;
// Create the graph. These two calls are always required
$graph = new Graph(550, 250);
$graph->SetScale("textlin");
$graph->yaxis->scale->SetGrace(20);
$graph->xaxis->SetLabelmargin(5);
$graph->xaxis->SetTickLabels($legend);
$graph->ygrid->SetFill(true, '#EFEFEF@0.5', '#BBCCFF@0.5');
// Add a drop shadow
$graph->SetShadow();
// Adjust the margin a bit to make more room for titles
$graph->img->SetMargin(50, 30, 20, 40);
// Create a bar pot
$bplot = new BarPlot($percent);
// Adjust fill color
$bplot->SetFillColor('#9999CC');
$bplot->SetShadow();
$bplot->value->Show();
$bplot->value->SetFont(FF_ARIAL, FS_BOLD, 10);
$bplot->value->SetAngle(45);
$bplot->value->SetFormat('%0.0f');
// Width
$bplot->SetWidth(0.6);
$graph->Add($bplot);
// Setup the titles
$graph->title->Set("PHP documentation");
$graph->xaxis->title->Set("Language");
$graph->yaxis->title->Set("Files up to date (%)");
$graph->title->SetFont(FF_FONT1, FS_BOLD);
$graph->yaxis->title->SetFont(FF_FONT1, FS_BOLD);
$graph->xaxis->title->SetFont(FF_FONT1, FS_BOLD);
// Display the graph
$graph->Stroke('../www/images/revcheck/info_revcheck_php_all_lang.png');
}
示例6: array
$graph->yaxis->title->Set('(%)');
$graph->yaxis->title->SetFont(FF_FONT1, FS_BOLD);
$graph->ygrid->SetColor('black');
$graph->yaxis->SetTitleMargin(45);
$graph->yaxis->scale->SetGrace(30);
// TITRE: texte
$graph->title->Set("Pass and Fail rate");
// TITRE: marge et apparence
$graph->title->SetFont(FF_FONT1, FS_BOLD, 10);
// Couleurs et transparence par histogramme
$aColors = array('pink', 'teal', 'navy', 'lightblue', 'red', 'green');
$i = 0;
$aGroupBarPlot = array();
foreach ($data1 as $key => $value) {
$bplot = new BarPlot($data1[$key]);
$bplot->SetFillColor($aColors[$i++]);
$bplot->value->Show();
$bplot->value->SetFormat('%01.2f');
$bplot->value->SetColor("black", "darkred");
$bplot->SetLegend($key);
$bplot->SetShadow('black');
$bplot->SetWidth(0.2);
$aGroupBarPlot[] = $bplot;
}
// Création de l'objet qui regroupe nos histogrammes
$gbarplot = new GroupBarPlot($aGroupBarPlot);
$gbarplot->SetWidth(0.5);
// Ajouter au graphique
$graph->Add($gbarplot);
// Afficher
$graph->Stroke();
示例7: Graph
//agregamos los datos al array
$datos[] = $row['cantidad'];
$labels[] = $row['alias'];
}
//DEFINIMOS FORMATOS GENERALES
$grafico = new Graph(1140, 400, 'auto');
$grafico->SetScale("textint");
$grafico->title->Set("GRAFICO ESTADISTICO DE AREAS");
$grafico->xaxis->title->Set("");
$grafico->xaxis->SetTickLabels($labels);
//$grafico->xaxis->SetLabelAngle(50);
//$grafico->xaxis->SetLabelAngle(45);
$grafico->yaxis->title->set("CANTIDAD DE ATENCIONES");
//INGRESAMOS LOS DATOS AL ARREGLO DE DATOS QUE IRAN EN EL GRAFICO
$barplot1 = new BarPlot($datos);
//DEFINIMOS FORMATOS ESPECIFICOS
//
//UNA GRADIENTE HORIZONTAL DE MORADOS
$barplot1->SetFillGradient("#BE81F7", "#E3CEF6", GRAD_HOR);
//30 PIXELES DE ANCHO PARA CADA BARRA
$barplot1->SetWidth(50);
//AL GARFICO LE AGREGAMOS LOS DATOS
$grafico->Add($barplot1);
//SALIDA POR PANTALLA
$grafico->Stroke();
//SALIDA ARCHIVO FORMATO PNG
//$grafico->Stroke("IMG.png");
?>
示例8: BarPlot
$graph->SetScale("textint");
$graph->SetShadow();
$graph->SetFrame(false);
// No border around the graph
// Add some grace to the top so that the scale doesn't
// end exactly at the max value.
$graph->yaxis->scale->SetGrace(100);
// Setup X-axis labels
$a = $gDateLocale->GetShortMonth();
$graph->xaxis->SetTickLabels($a);
$graph->xaxis->SetFont(FF_FONT2);
// Setup graph title ands fonts
$graph->title->Set("Example of integer Y-scale");
$graph->title->SetFont(FF_FONT2, FS_BOLD);
$graph->xaxis->title->Set("Year 2002");
$graph->xaxis->title->SetFont(FF_FONT2, FS_BOLD);
// Create a bar pot
$bplot = new BarPlot($datay);
$bplot->SetFillColor("orange");
$bplot->SetWidth(0.5);
$bplot->SetShadow();
// Setup the values that are displayed on top of each bar
$bplot->value->Show();
// Must use TTF fonts if we want text at an arbitrary angle
$bplot->value->SetFont(FF_ARIAL, FS_BOLD);
$bplot->value->SetAngle(45);
// Black color for positive values and darkred for negative values
$bplot->value->SetColor("black", "darkred");
$graph->Add($bplot);
// Finally stroke the graph
$graph->Stroke();
示例9: getBarPlot
function getBarPlot($data, $color)
{
$b = new BarPlot($data);
//parameters hard coded for the moment
$b->SetAbsWidth(10);
$b->value->Show(true);
$b->value->SetColor($this->graph->getMainColor());
$b->value->SetFormat("%d");
$b->value->HideZero();
$b->value->SetMargin(4);
$b->value->SetFont($this->graph->getFont(), FS_NORMAL, 7);
$b->SetWidth(0.4);
$b->SetColor($color . ':0.7');
$b->SetFillColor($color);
// end hard coded parameter
return $b;
}
示例10: graficar_defectos
function graficar_defectos($eje_y, $x_label, $pareto, $titulo_eje_x, $titulo_eje_y, $title, $name)
{
include "../jpgraph/src/jpgraph.php";
include "../jpgraph/src/jpgraph_line.php";
include "../jpgraph/src/jpgraph_bar.php";
$graph = new Graph(820, 350);
$graph->SetScale("textlin");
$graph->SetMarginColor("#FFFFFF");
$graph->img->SetMargin(80, 80, 60, 140);
$graph->yaxis->SetTitleMargin(40);
$graph->SetBackgroundImage("../imagenes/fondo.jpg", BGIMG_FILLFRAME);
$graph->xaxis->SetLabelAngle(90);
$graph->xaxis->SetTickLabels($x_label);
$graph->legend->Pos(0.03, 0.3);
$graph->title->SetColor("#000000");
$graph->title->Set($title);
$graph->title->SetFont(FF_FONT1, FS_BOLD);
$graph->yaxis->title->SetFont(FF_FONT1, FS_BOLD);
$graph->xaxis->title->SetFont(FF_FONT1, FS_BOLD);
//$graph->yaxis->title->Set($titulo_eje_y);
//$graph->xaxis->title->Set($titulo_eje_x);
$graph->setcolor("#EEEEEE");
$graph->setshadow("true", 3, "#aaaaaa");
// Crear la gráfica de barras
$bplot1 = new BarPlot($eje_y);
$bplot1->SetWidth(0.3);
$bplot1->SetYMin(0.02);
$bplot1->SetFillColor("orange@0.2");
$bplot1->SetShadow('darkgray');
$bplot1->value->SetFormat("%0.1f");
$bplot1->value->SetColor("darkred");
$bplot1->value->Show();
// Crear la gráfica de líneas
$lplot = new LinePlot($pareto);
$lplot->mark->SetType(MARK_FILLEDCIRCLE);
$lplot->mark->SetFillColor("red");
$lplot->mark->SetWidth(3);
$lplot->SetColor("blue");
$lplot->SetBarCenter();
$graph->Add($bplot1);
$graph->Add($lplot);
$graph->Stroke("charts/" . $name);
}
示例11: generateGraphbarrev
public function generateGraphbarrev($type)
{
// $type= "year";
if ($type == "year") {
$start = date("Y-");
$start .= "01-01 00-00-00";
$end = date("Y-");
$end .= "12-31 23-59-59";
} elseif ($type == "month") {
$start = date("Y-m-");
$start .= "01 00-00-00";
$end = date("Y-m-");
$end .= "31 23-59-59";
} elseif ($type == "day") {
$start = date("Y-m-d");
$start .= " 00-00-00";
$end = date("Y-m-d");
$end .= " 23-59-59";
} elseif ($type == "week") {
$date = date("Y-m-d");
}
//$this->load->database();
if ($type == "week") {
$sql = DB::select(DB::raw("SELECT `id` FROM `sales` WHERE YEARWEEK(`created_at`) = YEARWEEK('{$date}') AND `deleted` = '0' "));
} else {
$sql = DB::select(DB::raw("SELECT `id` FROM `sales` WHERE (`created_at` BETWEEN '{$start}' AND '{$end}') AND `deleted` = '0' "));
}
foreach ($sql as $row) {
$sales_id[] = $row->id;
}
if (!isset($sales_id)) {
$sales_id[] = 0;
$sales_id[] = 0;
}
$ids = join(',', $sales_id);
//$sql = "SELECT COUNT(sales_product.id) AS 'Count', item.name AS 'Name' FROM sales_product INNER JOIN item ON item.id = sales_product.product WHERE sales_product.sale_id IN ($ids) GROUP BY sales_product.product ORDER BY `Count` DESC";
$sql = DB::select(DB::raw("SELECT COUNT(sales_product.id) AS 'Count', item.name AS 'Name' FROM sales_product INNER JOIN item ON item.id = sales_product.product WHERE sales_product.sale_id IN ({$ids}) GROUP BY sales_product.product ORDER BY `Count` DESC"));
foreach ($sql as $row) {
$inq[] = $row->Count;
$leg[] = $row->Name;
}
if (!isset($inq)) {
$inq[] = 0;
$leg[] = "null";
}
if (sizeof($inq) > 5) {
$c = sizeof($inq) - 1;
$other = 0;
for ($x = 4; $x <= $c; $x++) {
$other = $other + $inq[$x];
unset($inq[$x]);
unset($leg[$x]);
}
$inq[4] = $other;
$leg[4] = "other";
}
$data1y = $inq;
echo public_path('plugins\\streaming\\protected\\start.php');
echo asset('asxcasx\\dsddsd');
// die();
// Create the graph. These two calls are always required
$graph = new \Graph(350, 250, 'auto');
$graph->SetScale("textlin");
$theme_class = new \UniversalTheme();
$graph->SetTheme($theme_class);
// $graph->yaxis->SetTickPositions(array(0,30,60,90,120,150), array(15,45,75,105,135));
$graph->SetBox(false);
$graph->ygrid->SetFill(false);
$graph->xaxis->SetTickLabels($leg);
$graph->xaxis->title->Set('Products');
$graph->yaxis->HideLine(false);
$graph->yaxis->HideTicks(false, false);
$graph->yaxis->title->Set('Sales');
// Create the bar plots
$b1plot = new \BarPlot($data1y);
// $b2plot = new BarPlot($data2y);
// $b3plot = new BarPlot($data3y);
// Create the grouped bar plot
// $gbplot = new GroupBarPlot(array($b1plot,$b2plot,$b3plot));
$gbplot = new \GroupBarPlot(array($b1plot));
// ...and add it to the graPH
$graph->Add($gbplot);
$b1plot->SetColor("white");
$b1plot->SetFillColor("#6EDBFF");
$b1plot->SetWidth(45);
$gdImgHandler = $graph->Stroke(_IMG_HANDLER);
$fileName = "assets/tmp/" . $type . "_bar_rev.png";
$graph->img->Stream($fileName);
}
示例12: process
$graph9->yaxis->title->SetFont(FF_FONT1, FS_BOLD);
$graph9->ygrid->SetColor('black');
$graph9->yaxis->SetTitleMargin(45);
$graph9->yaxis->scale->SetGrace(30);
// TITRE: texte
$graph9->title->Set("Mesuring latency Sh process (micro-sec)");
// TITRE: marge et apparence
$graph9->title->SetFont(FF_FONT1, FS_BOLD, 11);
// Couleurs et transparence par histogramme
$bplot9 = new BarPlot($data10);
$bplot9->SetFillColor('lightgray');
$bplot9->value->Show();
$bplot9->value->SetFormat('%01.3f');
$bplot9->value->SetColor("black", "darkred");
$bplot9->SetShadow('black');
$bplot9->SetWidth(0.3);
$graph9->Add($bplot9);
//-----------------------
// Create a multigraph
//----------------------
$mgraph = new MGraph();
$mgraph->SetMargin(10, 10, 10, 10);
$mgraph->SetFrame(true, 'darkgray', 2);
$mgraph->SetBackgroundImage('../fond.png');
$mgraph->AddMix($graph, 0, 0, 85);
$mgraph->AddMix($graph1, 0, 270, 85);
$mgraph->AddMix($graph2, 0, 540, 85);
$mgraph->AddMix($graph3, 0, 810, 85);
$mgraph->AddMix($graph4, 0, 1080, 85);
$mgraph->AddMix($graph5, 0, 1350, 85);
$mgraph->AddMix($graph6, 0, 1620, 85);
示例13: Graph
//agregamos los datos al array
$datos[] = $row['cantidad'];
$labels[] = $row['alias'];
}
//DEFINIMOS FORMATOS GENERALES
$grafico = new Graph(1200, 400, 'auto');
$grafico->SetScale("textint");
$grafico->title->Set("GRAFICO ESTADISTICO");
$grafico->xaxis->title->Set("");
$grafico->xaxis->SetTickLabels($labels);
//$grafico->xaxis->SetLabelAngle(50);
//$grafico->xaxis->SetLabelAngle(45);
$grafico->yaxis->title->set("CANTIDAD DE TICKETS");
//INGRESAMOS LOS DATOS AL ARREGLO DE DATOS QUE IRAN EN EL GRAFICO
$barplot1 = new BarPlot($datos);
//DEFINIMOS FORMATOS ESPECIFICOS
//
//UNA GRADIENTE HORIZONTAL DE MORADOS
$barplot1->SetFillGradient("#BE81F7", "#E3CEF6", GRAD_HOR);
//30 PIXELES DE ANCHO PARA CADA BARRA
$barplot1->SetWidth(60);
//AL GARFICO LE AGREGAMOS LOS DATOS
$grafico->Add($barplot1);
//SALIDA POR PANTALLA
$grafico->Stroke();
//SALIDA ARCHIVO FORMATO PNG
//$grafico->Stroke("IMG.png");
?>
示例14: parse
function parse($input, $parser)
{
global $jpgraphMarkList;
$chart_type = split(",", $this->type);
$mark_type = split(",", $this->mark);
// retrieving data
$i = 0;
$max_row_count = -1;
foreach (split("\n", $input) as $line) {
// skip empty line or comments
if (preg_match("/^(\\s*)#.*\$|^(\\s*)\$/", $line)) {
continue;
}
$line_array = split($this->fieldsep, $line);
// if first loop => setting label and continue with next loop
if ($i == 0) {
$this->labels = $line_array;
$i++;
continue;
}
// Storing data
for ($j = 0; $j < count($line_array); $j++) {
$this->datay[$j][] = $line_array[$j];
}
// check data integrity
if ($max_row_count == -1) {
$max_row_count = count($line_array);
}
if ($max_row_count != count($line_array)) {
throw new Exception("Error while parsing '" . implode($this->fieldsep, $line_array) . "' : bad number of row.");
}
$i++;
}
$data_start = 0;
// if(x, y) curve => set datax with first set of datay
if ($this->islinear) {
$this->datax = $this->datay[0];
$data_start = 1;
if ($this->xistime) {
for ($i = 0; $i < count($this->datax); $i++) {
$this->datax[$i] = strtotime($this->datax[$i]);
}
}
}
// Setting default value for chart type array. by default : line.
// If only one type => applying same type for everybody
if (count($chart_type) == 0) {
$chart_type[0] = "line";
}
if (count($chart_type) != $max_row_count) {
$tmp_type = $chart_type[0];
$chart_type = array();
for ($i = count($chart_type); $i < $max_row_count; $i++) {
$chart_type[$i] = $tmp_type;
}
}
// same thing for mark
if (count($mark_type) == 0) {
$mark_type[0] = "line";
}
if (count($mark_type) != $max_row_count) {
$tmp_mark = $mark_type[0];
$mark_type = array();
for ($i = count($mark_type); $i < $max_row_count; $i++) {
$mark_type[$i] = $tmp_mark;
}
}
// Possibility to ignore data
$disable_row = array();
foreach (split(",", $this->disable) as $elt) {
$disable_row[$elt] = true;
}
// Creating data object
for ($i = $data_start; $i < count($this->datay); $i++) {
if (array_key_exists($i + 1, $disable_row) && $disable_row[$i + 1]) {
continue;
}
$show_plot = false;
switch ($chart_type[$i]) {
case "bar":
$plot = new BarPlot($this->datay[$i], $this->datax);
$plot->SetWidth($this->barwidth);
$plot->SetFillColor($this->color_list[$i % count($this->color_list)]);
break;
case "area":
$plot = new LinePlot($this->datay[$i], $this->datax);
$plot->SetColor("gray");
$plot->SetFillColor($this->color_list[$i % count($this->color_list)]);
$show_plot = true;
break;
default:
case "line":
$plot = new LinePlot($this->datay[$i], $this->datax);
$show_plot = true;
break;
}
if ($show_plot) {
$mark_id = $jpgraphMarkList[$mark_type[$i]];
if (!$mark_id) {
throw new JpgraphMWException("Unknown mark type(" . $mark_type[$i] . "). Possible values are: " . implode(", ", array_keys($jpgraphMarkList)));
//.........这里部分代码省略.........
示例15: Deviation
$graph3->yaxis->title->Set('time(us)');
$graph3->yaxis->title->SetFont(FF_FONT1, FS_BOLD);
$graph3->ygrid->SetColor('black');
$graph3->yaxis->SetTitleMargin(45);
$graph3->yaxis->scale->SetGrace(30);
// TITRE: texte
$graph3->title->Set("Pthread kill latency -Mesuring Standard Deviation(us)");
// TITRE: marge et apparence
$graph3->title->SetFont(FF_FONT1, FS_BOLD, 11);
// Couleurs et transparence par histogramme
$bplot3 = new BarPlot($data4);
$bplot3->SetFillColor('red');
$bplot3->value->SetFormat('%01.3f');
$bplot3->value->Show();
$bplot3->SetShadow('black');
$bplot3->value->SetColor("black", "darkred");
$bplot3->SetShadow('black');
$bplot3->SetWidth(0.3);
$graph3->Add($bplot3);
//-----------------------
// Create a multigraph
//----------------------
$mgraph = new MGraph();
$mgraph->SetMargin(10, 10, 10, 10);
$mgraph->SetFrame(true, 'darkgray', 2);
$mgraph->SetBackgroundImage('../fond.png');
$mgraph->AddMix($graph, 0, 0, 85);
$mgraph->AddMix($graph1, 0, 270, 85);
$mgraph->AddMix($graph2, 0, 540, 85);
$mgraph->AddMix($graph3, 0, 810, 85);
$mgraph->Stroke();