Class my_graph

Description

Description of my_graphs

  • author: cristina

Located in /my_graph.php (line 31)


	
			
Variable Summary
mixed $bar
mixed $colours
mixed $graph
mixed $legend
mixed $line
mixed $point
Method Summary
my_graph __construct (int $width, int $height)
void multiple_series_graph ($xdata $xdata, $ydatas $ydatas, $legends $legends, $xlabel $xlabel, $ylabel $ylabel, $points $points, $lines $lines, $bars $bars)
void one_series_graph ($xdata $xdata, $ydata $ydata, $legend $legend, $xlabel $xlabel, $ylabel $ylabel, [ $colour = 'green'])
void set_legend ($id $id)
void two_series_graph ($xdata $xdata, $ydata1 $ydata1, $ydata2 $ydata2, $legend1 $legend1, $legend2 $legend2, $xlabel $xlabel, $ylabel $ylabel, [$colours $colours = array('green','navy')], [$points $points = array(0,1)], [$lines $lines = array(0,1)], [$bars $bars = array(1,0)])
Variables
mixed $bar = array ('none','fill', 'open') (line 43)
mixed $colours = array('fuchsia','ltgreen','orange','ltblue','gray','red','yellow',
'lime','ltorange','ltltblue','purple','ltred','ltltorange','ltltgreen','maroon','aqua','olive','ltltred')
(line 33)
mixed $graph (line 49)
mixed $legend = array ('none', 'outside-top', 'outside-bottom', 'bottom-left', 'bottom-right',
'top-left', 'top-right','outside-left','outside-right')
(line 46)
mixed $line = array ('none','line','brush') (line 40)
mixed $point = array('none','square','circle','diamond','open-square','open-circle','open-diamond') (line 37)
Methods
Constructor __construct (line 56)

Constructor

  • access: public
my_graph __construct (int $width, int $height)
  • int $width
  • int $height
multiple_series_graph (line 195)

It returns a multiple serie graph

  • access: public
void multiple_series_graph ($xdata $xdata, $ydatas $ydatas, $legends $legends, $xlabel $xlabel, $ylabel $ylabel, $points $points, $lines $lines, $bars $bars)
  • $xdata $xdata
  • $ydatas $ydatas
  • $legends $legends
  • $xlabel $xlabel
  • $ylabel $ylabel
  • $points $points
  • $lines $lines
  • $bars $bars
one_series_graph (line 117)

It returns a one serie graph

  • access: public
void one_series_graph ($xdata $xdata, $ydata $ydata, $legend $legend, $xlabel $xlabel, $ylabel $ylabel, [ $colour = 'green'])
  • $xdata $xdata
  • $ydata $ydata
  • $legend $legend
  • $xlabel $xlabel
  • $ylabel $ylabel
  • $colour
set_legend (line 105)

To set the legend

  • access: public
void set_legend ($id $id)
  • $id $id
two_series_graph (line 152)

It returns a two serie graph

  • access: public
void two_series_graph ($xdata $xdata, $ydata1 $ydata1, $ydata2 $ydata2, $legend1 $legend1, $legend2 $legend2, $xlabel $xlabel, $ylabel $ylabel, [$colours $colours = array('green','navy')], [$points $points = array(0,1)], [$lines $lines = array(0,1)], [$bars $bars = array(1,0)])
  • $xdata $xdata
  • $ydata1 $ydata1
  • $ydata2 $ydata2
  • $legend1 $legend1
  • $legend2 $legend2
  • $xlabel $xlabel
  • $ylabel $ylabel
  • $colours $colours
  • $points $points
  • $lines $lines
  • $bars $bars

Documentation generated on Sat, 07 Apr 2012 18:01:10 +0100 by phpDocumentor 1.4.3