First commit
This commit is contained in:
commit
c6e2478c40
13918 changed files with 2303184 additions and 0 deletions
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
|
||||
class scatter_value
|
||||
{
|
||||
function __construct( $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 __construct( $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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue