added legend to bottom of graph
 was returning entries with dates unsorted. dates are now sorted