thanks, I use the example works, I made another and also, using php cli everything is ok when I use laravel the function replaceChartData works fine but it shows me the error ErrorException in CreateCompletedXlsx.inc line 144: undefined index: name * the file with the graphics if it is generated
my code is
$docxx = new \Phpdocx\Utilities\DocxUtilities();
$source = storage_path('/reporteword2017/example_area_chart.docx');
$target = storage_path('/reporteword2017/example_area_chartt.docx');
$data = array();
$data[0] = array(
'title' => 'ramiro',
'legends' => array(
'new legend',
),
'categories' => array(
'cat 1',
'cat 2',
'cat 3',
'cat 4',
),
'values' => array(
array(30),
array(10),
array(15),
array(10)
),
);
$data[1] = array(
'title' => 'Other title',
'legends' => array(
'legend 1',
'legend 2',
'legend 3',
),
'categories' => array(
'other cat 1',
'other cat 2',
'other cat 3',
'other cat 4',
),
'values' => array(
array(25, 10, 5),
array(20, 5, 4),
array(15, 0, 3),
array(10, 15, 2),
),
);
$docxx->replaceChartData($source, $target, $data);
i think that is a warning in the code
i wait you answer to do in laravel thanks.