minor bug fix
[openemr.git] / library / openflashchart / php-ofc-library / ofc_x_axis_labels.php
blobaf4540f95e93957cfef2101deb9a199d015a2978
1 <?php
3 class x_axis_labels
5 function x_axis_labels(){}
7 /**
8 * @param $steps which labels are generated
9 */
10 function set_steps( $steps )
12 $this->steps = $steps;
15 /**
16 * @param $steps as integer which labels are visible
18 function visible_steps( $steps )
20 $this->{"visible-steps"} = $steps;
21 return $this;
24 /**
26 * @param $labels as an array of [x_axis_label or string]
28 function set_labels( $labels )
30 $this->labels = $labels;
33 function set_colour( $colour )
35 $this->colour = $colour;
38 /**
39 * font size in pixels
41 function set_size( $size )
43 $this->size = $size;
46 /**
47 * rotate labels
49 function set_vertical()
51 $this->rotate = 270;
54 /**
55 * @param @angle as real. The angle of the text.
57 function rotate( $angle )
59 $this->rotate = $angle;
62 /**
63 * @param $text as string. Replace and magic variables with actual x axis position.
65 function text( $text )
67 $this->text = $text;