fix
This commit is contained in:
parent
1168789e8a
commit
31259f6448
|
|
@ -270,7 +270,7 @@ class Chart extends AbstractPart
|
||||||
if (is_array($colors) && count($colors) > 0) {
|
if (is_array($colors) && count($colors) > 0) {
|
||||||
// assign a color to each value
|
// assign a color to each value
|
||||||
$valueIndex = 0;
|
$valueIndex = 0;
|
||||||
for ($i = 1; $i < count($values); $i++) {
|
for ($i = 0; $i < count($values); $i++) {
|
||||||
// check that there are still enought colors
|
// check that there are still enought colors
|
||||||
$xmlWriter->startElement('c:dPt');
|
$xmlWriter->startElement('c:dPt');
|
||||||
$xmlWriter->writeElementBlock('c:idx', 'val', $valueIndex);
|
$xmlWriter->writeElementBlock('c:idx', 'val', $valueIndex);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue