returns an array with history data
added #graph
history graph now displays with actual data