Warning this is an old version.

Take me to the latest version

Charts - Bar Charts Menu - Glass Bar Chart

Make a glass bar chart.

Documentation: bar glass, inherits from bar_base.

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/glass-bar-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/glass-bar-chart.php
<?php

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

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

$data = array(9,8,7,6,null,4,3,2,1);
$data[4] = new bar_value(5);
$data[4]->set_colour'#ff0000' );
$data[4]->set_tooltip'Hello<br>#val#' );

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

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

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


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