Wrote function for sent from server chart type
Wrote final chart function (for now) + corrected some errors in testData objects
Refactor