You are here

public function PHPExcel_Chart_DataSeries::getPlotValuesByIndex in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/DataSeries.php \PHPExcel_Chart_DataSeries::getPlotValuesByIndex()

* Get Plot Values by Index * *

Return value

PHPExcel_Chart_DataSeriesValues

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/DataSeries.php, line 316

Class

PHPExcel_Chart_DataSeries
PHPExcel_Chart_DataSeries

Code

public function getPlotValuesByIndex($index) {
  $keys = array_keys($this->_plotValues);
  if (in_array($index, $keys)) {
    return $this->_plotValues[$index];
  }
  elseif (isset($keys[$index])) {
    return $this->_plotValues[$keys[$index]];
  }
  return false;
}