Charts - Bar Charts Menu - Bar Cylinder Chart

Documentation: bar_cylinder, inherits from bar_base. Also take a look at the X axis class.

This goes into the <head> of the page:

<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript">

swfobject.embedSWF(
"open-flash-chart.swf", "my_chart",
"550", "200", "9.0.0", "expressInstall.swf",
{"data-file":"gallery/bar-cylinder-chart.php"} );

</script>
This writes the chart into a div with id="my_chart", right click and view source to see it in action, [the tutorials have more details]

gallery/bar-cylinder-chart.php
<?php

include '../php-ofc-library/open-flash-chart.php';

$title = new titledate("D M d Y") );

$data = array(9,8,7,6,5,4,3,2,1);

$bar = new bar_cylinder();
$bar->set_values$data );

$chart = new open_flash_chart();
$chart->set_title$title );
$chart->add_element$bar );

$x_axis = new x_axis();
$x_axis->set_3d);
$x_axis->colour '#d0d0d0';
$chart->set_x_axis$x_axis );

echo 
$chart->toString();
To see the data produced : gallery/bar-cylinder-chart.php, then 'view source'.
Support This Project

Open Flash Chart logo by numb.me.uk. | Syntax highlights are by GeSHi