<?php
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_bar.php');
// data
$dataOk = array(85);
$dataWarn = array(5);
$dataCrit = array(5);
$dataUnk = array(5);
setlocale (LC_ALL, 'et_EE.ISO-8859-1');
$graph = new Graph(600,600,"auto");
$graph->clearTheme();
$graph->SetScale("textint");
// Create the bar plots
$b1plot = new BarPlot($dataOk);
$b1plot->SetFillColor("green");
$b2plot = new BarPlot($dataWarn);
$b2plot->SetFillColor("orange");
$b3plot = new BarPlot($dataCrit);
$b3plot->SetFillColor("red");
$b4plot = new BarPlot($dataUnk);
$b4plot->SetFillColor("blue");
// I have tried with just the first, all at 50, and like that..
//$b1plot->SetYMin(50); // not working, begin at 0
//$b2plot->SetYMin(85);
//$b3plot->SetYMin(90);
//$b4plot->SetYMin(95);
// Create the grouped bar plot
$gbplot = new AccBarPlot(array($b1plot,$b2plot,$b3plot,$b4plot));
$gbplot->SetYMin(50); // not working, begin at 0
$graph->Add($gbplot);
$graph->title->Set("Test");
$graph->Stroke();