clipbucket/upload/admin_area/charts/ofc-library/ofc_y_axis_labels.php
Arslan Hassan 97139970d2 ADDED : Website Reports and stats
FIXED : Last Month Date Fixed
2010-01-23 13:16:19 +00:00

57 lines
No EOL
800 B
PHP

<?php
class y_axis_labels
{
function y_axis_labels(){}
/**
* @param $steps which labels are generated
*/
function set_steps( $steps )
{
$this->steps = $steps;
}
/**
*
* @param $labels as an array of [y_axis_label or string]
*/
function set_labels( $labels )
{
$this->labels = $labels;
}
function set_colour( $colour )
{
$this->colour = $colour;
}
/**
* font size in pixels
*/
function set_size( $size )
{
$this->size = $size;
}
/**
* rotate labels
*/
function set_vertical()
{
$this->rotate = 270;
}
function rotate( $angle )
{
$this->rotate = $angle;
}
/**
* @param $text default text that all labels inherit
*/
function set_text( $text )
{
$this->text = $text;
}
}