Generalizing function to call graphs
Adding titles and vertical bargraph
Adding getScale function for horizontal and vertical graphs