minor bug fix
[openemr.git] / library / openflashchart / php-ofc-library / ofc_bar_stack.php
blob3d9f8d9f0cc51db6c609a781d54e3cff6e18c14d
1 <?php
3 include_once 'ofc_bar_base.php';
5 class bar_stack extends bar_base
7 function bar_stack()
9 $this->type = "bar_stack";
10 parent::bar_base();
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 )
28 $this->keys = $keys;
32 class bar_stack_value
34 function bar_stack_value( $val, $colour )
36 $this->val = $val;
37 $this->colour = $colour;
40 function set_tooltip( $tip )
42 $this->tip = $tip;
46 class bar_stack_key
48 function bar_stack_key( $colour, $text, $font_size )
50 $this->colour = $colour;
51 $this->text = $text;
52 $tmp = 'font-size';
53 $this->$tmp = $font_size;