You are here

public function PHPExcel_Chart_DataSeries::getPlotCategoryByIndex in Loft Data Grids 7.2

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

* Get Plot Category by Index * *

Return value

PHPExcel_Chart_DataSeriesValues

File

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

Class

PHPExcel_Chart_DataSeries
PHPExcel_Chart_DataSeries

Code

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