Don't you have a problem because ur forgot to install xAxisLabel and yAxisLabel?
Try creating an array that receives the labels you want to set, and then load it into that array, as you did, but setting plotLabel. for example: for tags:
$labels = array(
new PHPExcel_Chart_DataSeriesValues('String', 'Worksheet!$B$1', null, 1),
new PHPExcel_Chart_DataSeriesValues('String', 'Worksheet!$C$1', null, 1),
);
$series = new PHPExcel_Chart_DataSeries(
PHPExcel_Chart_DataSeries::TYPE_PIECHART,
PHPExcel_Chart_DataSeries::GROUPING_CLUSTERED,
array(0),
$labels,
$categories,
$values
);
- :
$xAxisLabel = new PHPExcel_Chart_Title('xAxisLabel');
$yAxisLabel = new PHPExcel_Chart_Title('yAxisLabel');
:
$chart = new PHPExcel_Chart(
'chart2',
$title,
$legend,
$plotarea,
true,
0,
xAxisLabel,
yAxisLabel
);