fix chart can't display