Skip to content

Commit 31259f6

Browse files
author
Antoine de Troostembergh
committed
fix
1 parent 1168789 commit 31259f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Writer/Word2007/Part/Chart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ private function writeSeries(XMLWriter $xmlWriter, $scatter = false)
270270
if (is_array($colors) && count($colors) > 0) {
271271
// assign a color to each value
272272
$valueIndex = 0;
273-
for ($i = 1; $i < count($values); $i++) {
273+
for ($i = 0; $i < count($values); $i++) {
274274
// check that there are still enought colors
275275
$xmlWriter->startElement('c:dPt');
276276
$xmlWriter->writeElementBlock('c:idx', 'val', $valueIndex);

0 commit comments

Comments
 (0)