Update Chart.php
This commit is contained in:
parent
4c9e75088a
commit
0c3eb4bafc
@ -52,6 +52,20 @@ class Chart extends AbstractStyle
|
|||||||
*/
|
*/
|
||||||
private $colors = 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
|
* A list of display options for data labels
|
||||||
*
|
*
|
||||||
@ -221,6 +235,50 @@ class Chart extends AbstractStyle
|
|||||||
return $this;
|
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
|
* Show labels for axis
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user