- 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:
Denis Flaven
2010-06-08 13:12:17 +00:00
parent 4d3fbf1f79
commit fd8b3c835e
28 changed files with 1944 additions and 1142 deletions

View File

@@ -4,61 +4,121 @@ class x_axis
{
function x_axis(){}
/**
* @param $stroke as integer, with of the line and ticks
*/
function set_stroke( $stroke )
{
$this->stroke = $stroke;
}
function stroke( $stroke )
{
$this->set_stroke( $stroke );
return $this;
}
/**
*@param $colour as string HEX colour
*@param $grid_colour as string HEX colour
*/
function set_colours( $colour, $grid_colour )
{
$this->set_colour( $colour );
$this->set_grid_colour( $grid_colour );
}
/**
*@param $colour as string HEX colour
*/
function set_colour( $colour )
{
$this->colour = $colour;
}
function colour( $colour )
{
$this->set_colour($colour);
return $this;
}
function set_tick_height( $height )
{
$tmp = 'tick-height';
$this->$tmp = $height;
}
function tick_height( $height )
{
$this->set_tick_height($height);
return $this;
}
function set_grid_colour( $colour )
{
$tmp = 'grid-colour';
$this->$tmp = $colour;
}
// $o is a boolean
function grid_colour( $colour )
{
$this->set_grid_colour($colour);
return $this;
}
/**
* @param $o is a boolean. If true, the X axis start half a step in
* This defaults to True
*/
function set_offset( $o )
{
$this->offset = $o?true:false;
}
function offset( $o )
{
$this->set_offset($o);
return $this;
}
/**
* @param $steps as integer. Which grid lines and ticks are visible.
*/
function set_steps( $steps )
{
$this->steps = $steps;
}
function steps( $steps )
{
$this->set_steps($steps);
return $this;
}
/**
* @param $val as an integer, the height in pixels of the 3D bar. Mostly
* used for the 3D bar chart.
*/
function set_3d( $val )
{
$tmp = '3d';
$this->$tmp = $val;
}
/**
* @param $x_axis_labels as an x_axis_labels object
* Use this to customize the labels (colour, font, etc...)
*/
function set_labels( $x_axis_labels )
{
//$this->labels = $v;
$this->labels = $x_axis_labels;
}
//
// helper function to make the examples
// simpler.
//
/**
* Sugar syntax: helper function to make the examples simpler.
* @param $a is an array of labels
*/
function set_labels_from_array( $a )
{
$x_axis_labels = new x_axis_labels();
@@ -69,6 +129,9 @@ class x_axis
$x_axis_labels->set_steps( $this->steps );
}
/**
* min and max.
*/
function set_range( $min, $max )
{
$this->min = $min;