fix totals_graph to use total_credit where available
fix totals_graph to use total_credit where available