Removed dependence of session object

Removed the dependence on the session object when creating the chart by
passing in the location key