fixed async control flow
simplified chart callbacks using $.Callbacks