Skip to content

Commit

Permalink
Read axis line styles correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
fox34 authored Nov 14, 2022
1 parent 894b78e commit 18714e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PhpSpreadsheet/Reader/Xlsx/Chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public function readChart(SimpleXMLElement $chartElements, $chartName)
}
$xAxis->setAxisType($chartDetailKey);
$this->readEffects($chartDetail, $xAxis);
$this->readLineStyle($chartDetail, $xAxis);
if (isset($chartDetail->spPr)) {
$sppr = $chartDetail->spPr->children($this->aNamespace);
if (isset($sppr->solidFill)) {
Expand Down Expand Up @@ -219,6 +220,7 @@ public function readChart(SimpleXMLElement $chartElements, $chartName)
}
}
$this->readEffects($chartDetail, $whichAxis);
$this->readLineStyle($chartDetail, $whichAxis);
if ($whichAxis !== null && isset($chartDetail->spPr)) {
$sppr = $chartDetail->spPr->children($this->aNamespace);
if (isset($sppr->solidFill)) {
Expand Down

0 comments on commit 18714e3

Please sign in to comment.