示例#1
0
 /**
  * @param Chart $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();
 }