Added a graphing functionality with Open Flash Chart, and added ability to graph...
[openemr.git] / library / openflashchart / php-ofc-library / ofc_scatter.php
blob7159a3a64f35dd4a1c2eaae35c8645379c49e161
1 <?php
3 class scatter_value
5 function scatter_value( $x, $y, $dot_size=-1 )
7 $this->x = $x;
8 $this->y = $y;
10 if( $dot_size > 0 )
12 $tmp = 'dot-size';
13 $this->$tmp = $dot_size;
18 class scatter
20 function scatter( $colour )
22 $this->type = "scatter";
23 $this->set_colour( $colour );
26 function set_colour( $colour )
28 $this->colour = $colour;
31 function set_default_dot_style( $style )
33 $tmp = 'dot-style';
34 $this->$tmp = $style;
37 /**
38 * @param $v as array, can contain any combination of:
39 * - integer, Y position of the point
40 * - any class that inherits from scatter_value
41 * - <b>null</b>
43 function set_values( $values )
45 $this->values = $values;