File tree 1 file changed +2
-2
lines changed
src/PhpSpreadsheet/Chart/Renderer
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ private function renderPlotBar($groupID, $dimensions = '2d')
344
344
}
345
345
$ grouping = $ this ->chart ->getPlotArea ()->getPlotGroupByIndex ($ groupID )->getPlotGrouping ();
346
346
347
- $ labelCount = count ( $ this ->chart ->getPlotArea ()->getPlotGroupByIndex ($ groupID )->getPlotValuesByIndex (0 )->getPointCount () );
347
+ $ labelCount = $ this ->chart ->getPlotArea ()->getPlotGroupByIndex ($ groupID )->getPlotValuesByIndex (0 )->getPointCount ();
348
348
if ($ labelCount > 0 ) {
349
349
$ datasetLabels = $ this ->chart ->getPlotArea ()->getPlotGroupByIndex ($ groupID )->getPlotCategoryByIndex (0 )->getDataValues ();
350
350
$ datasetLabels = $ this ->formatDataSetLabels ($ groupID , $ datasetLabels , $ labelCount , $ rotation );
@@ -549,7 +549,7 @@ private function renderPlotStock($groupID)
549
549
}
550
550
551
551
// Set the x-axis labels
552
- $ labelCount = count ( $ this ->chart ->getPlotArea ()->getPlotGroupByIndex ($ groupID )->getPlotValuesByIndex (0 )->getPointCount () );
552
+ $ labelCount = $ this ->chart ->getPlotArea ()->getPlotGroupByIndex ($ groupID )->getPlotValuesByIndex (0 )->getPointCount ();
553
553
if ($ labelCount > 0 ) {
554
554
$ datasetLabels = $ this ->chart ->getPlotArea ()->getPlotGroupByIndex ($ groupID )->getPlotCategoryByIndex (0 )->getDataValues ();
555
555
$ datasetLabels = $ this ->formatDataSetLabels ($ groupID , $ datasetLabels , $ labelCount );
You can’t perform that action at this time.
0 commit comments