對指定數(shù)據(jù)系列應(yīng)用誤差線。Variant 類型。
expression.ErrorBar(Direction, Include, Type, Amount, MinusValues)
expression 必需。該表達(dá)式返回“應(yīng)用于”列表中的對象之一。
Direction XlErrorBarDirection 類型,必需。誤差線方向。
XlErrorBarDirection 可為以下 XlErrorBarDirection 常量之一。 |
xlX 只可與散點(diǎn)圖一起使用。 |
xlY 默認(rèn)值。 |
Include XlErrorBarInclude 類型,必需。指定要包括的誤差線部分。
XlErrorBarInclude 可為以下 XlErrorBarInclude 常量之一。 |
xlErrorBarIncludeBoth 默認(rèn)。 |
xlErrorBarIncludeMinusValues |
xlErrorBarIncludeNone |
xlErrorBarIncludePlusValues |
Type XlErrorBarType 類型,必需。誤差線類型。
XlErrorBarType 可為以下 XlErrorBarType 常量之一。 |
xlErrorBarTypeCustom |
xlErrorBarTypeFixedValue |
xlErrorBarTypePercent |
xlErrorBarTypeStDev |
xlErrorBarTypeStError |
Amount Variant 類型,可選。誤差量。當(dāng) Type 為 xlErrorBarTypeCustom 時(shí),該值只用于正誤差量。
MinusValues Variant 類型,可選。當(dāng) Type 為 xlErrorBarTypeCustom 時(shí)的負(fù)誤差量。
本示例對第一個數(shù)據(jù)系列應(yīng)用 Y 方向的標(biāo)準(zhǔn)誤差線。該誤差線既包括正誤差,也包括負(fù)誤差。本示例應(yīng)在二維折線圖上運(yùn)行。
myChart.SeriesCollection(1).ErrorBar _
Direction:=xlY, Include:=xlErrorBarIncludeBoth, _
Type:=xlErrorBarTypeStError