0

By following the documentation I try to change width of Y axis gridlines and outline.

First I create series:

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

Then outline:

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

Then gridlines:

$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);

For both line types setWidth() method is not working. Everything else in chart is as expected. What is wrong with setWidth?

Vlado
  • 3,517
  • 2
  • 26
  • 24

0 Answers0