Set($data); // Merge all cells in row 0 $table->MergeRow(0); // Add table to graph $graph->Add($table); // ... and send back the table to the client $graph->Stroke(); ?>