You are here

private static function PHPExcel_Reader_Excel2007_Chart::_chartDataSeriesValueSet in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Chart.php \PHPExcel_Reader_Excel2007_Chart::_chartDataSeriesValueSet()
1 call to PHPExcel_Reader_Excel2007_Chart::_chartDataSeriesValueSet()
PHPExcel_Reader_Excel2007_Chart::_chartDataSeries in vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Chart.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007/Chart.php, line 298

Class

PHPExcel_Reader_Excel2007_Chart
PHPExcel_Reader_Excel2007_Chart

Code

private static function _chartDataSeriesValueSet($seriesDetail, $namespacesChartMeta, $marker = null, $smoothLine = false) {
  if (isset($seriesDetail->strRef)) {
    $seriesSource = (string) $seriesDetail->strRef->f;
    $seriesData = self::_chartDataSeriesValues($seriesDetail->strRef->strCache
      ->children($namespacesChartMeta['c']), 's');
    return new PHPExcel_Chart_DataSeriesValues('String', $seriesSource, $seriesData['formatCode'], $seriesData['pointCount'], $seriesData['dataValues'], $marker, $smoothLine);
  }
  elseif (isset($seriesDetail->numRef)) {
    $seriesSource = (string) $seriesDetail->numRef->f;
    $seriesData = self::_chartDataSeriesValues($seriesDetail->numRef->numCache
      ->children($namespacesChartMeta['c']));
    return new PHPExcel_Chart_DataSeriesValues('Number', $seriesSource, $seriesData['formatCode'], $seriesData['pointCount'], $seriesData['dataValues'], $marker, $smoothLine);
  }
  elseif (isset($seriesDetail->multiLvlStrRef)) {
    $seriesSource = (string) $seriesDetail->multiLvlStrRef->f;
    $seriesData = self::_chartDataSeriesValuesMultiLevel($seriesDetail->multiLvlStrRef->multiLvlStrCache
      ->children($namespacesChartMeta['c']), 's');
    $seriesData['pointCount'] = count($seriesData['dataValues']);
    return new PHPExcel_Chart_DataSeriesValues('String', $seriesSource, $seriesData['formatCode'], $seriesData['pointCount'], $seriesData['dataValues'], $marker, $smoothLine);
  }
  elseif (isset($seriesDetail->multiLvlNumRef)) {
    $seriesSource = (string) $seriesDetail->multiLvlNumRef->f;
    $seriesData = self::_chartDataSeriesValuesMultiLevel($seriesDetail->multiLvlNumRef->multiLvlNumCache
      ->children($namespacesChartMeta['c']), 's');
    $seriesData['pointCount'] = count($seriesData['dataValues']);
    return new PHPExcel_Chart_DataSeriesValues('String', $seriesSource, $seriesData['formatCode'], $seriesData['pointCount'], $seriesData['dataValues'], $marker, $smoothLine);
  }
  return null;
}