<?php
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_bar.php');
$data1y=array(47,80,40,116);
$graph = new Graph(400, 300, 'auto');
$graph->SetScale('textlin');
$theme_class = new AquaTheme;
$graph->SetTheme($theme_class);
$graph->SetFrame(true, 'lightgray');
$graph->xaxis->SetTickLabels(array('A','B','C','D'));
$graph->title->Set("Theme Example");
$bplot = new BarPlot($data1y);
$graph->Add($bplot);
$bplot->SetWeight(0);
$bplot->SetFillGradient('#FFAAAA:0.7', '#FFAAAA:1.2', GRAD_VER);
$graph->Stroke(); |