This example shows an area chart with the area filled with a different colour.
Create the flash object
<?php
include_once 'ofc-library/open_flash_chart_object.php';
open_flash_chart_object( 500, 300, 'http://'. $_SERVER['SERVER_NAME'] .'/open-flash-chart/gallery-data-38.php' );
?>
gallery-data-38.php
<?php
$data = array();
$labels = array();
for( $i=0; $i<16; $i++ )
{
$data[] = $i*$i;
$labels[] = $i;
}
include_once( 'ofc-library/open-flash-chart.php' );
$g = new graph();
$g->title( 'Area Chart 2', '{font-size: 26px;}' );
$g->set_data( $data );
//
// LOOK:
//
// width: 2px, dots: 3px, area alpha: 25% ...
$g->area_hollow( 2, 3, 25, '#C11B01', 'Squared', 12, '#8E560F' );
//
//
$g->set_x_labels( $labels );
$g->set_x_label_style( 10, '#000000', 0, 2 );
$g->set_x_axis_steps( 2 );
$g->set_x_legend( 'X squared', 12, '#C11B01' );
$g->set_y_min( 0 );
$g->set_y_max( 225 );
$g->y_label_steps( 15 );
$g->set_y_legend( 'Value', 12, '#C11B01' );
echo $g->render();
?>