Defined API for new graph widget and for functions that add data to the graph.