private function PHPExcel_Chart_Renderer_jpgraph::_renderCombinationChart in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Chart/Renderer/jpgraph.php \PHPExcel_Chart_Renderer_jpgraph::_renderCombinationChart()
1 call to PHPExcel_Chart_Renderer_jpgraph::_renderCombinationChart()
- PHPExcel_Chart_Renderer_jpgraph::render in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Chart/ Renderer/ jpgraph.php
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Chart/ Renderer/ jpgraph.php, line 721
Class
- PHPExcel_Chart_Renderer_jpgraph
- PHPExcel_Chart_Renderer_jpgraph
Code
private function _renderCombinationChart($groupCount, $dimensions, $outputDestination) {
require_once PHPExcel_Settings::getChartRendererPath() . 'jpgraph_line.php';
require_once PHPExcel_Settings::getChartRendererPath() . 'jpgraph_bar.php';
require_once PHPExcel_Settings::getChartRendererPath() . 'jpgraph_scatter.php';
require_once PHPExcel_Settings::getChartRendererPath() . 'jpgraph_regstat.php';
require_once PHPExcel_Settings::getChartRendererPath() . 'jpgraph_line.php';
$this
->_renderCartesianPlotArea();
for ($i = 0; $i < $groupCount; ++$i) {
$dimensions = null;
$chartType = $this->_chart
->getPlotArea()
->getPlotGroupByIndex($i)
->getPlotType();
switch ($chartType) {
case 'area3DChart':
$dimensions = '3d';
case 'areaChart':
$this
->_renderPlotLine($i, True, True, $dimensions);
break;
case 'bar3DChart':
$dimensions = '3d';
case 'barChart':
$this
->_renderPlotBar($i, $dimensions);
break;
case 'line3DChart':
$dimensions = '3d';
case 'lineChart':
$this
->_renderPlotLine($i, False, True, $dimensions);
break;
case 'scatterChart':
$this
->_renderPlotScatter($i, false);
break;
case 'bubbleChart':
$this
->_renderPlotScatter($i, true);
break;
default:
$this->_graph = null;
return false;
}
}
$this
->_renderLegend();
$this->_graph
->Stroke($outputDestination);
return true;
}