Ver Mensaje Individual
  #7 (permalink)  
Antiguo 30/06/2008, 13:17
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
Respuesta: alguien sabe de open-flash-chart (graficos)

proba asi:
graf.php
Código PHP:
<html>
<head>
</head>
<body>
<?php
// Código que crea el objeto Flash
include_once 'ofc-library/open_flash_chart_object.php';
open_flash_chart_object600350'http://'
 
$_SERVER['SERVER_NAME'] .'/chpp/data2.php'false );
 
?>
</body>
</html>
data2.php
Código PHP:
<?php
// generate some random data:

// generate some random data
$max 8;
$min=1;
$tmp = array('8','7','4','6','5','2','3','1','2','1','3','6','5','5');
for( 
$i=1$i<=14$i++ )
{
  
$fecha[] = $i;
}

for( 
$i=1$i<=8$i++ )
{
  
$pos[] = $i;
}

include_once( 
'ofc-library/open-flash-chart.php' );
$g = new graph();
$g->set_data$tmp );
$g->set_x_labels($fecha );
$g->title'Evolucion Posiciones''{font-size: 15px}' );
$g->set_y_min$max);
$g->set_y_max$min );
$g->y_label_steps);
$g->set_y_legend'Posiciones'12'#736AFF' );
$g->set_x_legend'Fechas'12'#736AFF' );
echo 
$g->render();
?>
cambia el /chpp/ por el directorio donde tengas los archivos. si no te sale bien el grafico es porque en mi archivo intento que se muestren el eje y de manera distinta.

salu2