Constructor
my_graph
__construct
(int $width, int $height)
It returns a multiple serie graph
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
It returns a one serie graph
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
To set the legend
void
set_legend
($id $id)
It returns a two serie graph
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