Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/10/2011, 10:40
gereval70
 
Fecha de Ingreso: octubre-2011
Ubicación: México
Mensajes: 1
Antigüedad: 12 años, 6 meses
Puntos: 0
error open flash chart2

Aclarando ya existe un tema en el foro de open flash chart pero tiene inactividad de mas de 6 mese por lo que recomienda abrir nuevo tema.

Hola ten un problema con open flash chart 2

utilizando el ejemplo:

Código PHP:
<?php

include_once 'ofc-library/open-flash-chart-object.php';
open_flash_chart_object(500,250,'http://'$_SERVER['SERVER_NAME'].'/chart-data.php',false);
?>
<?php

// generate some random data:

srand((double)microtime()*1000000);

$max 50;
$data = array();
for( 
$i=0$i<12$i++ )
{
  
$data[] = rand(0,$max);
}

// use the chart class to build the chart:
include_once( 'ofc-library/open-flash-chart.php' );
$g=new graph();

// Spoon sales, March 2007
$g->title'Spoon sales 'date("Y"), '{font-size: 26px;}' );

$g->set_data$data );
$g->line_hollow24'0x80a033''Spoon sales'10 );

// label each point with its value
$g->set_x_labels( array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec' ) );

// set the Y max
$g->set_y_max60 );
// label every 20 (0,20,40,60)
$g->y_label_steps);

// display the data
echo $g->render();
?>

Me despliega el siguente error "Fatal error: Class 'graph' not found in....."

De antemano Gracias por las posibles respuestas