Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/04/2008, 18:34
Avatar de destor77
destor77
 
Fecha de Ingreso: noviembre-2004
Ubicación: Gálvez, Santa Fe, Argentina
Mensajes: 2.654
Antigüedad: 19 años, 6 meses
Puntos: 43
graficos con phplot

buenas, tengo el siguiente codigo para hacer graficos:
Código PHP:
require_once 'phplot.php';

$data = array(
  array(
'fecha 1'8), array('fecha 2'7), array('fecha 3'5),
  array(
'fecha 4'8), array('fecha 5',  6), array('fecha 6',  5),
  array(
'fecha 7'4), array('fecha 8'2), array('fecha 9'3),
  array(
'fecha 10'1), array('fecha 11'5), array('fecha 12'6),
   array(
'fecha 13'4), array('fecha 14'2),
);

$plot = new PHPlot(700600);
$plot->SetImageBorderType('plain');

$plot->SetPlotType('bars');
$plot->SetDataType('text-data');
$plot->SetDataValues($data);
$plot->SetYTickIncrement(1);
$plot->SetPlotAreaWorld(NULL0NULL8);


# Turn off X tick labels and ticks because they don't apply here:
$plot->SetXTickLabelPos('none');
$plot->SetXTickPos('none');

$plot->DrawGraph(); 
lo que necesito es que lo valores del eje y estén al revés, es decir que empiecen por el nº 8 y terminen en el nº 1, alguien sabe como hacerlo?