Interface: ChartErrorBarOptions
Error-bar configuration for a chart series (<c:errBars>). Maps onto OOXML CT_ErrBars (errDir / errBarType / errValType / noEndCap / plus / minus / val).
Extends
Properties
barType?
optionalbarType?:"both"|"plus"|"minus"
Which sides of each marker draw a bar.
Default
ts
'both'cap?
optionalcap?:LineCap
Line end cap style
Default
ts
'flat'Inherited from
color?
optionalcolor?:string
Stroke colour: a 6-digit hex RGB or a SchemeColor token.
Examples
ts
'FF3399'ts
SchemeColor.accent1Inherited from
dashType?
optionaldashType?:"dash"|"solid"|"dot"|"lgDash"|"dashDot"|"lgDashDot"|"lgDashDotDot"|"sysDash"|"sysDot"|"sysDashDot"|"sysDashDotDot"
Dash pattern, over the full ST_PresetLineDashVal set, so any dash a source deck can carry can also be authored.
type is only a coarse three-way switch, so every dashed stroke it can express collapses onto sysDash. Set this to pick the exact a:prstDash preset instead: dashType: 'lgDashDot' emits <a:prstDash val="lgDashDot"/>.
Precedence. When both are set, dashType wins over type for the dash pattern: { type: 'solid', dashType: 'sysDot' } draws a dotted rule. The one exception is type: 'none', which suppresses the stroke entirely and is decided before any dash pattern is chosen. An unrecognized value warns and falls back to what type implies.
Example
ts
{ type: 'solid', color: '999999', dashType: 'lgDash' }Inherited from
direction?
optionaldirection?:"x"|"y"
Axis the error bars measure along.
'y'(the value axis) for BAR/BAR3D/LINE/AREA; SCATTER may also use'x'.
Default
ts
'y'minusValues?
optionalminusValues?:number[]
Per-point negative magnitudes; required when valueType === 'cust' (unless barType: 'plus'). Index-aligned with values[].
noEndCap?
optionalnoEndCap?:boolean
Hide the perpendicular end caps.
Default
ts
falseplusValues?
optionalplusValues?:number[]
Per-point positive magnitudes; required when valueType === 'cust' (unless barType: 'minus'). Index-aligned with values[].
size?
optionalsize?:number
Error-bar line width (points).
Deprecated
Use StrokeProps.width. width wins when both are set.
transparency?
optionaltransparency?:number
Stroke transparency (percent, 0-100).
- MS-PPT > Format Shape > Fill & Line > Line > Transparency
Default
ts
0Inherited from
type?
optionaltype?:"none"|"dash"|"solid"
Coarse three-way switch: 'none' suppresses the stroke, 'dash' asks for a dashed one, 'solid' for an unbroken one.
Inherited from
value?
optionalvalue?:number
Magnitude for 'fixedVal', 'percentage', or 'stdDev'. Ignored for 'stdErr' and 'cust'.
- a finite number;
NaNorInfinitythrows
Default
ts
1valueType?
optionalvalueType?:"cust"|"fixedVal"|"percentage"|"stdDev"|"stdErr"
How value (or plusValues/minusValues) is interpreted.
'fixedVal': fixed amount in axis units'percentage': percent of each value (e.g.value: 5→ ±5%)'stdDev':valuestandard deviations'stdErr': standard error (ignoresvalue)'cust': explicit per-point amounts viaplusValues/minusValues
Default
ts
'fixedVal'width?
optionalwidth?:number
Stroke width, in points.
- MS-PPT > Format Shape > Fill & Line > Line > Width