GRazie dell'aiuto.

Visto che ne sai , ti chiedo un altro consulto.

Ho bisogno di fare nello stesso grafico a barre per ogni valore $data_x[] due valori $datay_1[], $datay2.

Penso che il tutto si faccia con setpattern però non ho capito come.

Puoi darmi qualche suggerimento per piacere?


codice:
while ( $row = mysql_fetch_assoc( $st ) )
{
    $datay_1[] = $row['fatturato_1'];
    $datay_2[] = $row['fatturato_2'];
    $datax[] = $row['descrizione_linea'];
}


$graph = new graph(580,400,"auto");
$graph->setscale("textlin");

$bplot = new BarPlot($datay_1);
$bplot_1 = new BarPlot($datay_2);

$graph->img->setmargin(40,20,40,80);

$graph->yaxis->title->set("Fatturato");
$graph->yaxis->title->setcolor("red");

$graph->xaxis->SetFont(FF_FONT1,FS_NORMAL,4);
$graph->xaxis->SetLabelAngle(90);

$graph->xaxis->setticklabels($datax);

$bplot->SetLegend("Fatturato ordinato $data_anno_in_corso");

$bplot->value->Show();

$graph->Add($bplot);
$graph->legend->pos(0.2,0.05,"right","center");

$graph->Stroke("/srv/www/htdocs/contenuti_speciali/statistiche_ordinato/grafico_1.png");
Rigrazie,
Ale