Hi, this code is givin me error, someone can help me please? Thanks
$grafico = new WordFragment($docx, 'document');
$data = array(
'Legend 1' => array(20),
'Legend 2' => array(30),
'Legend 3' => array(40)
);
$paramsChart = array(
'data' => $data,
'type' => 'pie3DChart',
'rotX' => 20,
'rotY' => 20,
'perspective' => 30,
'color' => 2,
'sizeX' => 10,
'sizeY' => 5,
'chartAlign' => 'center',
'showPercent' => 1,
);
$grafico->addChart($paramsChart);