Skip to content

Commit 766a73c

Browse files
authored
getDataLabel() defends against empty labels
1 parent f369340 commit 766a73c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PhpSpreadsheet/Chart/Renderer/JpGraphRendererBase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ private function getDataLabel(int $groupId, int $index): mixed
287287
if (!$plotLabel) {
288288
return '';
289289
}
290+
290291
return $plotLabel->getDataValue();
291292
}
292293

0 commit comments

Comments
 (0)