Appearance
@shbernal/pptxgenjs / index / SlideRelChart
Interface: SlideRelChart
Defined in: core-interfaces.ts:2905
Extends
Properties
_dataIndex?
optional_dataIndex?:number
Defined in: core-interfaces.ts:2202
Inherited from
customLabels?
optionalcustomLabels?:string[]
Defined in: core-interfaces.ts:2231
Custom text label per data point, replacing the auto-generated value label. Index aligns with values[]. Empty string or missing entries fall back to the chart-level label settings. Supported for BAR, LINE, AREA, RADAR, PIE, and DOUGHNUT chart types.
Example
ts
['Low', '', 'High'] // only points 0 and 2 get custom labelsInherited from
data
data:
OptsChartDataInternal[]
Defined in: core-interfaces.ts:2908
errorBars?
optionalerrorBars?:ChartErrorBarOptions|ChartErrorBarOptions[]
Defined in: core-interfaces.ts:2252
Error bars for this series (<c:errBars>).
- Supported for BAR, BAR3D, LINE, AREA, and SCATTER chart types (RADAR has no error bars in the schema).
- Pass a single config, or an array to draw both X and Y error bars (SCATTER/AREA only; BAR/LINE use the first entry).
Examples
ts
{ valueType: 'percentage', value: 5 } // ±5% error barsts
{ valueType: 'fixedVal', value: 2, barType: 'plus', noEndCap: true }ts
{ valueType: 'cust', plusValues: [1, 2, 1], minusValues: [0.5, 1, 0.5] }Inherited from
fileName
fileName:
string
Defined in: core-interfaces.ts:2913
globalId
globalId:
number
Defined in: core-interfaces.ts:2912
labels?
optionallabels?:string[] |string[][]
Defined in: core-interfaces.ts:2209
category labels
Examples
ts
['Year 2000', 'Year 2010', 'Year 2020'] // single-level category axes labelsts
[['Year 2000', 'Year 2010', 'Year 2020'], ['Decades', '', '']] // multi-level category axes labelsInherited from
name?
optionalname?:string
Defined in: core-interfaces.ts:2214
series name
Example
ts
'Locations'Inherited from
opts
opts:
ChartOptsInternal
Defined in: core-interfaces.ts:2907
pointStyles?
optionalpointStyles?:ChartDataPointStyle[]
Defined in: core-interfaces.ts:2243
Per-data-point visual overrides (border / fill), index-aligned with values[]. Empty ({}) or missing entries fall back to series/chart styling. Supported for BAR, LINE, AREA, SCATTER, PIE, and DOUGHNUT chart types.
Example
ts
pointStyles: [
{ border: { width: 2, color: 'FF0000' } }, // point 0: red 2pt border
{}, // point 1: default
{ fill: '00B050', border: { type: 'dash', color: '404040' } }, // point 2
]Inherited from
rId
rId:
number
Defined in: core-interfaces.ts:2910
sizes?
optionalsizes?:number[]
Defined in: core-interfaces.ts:2219
bubble sizes
Example
ts
[5, 1, 5, 1]Inherited from
Target
Target:
string
Defined in: core-interfaces.ts:2911
type
type:
"area"|"line"|"pie"|"bar"|"bar3D"|"bubble"|"bubble3D"|"doughnut"|"radar"|"scatter"|ChartMulti[]
Defined in: core-interfaces.ts:2906
values?
optionalvalues?:number[]
Defined in: core-interfaces.ts:2224
category values
Example
ts
[2000, 2010, 2020]