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

writeChartStyle() private method

private writeChartStyle ( Chart $chart )
$chart PhpOffice\PhpPresentation\Shape\Chart
    private function writeChartStyle(Chart $chart)
    {
        // style:style
        $this->xmlContent->startElement('style:style');
        $this->xmlContent->writeAttribute('style:name', 'styleChart');
        $this->xmlContent->writeAttribute('style:family', 'chart');
        // style:graphic-properties
        $this->xmlContent->startElement('style:graphic-properties');
        $this->xmlContent->writeAttribute('draw:stroke', $chart->getFill()->getFillType());
        $this->xmlContent->writeAttribute('draw:fill-color', '#' . $chart->getFill()->getStartColor()->getRGB());
        // > style:graphic-properties
        $this->xmlContent->endElement();
        // > style:style
        $this->xmlContent->endElement();
    }