You are here

public function PHPExcel_Chart_DataSeries::getPlotLabelByIndex 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::getPlotLabelByIndex()

* Get Plot Label by Index * *

Return value

PHPExcel_Chart_DataSeriesValues

File

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

Class

PHPExcel_Chart_DataSeries
PHPExcel_Chart_DataSeries

Code

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