Added a graphing functionality with Open Flash Chart, and added ability to graph...
[openemr.git] / library / openflashchart / php-ofc-library / ofc_candle.php
blob21ad67f8d3bce308d0e48e6c1d018b94d9f0d09e
1 <?php
3 include_once 'ofc_bar_base.php';
5 class candle_value
7 /**
9 */
10 function candle_value( $high, $open, $close, $low )
12 $this->high = $high;
13 $this->top = $open;
14 $this->bottom = $close;
15 $this->low = $low;
18 function set_colour( $colour )
20 $this->colour = $colour;
23 function set_tooltip( $tip )
25 $this->tip = $tip;
29 class candle extends bar_base
31 function candle($colour, $negative_colour=null)
33 $this->type = "candle";
34 parent::bar_base();
36 $this->set_colour( $colour );
37 if(!is_null($negative_colour))
38 $this->{'negative-colour'} = $negative_colour;