Update Chart.php

This commit is contained in:
Tom-Magill 2018-07-17 14:10:02 +01:00 committed by GitHub
parent 4c9e75088a
commit 0c3eb4bafc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 58 additions and 0 deletions

View File

@ -51,6 +51,20 @@ class Chart extends AbstractStyle
* @var array
*/
private $colors = array();
/**
* Chart title
*
* @var string
*/
private $title = null;
/**
* Chart legend visibility
*
* @var bool
*/
private $showLegend = false;
/**
* A list of display options for data labels
@ -220,6 +234,50 @@ class Chart extends AbstractStyle
return $this;
}
/**
* Get the chart title
*
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Set the chart title
*
* @param string $value
*/
public function setTitle($value = null)
{
$this->title = $value;
return $this;
}
/**
* Get chart legend visibility
*
* @return bool
*/
public function getShowLegend()
{
return $this->showLegend;
}
/**
* Set chart legend visibility
*
* @param bool $value
*/
public function setShowLegend($value = false)
{
$this->showLegend = $value;
return $this;
}
/*
* Show labels for axis