changed ng-if to ng-show for graphs, error will still occur