Files
iTop/pages/php-ofc-library/ofc_bar_stack.php
Denis Flaven fd8b3c835e - Upgraded to the latest version of Open Flash Charts (Version 2 Lug Wyrm Charmer)
- Localization of the menus 90% done.
- Removed the old types of Flash charts, (no longer used anyway, now we rely on open-flash-charts)

SVN:trunk[441]
2010-06-08 13:12:17 +00:00

55 lines
888 B
PHP

<?php
include_once 'ofc_bar_base.php';
class bar_stack extends bar_base
{
function bar_stack()
{
$this->type = "bar_stack";
parent::bar_base();
}
function append_stack( $v )
{
$this->append_value( $v );
}
// an array of HEX colours strings
// e.g. array( '#ff0000', '#00ff00' );
function set_colours( $colours )
{
$this->colours = $colours;
}
// an array of bar_stack_value
function set_keys( $keys )
{
$this->keys = $keys;
}
}
class bar_stack_value
{
function bar_stack_value( $val, $colour )
{
$this->val = $val;
$this->colour = $colour;
}
function set_tooltip( $tip )
{
$this->tip = $tip;
}
}
class bar_stack_key
{
function bar_stack_key( $colour, $text, $font_size )
{
$this->colour = $colour;
$this->text = $text;
$tmp = 'font-size';
$this->$tmp = $font_size;
}
}