PhpOffice\PhpPresentation\Writer\ODPresentation\ObjectsChart::writePlotArea PHP Method

writePlotArea() private method

private writePlotArea ( Chart $chart )
$chart PhpOffice\PhpPresentation\Shape\Chart
    private function writePlotArea(Chart $chart)
    {
        $chartType = $chart->getPlotArea()->getType();
        // chart:plot-area
        $this->xmlContent->startElement('chart:plot-area');
        $this->xmlContent->writeAttribute('chart:style-name', 'stylePlotArea');
        if ($chartType instanceof Bar3D || $chartType instanceof Pie3D) {
            $this->xmlContent->writeAttribute('dr3d:ambient-color', '#cccccc');
            $this->xmlContent->writeAttribute('dr3d:lighting-mode', 'true');
        }
        if ($chartType instanceof Bar3D || $chartType instanceof Pie3D) {
            // dr3d:light
            $arrayLight = array(array('#808080', '(0 0 1)', 'false', 'true'), array('#666666', '(0.2 0.4 1)', 'true', 'false'), array('#808080', '(0 0 1)', 'false', 'false'), array('#808080', '(0 0 1)', 'false', 'false'), array('#808080', '(0 0 1)', 'false', 'false'), array('#808080', '(0 0 1)', 'false', 'false'), array('#808080', '(0 0 1)', 'false', 'false'));
            foreach ($arrayLight as $light) {
                $this->xmlContent->startElement('dr3d:light');
                $this->xmlContent->writeAttribute('dr3d:diffuse-color', $light[0]);
                $this->xmlContent->writeAttribute('dr3d:direction', $light[1]);
                $this->xmlContent->writeAttribute('dr3d:enabled', $light[2]);
                $this->xmlContent->writeAttribute('dr3d:specular', $light[3]);
                $this->xmlContent->endElement();
            }
        }
        //**** Axis ****
        $this->writeAxis($chart);
        //**** Series ****
        $this->rangeCol = 'B';
        $this->numSeries = 0;
        foreach ($chartType->getSeries() as $series) {
            $this->writeSeries($chart, $series);
            $this->rangeCol++;
            $this->numSeries++;
        }
        //**** Wall ****
        $this->writeWall();
        //**** Floor ****
        $this->writeFloor();
        // > chart:plot-area
        $this->xmlContent->endElement();
    }