3 include_once 'ofc_bar_base.php';
5 class bar_stack
extends bar_base
7 public function __construct()
9 $this->type
= "bar_stack";
13 function append_stack( $v )
15 $this->append_value( $v );
18 // an array of HEX colours strings
19 // e.g. array( '#ff0000', '#00ff00' );
20 function set_colours( $colours )
22 $this->colours
= $colours;
25 // an array of bar_stack_value
26 function set_keys( $keys )
34 public function __construct( $val, $colour )
37 $this->colour
= $colour;
40 function set_tooltip( $tip )
48 public function __construct( $colour, $text, $font_size )
50 $this->colour
= $colour;
53 $this->$tmp = $font_size;