about to make some changes to take advantage of the deferred api
working version of the chart that can display in a graph the data that is returned by the db query