You are here

public function PHPExcel_Chart_DataSeriesValues::getDataValue in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/DataSeriesValues.php \PHPExcel_Chart_DataSeriesValues::getDataValue()

* Get the first Series Data value * *

Return value

mixed

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/DataSeriesValues.php, line 246

Class

PHPExcel_Chart_DataSeriesValues
PHPExcel_Chart_DataSeriesValues

Code

public function getDataValue() {
  $count = count($this->_dataValues);
  if ($count == 0) {
    return null;
  }
  elseif ($count == 1) {
    return $this->_dataValues[0];
  }
  return $this->_dataValues;
}