ho una tabela pippo con i valori:sportello,rifiuto,mese.
vorrei fare un grafico tipo questo:
http://graphpite.sourceforge.net/sam....php?sample=07

dove nell'asse delle x mettero lo sportello,nell'asse delle y mettero il mese e nella barra dividero tra i tipi di rifiuti(sono 3) che ho.
non ho capito come potrei modificare il codice che danno come esempio.il codice è questo:

<?php
include("Image/Graph.php");

// create the graph
$Graph =& new Image_Graph(400, 300);
// create the plotareas
$PlotArea =& $Graph->add(new Image_Graph_PlotArea());

// create the dataset
$DataSets =
array(
new Image_Graph_Dataset_Random(10, 2, 15, false),
new Image_Graph_Dataset_Random(10, 2, 15, false),
new Image_Graph_Dataset_Random(10, 2, 15, false)
);
// create the 1st plot as smoothed area chart using the 1st dataset
$Plot =& $PlotArea->addPlot(new Image_Graph_Plot_Stacked_Bar($DataSets));

// set a line color
$Plot->setLineColor(IMAGE_GRAPH_GRAY);

// create a fill array
$BLUE =& $Graph->newColor(IMAGE_GRAPH_BLUE, 100);
$YELLOW =& $Graph->newColor(IMAGE_GRAPH_YELLOW, 100);
$GREEN =& $Graph->newColor(IMAGE_GRAPH_GREEN, 100);

$FillArray =& new Image_Graph_Fill_Array();
$FillArray->add($BLUE);
$FillArray->add($YELLOW);
$FillArray->add($GREEN);

// set a standard fill style
$Plot->setFillStyle($FillArray);

// add a TrueType font
$Arial =& $Graph->addFont(new Image_Graph_Font_TTF("arial.ttf"));
// set the font size to 15 pixels
$Arial->setSize(11);
// add a title using the created font
$Graph->add(new Image_Graph_Title("Stacked Bar Chart Sample", $Arial));

// create a Y data value marker
$Marker =& $Plot->add(new Image_Graph_Marker_Value(IMAGE_GRAPH_VALUE_Y));
// and use the marker on the 1st plot
$Plot->setMarker($Marker);

// output the Graph
$Graph->done();
?>