class BGraph{
private $title;
+ private $ytitle;
private $data;
private $data_type;
die( "Please provide a non empty title for the graph" );
}
+ public function SetYTitle( $ytitle )
+ {
+ if( !empty($ytitle) )
+ $this->ytitle = $ytitle;
+ else
+ die( "Please provide a non empty title for the Y axis" );
+ }
+
public function SetColors( $colors )
{
if( is_array( $colors ) )
// Graph title
$this->plot->SetTitle( $this->title );
+ $this->plot->SetYTitle( $this->ytitle );
// Setting up legends
if( $this->type != 'bars' ) {