fix chart display beyond bug