public function PHPExcel_Chart_DataSeries::__construct in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/DataSeries.php \PHPExcel_Chart_DataSeries::__construct()
* Create a new PHPExcel_Chart_DataSeries
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Chart/ DataSeries.php, line 140
Class
- PHPExcel_Chart_DataSeries
- PHPExcel_Chart_DataSeries
Code
public function __construct($plotType = null, $plotGrouping = null, $plotOrder = array(), $plotLabel = array(), $plotCategory = array(), $plotValues = array(), $plotDirection = null, $smoothLine = null, $plotStyle = null) {
$this->_plotType = $plotType;
$this->_plotGrouping = $plotGrouping;
$this->_plotOrder = $plotOrder;
$keys = array_keys($plotValues);
$this->_plotValues = $plotValues;
if (count($plotLabel) == 0 || is_null($plotLabel[$keys[0]])) {
$plotLabel[$keys[0]] = new PHPExcel_Chart_DataSeriesValues();
}
$this->_plotLabel = $plotLabel;
if (count($plotCategory) == 0 || is_null($plotCategory[$keys[0]])) {
$plotCategory[$keys[0]] = new PHPExcel_Chart_DataSeriesValues();
}
$this->_plotCategory = $plotCategory;
$this->_smoothLine = $smoothLine;
$this->_plotStyle = $plotStyle;
if (is_null($plotDirection)) {
$plotDirection = self::DIRECTION_COL;
}
$this->_plotDirection = $plotDirection;
}