對指定數(shù)據(jù)系列應(yīng)用誤差線。Variant 類型。
expression.ErrorBar(Direction, Include, Type, Amount, MinusValues)
expression 必需。該表達式返回“應(yīng)用于”列表中的對象之一。
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 時的負誤差量。
本示例對第一個數(shù)據(jù)系列應(yīng)用 Y 方向的標準誤差線。該誤差線既包括正誤差,也包括負誤差。本示例應(yīng)在二維折線圖上運行。
myChart.SeriesCollection(1).ErrorBar _
Direction:=xlY, Include:=xlErrorBarIncludeBoth, _
Type:=xlErrorBarTypeStError