Visualization for physics analysis improvement and applications in BESIII