官方例子:传送门
注意事项
$write = IOFactory::createWriter($spreadsheet, 'Xlsx');
//写入文件时需要加这个,不然图表不会生成
$write->setIncludeCharts(true);
$write->save($path . $filename);
官方例子:传送门
注意事项
$write = IOFactory::createWriter($spreadsheet, 'Xlsx');
//写入文件时需要加这个,不然图表不会生成
$write->setIncludeCharts(true);
$write->save($path . $filename);