Lots of refactoring. Made the chart config graph more angular.