Refactored graph component and added support for drawing constraints
Made charts display when switching tabs
Made charts display when switching tabs