VICTORY!

ITS WORKING at least! Graphs are also made with all the proper stuff (legend, labels)