Skip to content

Commit 17fc623

Browse files
authored
Update JpGraphRendererBase.php
1 parent 36f3168 commit 17fc623

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpSpreadsheet/Chart/Renderer/JpGraphRendererBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ private function renderPlotLine(int $groupID, bool $filled = false, bool $combin
336336
}
337337
if ($this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotLabelByIndex($index)) {
338338
$dataLabel = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotLabelByIndex($index)->getDataValue();
339+
$seriesPlot->SetLegend($dataLabel);
339340
}
340-
$seriesPlot->SetLegend($dataLabel);
341341

342342
$seriesPlots[] = $seriesPlot;
343343
}

0 commit comments

Comments
 (0)