mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-02 06:58:49 +02:00
- Upgraded to the latest version of Open Flash Charts (Version 2 Lug Wyrm Charmer)
- Localization of the menus 90% done. - Removed the old types of Flash charts, (no longer used anyway, now we rely on open-flash-charts) SVN:trunk[441]
This commit is contained in:
@@ -4,14 +4,27 @@ class x_axis_labels
|
||||
{
|
||||
function x_axis_labels(){}
|
||||
|
||||
/**
|
||||
* @param $steps which labels are generated
|
||||
*/
|
||||
function set_steps( $steps )
|
||||
{
|
||||
$this->steps = $steps;
|
||||
}
|
||||
|
||||
//
|
||||
// An array of [x_axis_label or string]
|
||||
//
|
||||
/**
|
||||
* @param $steps as integer which labels are visible
|
||||
*/
|
||||
function visible_steps( $steps )
|
||||
{
|
||||
$this->{"visible-steps"} = $steps;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param $labels as an array of [x_axis_label or string]
|
||||
*/
|
||||
function set_labels( $labels )
|
||||
{
|
||||
$this->labels = $labels;
|
||||
@@ -22,13 +35,35 @@ class x_axis_labels
|
||||
$this->colour = $colour;
|
||||
}
|
||||
|
||||
/**
|
||||
* font size in pixels
|
||||
*/
|
||||
function set_size( $size )
|
||||
{
|
||||
$this->size = $size;
|
||||
}
|
||||
|
||||
/**
|
||||
* rotate labels
|
||||
*/
|
||||
function set_vertical()
|
||||
{
|
||||
$this->rotate = "vertical";
|
||||
$this->rotate = 270;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param @angle as real. The angle of the text.
|
||||
*/
|
||||
function rotate( $angle )
|
||||
{
|
||||
$this->rotate = $angle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $text as string. Replace and magic variables with actual x axis position.
|
||||
*/
|
||||
function text( $text )
|
||||
{
|
||||
$this->text = $text;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user