1、打开文件PHPExcel\Writer\Excel2007\Chart.php
2、找到函数_writePlotGroup
3、在
foreach($plotSeriesOrder as $plotSeriesIdx => $plotSeriesRef) {
之前添加代码
$colorNDX=array(); $colorNDX[0] = "ff33cc"; $colorNDX[1] = "ffff00"; $colorNDX[2] = "ffc000"; $colorNDX[3] = "00b0f0"; $colorNDX[4] = "ff0000"; $colorNDX[5] = "058beb"; $colorNDX[6] = "06eb6e"; $t =$plotGroup->getPlotValues();