Iterate charts
Methods
iterateCharts(callable $callback, ?string $sheet = null): boolcallable $callback
string $sheet
Callback payload
Return value
Example
Last updated
$config = ['path' => './tests'];
$excel = new \Vtiful\Kernel\Excel($config);
$excel->openFile('source.xlsx');
$excel->iterateCharts(function (array $chart) {
echo "chart {$chart['type']}, title {$chart['title']}\n";
foreach ($chart['series'] as $s) {
echo " series {$s['name']}: {$s['values']}\n";
}
}, 'Sheet1');