Set include type and end cap type

Refer to the following example code to see how to configure include type and end cap type of error bar.