对指定数据系列应用误差线。Variant 类型。
expression.ErrorBar(Direction, Include, Type, Amount, MinusValues)
expression 必需。该表达式返回“应用于”列表中的对象之一。
Direction XlErrorBarDirection 类型,必需。误差线方向。
| XlErrorBarDirection 可为以下 XlErrorBarDirection 常量之一。 |
| xlX 只可与散点图一起使用。 |
| xlY 默认值。 |
Include XlErrorBarInclude 类型,必需。指定要包括的误差线部分。
| XlErrorBarInclude 可为以下 XlErrorBarInclude 常量之一。 |
| xlErrorBarIncludeBoth 默认。 |
| xlErrorBarIncludeMinusValues |
| xlErrorBarIncludeNone |
| xlErrorBarIncludePlusValues |
Type XlErrorBarType 类型,必需。误差线类型。
| XlErrorBarType 可为以下 XlErrorBarType 常量之一。 |
| xlErrorBarTypeCustom |
| xlErrorBarTypeFixedValue |
| xlErrorBarTypePercent |
| xlErrorBarTypeStDev |
| xlErrorBarTypeStError |
Amount Variant 类型,可选。误差量。当 Type 为 xlErrorBarTypeCustom 时,该值只用于正误差量。
MinusValues Variant 类型,可选。当 Type 为 xlErrorBarTypeCustom 时的负误差量。
本示例对第一个数据系列应用 Y 方向的标准误差线。该误差线既包括正误差,也包括负误差。本示例应在二维折线图上运行。
myChart.SeriesCollection(1).ErrorBar _
Direction:=xlY, Include:=xlErrorBarIncludeBoth, _
Type:=xlErrorBarTypeStError