Bringing chart to global scope.

* Brought chart variable to global scope.