mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-25 05:14:12 +01:00
- 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]
48 lines
772 B
PHP
48 lines
772 B
PHP
<?php
|
|
|
|
class scatter_value
|
|
{
|
|
function scatter_value( $x, $y, $dot_size=-1 )
|
|
{
|
|
$this->x = $x;
|
|
$this->y = $y;
|
|
|
|
if( $dot_size > 0 )
|
|
{
|
|
$tmp = 'dot-size';
|
|
$this->$tmp = $dot_size;
|
|
}
|
|
}
|
|
}
|
|
|
|
class scatter
|
|
{
|
|
function scatter( $colour )
|
|
{
|
|
$this->type = "scatter";
|
|
$this->set_colour( $colour );
|
|
}
|
|
|
|
function set_colour( $colour )
|
|
{
|
|
$this->colour = $colour;
|
|
}
|
|
|
|
function set_default_dot_style( $style )
|
|
{
|
|
$tmp = 'dot-style';
|
|
$this->$tmp = $style;
|
|
}
|
|
|
|
/**
|
|
* @param $v as array, can contain any combination of:
|
|
* - integer, Y position of the point
|
|
* - any class that inherits from scatter_value
|
|
* - <b>null</b>
|
|
*/
|
|
function set_values( $values )
|
|
{
|
|
$this->values = $values;
|
|
}
|
|
}
|