Two clarifications to the previous solutions:
1) it is easier to create a BD constant and make it an empty array to clear the history of a Chart.
2) To clear a graph, wire an EMPTY array, again, this can be created by creating a BD constant (just make sure it is empty!)
In both cases, make sure the chart or graph contains the data type you will be writing to the graph before creating the constants.
Regards,
Doug Wilson