Switch between line and bar line on chart failed