How do I customize the line in a line chart with PHPPowerpoint/PHPPresentation?

前端 未结 1 685
你的背包
你的背包 2021-01-28 07:20

How do I customize the lines in the line charts on PHPPowerpoint/PHPPresentation? I can\'t find anything in there documentation or in the samples to figure this out.

He

相关标签:
1条回答
  • 2021-01-28 07:54

    It's actually in the develop branch.

    But you can do this :

    $oOutline = new \PhpOffice\PhpPresentation\Style\Outline();
    $oOutline->getFill()->setFillType(Fill::FILL_SOLID);
    $oOutline->getFill()->setStartColor(new Color(Color::COLOR_YELLOW));
    $oOutline->setWidth(2);
    
    $series->setOutline($oOutline);
    
    0 讨论(0)
提交回复
热议问题