Skip to content

Commit 4e8e0dc

Browse files
committed
Fix Countable Int (bis)
1 parent 6088f54 commit 4e8e0dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpSpreadsheet/Chart/Renderer/JpGraph.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ private function renderPlotBar($groupID, $dimensions = '2d')
344344
}
345345
$grouping = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotGrouping();
346346

347-
$labelCount = count($this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex(0)->getPointCount());
347+
$labelCount = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotValuesByIndex(0)->getPointCount();
348348
if ($labelCount > 0) {
349349
$datasetLabels = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getDataValues();
350350
$datasetLabels = $this->formatDataSetLabels($groupID, $datasetLabels, $labelCount, $rotation);
@@ -549,7 +549,7 @@ private function renderPlotStock($groupID)
549549
}
550550

551551
// 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();
553553
if ($labelCount > 0) {
554554
$datasetLabels = $this->chart->getPlotArea()->getPlotGroupByIndex($groupID)->getPlotCategoryByIndex(0)->getDataValues();
555555
$datasetLabels = $this->formatDataSetLabels($groupID, $datasetLabels, $labelCount);

0 commit comments

Comments
 (0)