We need to show the static labels in the cells to show them on the graph or PIE chart. When plotting, we can show and hide labels or values ββusing functions such as setShowVal, setShowCatName.
$objPHPExcel = new PHPExcel(); $objWorksheet = $objPHPExcel->getActiveSheet(); $objWorksheet->fromArray( array( array('', 2010, 2011, 2012), array('PASS', 12, 15, 21), array('FAIL', 56, 73, 86) ) ); $dataSeriesLabels1 = array( new PHPExcel_Chart_DataSeriesValues('String', 'Worksheet!$C$1', NULL, 1),
source share