You are here

private function PHPExcel_Chart_Renderer_jpgraph::_renderPlotContour in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Renderer/jpgraph.php \PHPExcel_Chart_Renderer_jpgraph::_renderPlotContour()
1 call to PHPExcel_Chart_Renderer_jpgraph::_renderPlotContour()
PHPExcel_Chart_Renderer_jpgraph::_renderContourChart in vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Renderer/jpgraph.php

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Renderer/jpgraph.php, line 497

Class

PHPExcel_Chart_Renderer_jpgraph
PHPExcel_Chart_Renderer_jpgraph

Code

private function _renderPlotContour($groupID) {
  $contourStyle = $this->_chart
    ->getPlotArea()
    ->getPlotGroupByIndex($groupID)
    ->getPlotStyle();
  $seriesCount = $this->_chart
    ->getPlotArea()
    ->getPlotGroupByIndex($groupID)
    ->getPlotSeriesCount();
  $seriesPlots = array();
  $dataValues = array();

  //	Loop through each data series in turn
  for ($i = 0; $i < $seriesCount; ++$i) {
    $dataValuesY = $this->_chart
      ->getPlotArea()
      ->getPlotGroupByIndex($groupID)
      ->getPlotCategoryByIndex($i)
      ->getDataValues();
    $dataValuesX = $this->_chart
      ->getPlotArea()
      ->getPlotGroupByIndex($groupID)
      ->getPlotValuesByIndex($i)
      ->getDataValues();
    $dataValues[$i] = $dataValuesX;
  }
  $seriesPlot = new ContourPlot($dataValues);
  $this->_graph
    ->Add($seriesPlot);
}