【问题标题】:PHPOffice/PHPPresentation (PowerPoint) Chart: both outline setWidth and gridline setWidth methods are not workingPHPOffice/PHPPresentation (PowerPoint) 图表:outline setWidth 和 gridline setWidth 方法都不起作用
【发布时间】:2022-10-04 23:37:44
【问题描述】:

通过遵循文档,我尝试更改 Y 轴网格线和轮廓的宽度。

首先我创建系列:

$series = new Chart\Series($label, $seriesDataAsc);
$series->setShowSeriesName(false);
$series->setShowValue(false);
$series->setShowLeaderLines(true);
$series->setShowCategoryName(false);

然后概述:

$oOutline = new Outline();
$oOutline->getFill()->setFillType(Fill::FILL_SOLID);
$oOutline->setWidth(2); // not working
$series->setOutline($oOutline);

然后网格线:

$oGridLines = new Gridlines();
$oGridLines->getOutline()->setWidth(1); // not working
$oGridLines->getOutline()->getFill()->setFillType(Fill::FILL_SOLID)->setStartColor(new Color('FFF5F5F5'));
$oShape->getPlotArea()->getAxisY()->setMajorGridlines($oGridLines);

对于这两种线型,setWidth() 方法都不起作用。图表中的其他所有内容都符合预期。设置宽度有什么问题?

【问题讨论】:

    标签: charts outline phpoffice phppresentation setwidth


    【解决方案1】:

    你设法解决了这个问题吗?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-11
      • 1970-01-01
      相关资源
      最近更新 更多