You can delete any graph in your spreadsheet without affecting any table data.
Tap the graph, then tap Delete.
Deleting the table data you used to create the graph doesn’t delete the graph; it simply clears the graph of all data.