Added a graphing functionality with Open Flash Chart, and added ability to graph...
[openemr.git] / library / openflashchart / php-ofc-library / ofc_line_base.php
blobfa45cbc8997a8f6b2533aaf833e1ff2a7b64f15e
1 <?php
3 class line_base
5 function line_base()
7 $this->type = "line";
8 $this->text = "Page views";
9 $tmp = 'font-size';
10 $this->$tmp = 10;
12 $this->values = array();
15 function set_values( $v )
17 $this->values = $v;
20 /**
21 * Append a value to the line.
23 * @param mixed $v
25 function append_value($v)
27 $this->values[] = $v;
30 function set_width( $width )
32 $this->width = $width;
35 function set_colour( $colour )
37 $this->colour = $colour;
40 function set_dot_size( $size )
42 $tmp = 'dot-size';
43 $this->$tmp = $size;
46 function set_halo_size( $size )
48 $tmp = 'halo-size';
49 $this->$tmp = $size;
52 function set_key( $text, $font_size )
54 $this->text = $text;
55 $tmp = 'font-size';
56 $this->$tmp = $font_size;
59 function set_tooltip( $tip )
61 $this->tip = $tip;
64 function set_on_click( $text )
66 $tmp = 'on-click';
67 $this->$tmp = $text;
70 function loop()
72 $this->loop = true;
75 function line_style( $s )
77 $tmp = "line-style";
78 $this->$tmp = $s;
81 /**
82 * Sets the text for the line.
84 * @param string $text
85 */
86 function set_text($text)
88 $this->text = $text;