Updated graph

Turned Ajax call to function to call web service once selected time