@office-kit/xlsx 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +319 -0
- package/THIRD_PARTY_NOTICES.md +56 -0
- package/dist/cell/cell.d.ts +234 -0
- package/dist/cell/index.d.ts +4 -0
- package/dist/cell/rich-text.d.ts +37 -0
- package/dist/cell-D9CaNKnU.mjs +320 -0
- package/dist/cell-D9CaNKnU.mjs.map +1 -0
- package/dist/cell-style-BEDjMX1y.mjs +1579 -0
- package/dist/cell-style-BEDjMX1y.mjs.map +1 -0
- package/dist/cell.mjs +2 -0
- package/dist/chart/chart-xml.d.ts +16 -0
- package/dist/chart/chart.d.ts +735 -0
- package/dist/chart/cx/chartex-xml.d.ts +6 -0
- package/dist/chart/cx/chartex.d.ts +279 -0
- package/dist/chart/index.d.ts +6 -0
- package/dist/chart/user-shapes-xml.d.ts +4 -0
- package/dist/chart/user-shapes.d.ts +61 -0
- package/dist/chart.mjs +232 -0
- package/dist/chart.mjs.map +1 -0
- package/dist/chartsheet/chartsheet-xml.d.ts +17 -0
- package/dist/chartsheet/chartsheet.d.ts +121 -0
- package/dist/chartsheet/index.d.ts +2 -0
- package/dist/chartsheet-C3-tqkPy.mjs +23 -0
- package/dist/chartsheet-C3-tqkPy.mjs.map +1 -0
- package/dist/chartsheet.mjs +2 -0
- package/dist/colors-ovWAwnZI.mjs +67 -0
- package/dist/colors-ovWAwnZI.mjs.map +1 -0
- package/dist/compat/numbers.d.ts +14 -0
- package/dist/coordinate-96Ecci4d.mjs +276 -0
- package/dist/coordinate-96Ecci4d.mjs.map +1 -0
- package/dist/datetime-B2ySVlXt.mjs +71 -0
- package/dist/datetime-B2ySVlXt.mjs.map +1 -0
- package/dist/defined-names-CviWmtQg.mjs +89 -0
- package/dist/defined-names-CviWmtQg.mjs.map +1 -0
- package/dist/differential-D4dg-qtZ.mjs +37 -0
- package/dist/differential-D4dg-qtZ.mjs.map +1 -0
- package/dist/drawing/anchor.d.ts +63 -0
- package/dist/drawing/dml/colors.d.ts +109 -0
- package/dist/drawing/dml/dml-xml.d.ts +35 -0
- package/dist/drawing/dml/effect.d.ts +92 -0
- package/dist/drawing/dml/fill.d.ts +115 -0
- package/dist/drawing/dml/geometry.d.ts +113 -0
- package/dist/drawing/dml/line.d.ts +41 -0
- package/dist/drawing/dml/shape-properties.d.ts +33 -0
- package/dist/drawing/dml/text.d.ts +218 -0
- package/dist/drawing/drawing-xml.d.ts +5 -0
- package/dist/drawing/drawing.d.ts +117 -0
- package/dist/drawing/image.d.ts +40 -0
- package/dist/drawing/index.d.ts +14 -0
- package/dist/drawing-BxzLuryn.mjs +415 -0
- package/dist/drawing-BxzLuryn.mjs.map +1 -0
- package/dist/drawing.mjs +119 -0
- package/dist/drawing.mjs.map +1 -0
- package/dist/escape-DFTE7ZJc.mjs +51 -0
- package/dist/escape-DFTE7ZJc.mjs.map +1 -0
- package/dist/exceptions-D-CFwxgm.mjs +37 -0
- package/dist/exceptions-D-CFwxgm.mjs.map +1 -0
- package/dist/formula/tokenizer.d.ts +61 -0
- package/dist/formula/translate.d.ts +67 -0
- package/dist/inference-B3ES3KEJ.mjs +42 -0
- package/dist/inference-B3ES3KEJ.mjs.map +1 -0
- package/dist/io/browser.d.ts +41 -0
- package/dist/io/index.d.ts +7 -0
- package/dist/io/load.d.ts +46 -0
- package/dist/io/node-fs.d.ts +62 -0
- package/dist/io/node-save.d.ts +3 -0
- package/dist/io/node.d.ts +17 -0
- package/dist/io/save.d.ts +14 -0
- package/dist/io/sink.d.ts +54 -0
- package/dist/io/source.d.ts +14 -0
- package/dist/io.mjs +212 -0
- package/dist/io.mjs.map +1 -0
- package/dist/load-D5cbhoGx.mjs +1069 -0
- package/dist/load-D5cbhoGx.mjs.map +1 -0
- package/dist/manifest-Dps1-OpP.mjs +801 -0
- package/dist/manifest-Dps1-OpP.mjs.map +1 -0
- package/dist/node.d.ts +3 -0
- package/dist/node.mjs +308 -0
- package/dist/node.mjs.map +1 -0
- package/dist/packaging/core.d.ts +45 -0
- package/dist/packaging/custom.d.ts +62 -0
- package/dist/packaging/extended.d.ts +45 -0
- package/dist/packaging/index.d.ts +10 -0
- package/dist/packaging/manifest.d.ts +24 -0
- package/dist/packaging/relationships.d.ts +30 -0
- package/dist/packaging.mjs +2 -0
- package/dist/parser-DuLejQy1.mjs +156 -0
- package/dist/parser-DuLejQy1.mjs.map +1 -0
- package/dist/reader-D1fNW9k1.mjs +534 -0
- package/dist/reader-D1fNW9k1.mjs.map +1 -0
- package/dist/save-RohQtgEZ.mjs +745 -0
- package/dist/save-RohQtgEZ.mjs.map +1 -0
- package/dist/schema/core.d.ts +133 -0
- package/dist/schema/index.d.ts +3 -0
- package/dist/schema/serialize.d.ts +6 -0
- package/dist/schema.mjs +2 -0
- package/dist/serialize-55EnT30e.mjs +254 -0
- package/dist/serialize-55EnT30e.mjs.map +1 -0
- package/dist/serializer-BwbgHYJV.mjs +116 -0
- package/dist/serializer-BwbgHYJV.mjs.map +1 -0
- package/dist/streaming/index.d.ts +2 -0
- package/dist/streaming/read-only.d.ts +38 -0
- package/dist/streaming/write-only.d.ts +47 -0
- package/dist/streaming.mjs +612 -0
- package/dist/streaming.mjs.map +1 -0
- package/dist/styles/alignment.d.ts +33 -0
- package/dist/styles/alignment.schema.d.ts +3 -0
- package/dist/styles/borders.d.ts +40 -0
- package/dist/styles/borders.schema.d.ts +4 -0
- package/dist/styles/cell-style.d.ts +270 -0
- package/dist/styles/colors.d.ts +128 -0
- package/dist/styles/colors.schema.d.ts +3 -0
- package/dist/styles/differential.d.ts +41 -0
- package/dist/styles/fills.d.ts +54 -0
- package/dist/styles/fills.schema.d.ts +6 -0
- package/dist/styles/fonts.d.ts +44 -0
- package/dist/styles/fonts.schema.d.ts +3 -0
- package/dist/styles/index.d.ts +21 -0
- package/dist/styles/named-styles.d.ts +52 -0
- package/dist/styles/numbers.d.ts +39 -0
- package/dist/styles/numbers.schema.d.ts +3 -0
- package/dist/styles/protection.d.ts +9 -0
- package/dist/styles/protection.schema.d.ts +3 -0
- package/dist/styles/stylesheet-reader.d.ts +7 -0
- package/dist/styles/stylesheet-writer.d.ts +3 -0
- package/dist/styles/stylesheet.d.ts +95 -0
- package/dist/styles.mjs +4 -0
- package/dist/stylesheet-writer-C2eRmn22.mjs +8624 -0
- package/dist/stylesheet-writer-C2eRmn22.mjs.map +1 -0
- package/dist/table-DkX6UniA.mjs +113 -0
- package/dist/table-DkX6UniA.mjs.map +1 -0
- package/dist/tree-Bbs1C8Rc.mjs +192 -0
- package/dist/tree-Bbs1C8Rc.mjs.map +1 -0
- package/dist/units-rOMQqXh2.mjs +41 -0
- package/dist/units-rOMQqXh2.mjs.map +1 -0
- package/dist/user-shapes-DfmCGKB0.mjs +252 -0
- package/dist/user-shapes-DfmCGKB0.mjs.map +1 -0
- package/dist/utf8-D91g1XTG.mjs +143 -0
- package/dist/utf8-D91g1XTG.mjs.map +1 -0
- package/dist/utils/coordinate.d.ts +103 -0
- package/dist/utils/css.d.ts +18 -0
- package/dist/utils/datetime.d.ts +38 -0
- package/dist/utils/escape.d.ts +34 -0
- package/dist/utils/exceptions.d.ts +34 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/inference.d.ts +24 -0
- package/dist/utils/stable-stringify.d.ts +7 -0
- package/dist/utils/units.d.ts +14 -0
- package/dist/utils/utf8.d.ts +1 -0
- package/dist/utils.mjs +39 -0
- package/dist/utils.mjs.map +1 -0
- package/dist/workbook/calc-properties.d.ts +47 -0
- package/dist/workbook/defined-names.d.ts +121 -0
- package/dist/workbook/file-recovery.d.ts +11 -0
- package/dist/workbook/file-sharing.d.ts +14 -0
- package/dist/workbook/file-version.d.ts +13 -0
- package/dist/workbook/function-groups.d.ts +10 -0
- package/dist/workbook/index.d.ts +24 -0
- package/dist/workbook/protection.d.ts +35 -0
- package/dist/workbook/shared-strings.d.ts +57 -0
- package/dist/workbook/smart-tags.d.ts +13 -0
- package/dist/workbook/views.d.ts +89 -0
- package/dist/workbook/workbook-properties.d.ts +57 -0
- package/dist/workbook/workbook.d.ts +643 -0
- package/dist/workbook-HGYNRBlV.mjs +636 -0
- package/dist/workbook-HGYNRBlV.mjs.map +1 -0
- package/dist/workbook.mjs +58 -0
- package/dist/workbook.mjs.map +1 -0
- package/dist/worksheet/auto-filter.d.ts +34 -0
- package/dist/worksheet/cell-range.d.ts +121 -0
- package/dist/worksheet/comments-xml.d.ts +24 -0
- package/dist/worksheet/comments.d.ts +13 -0
- package/dist/worksheet/conditional-formatting.d.ts +150 -0
- package/dist/worksheet/custom-sheet-views.d.ts +43 -0
- package/dist/worksheet/data-consolidate.d.ts +29 -0
- package/dist/worksheet/data-validations.d.ts +72 -0
- package/dist/worksheet/dimensions.d.ts +40 -0
- package/dist/worksheet/errors.d.ts +40 -0
- package/dist/worksheet/hyperlinks.d.ts +42 -0
- package/dist/worksheet/index.d.ts +46 -0
- package/dist/worksheet/ole-objects.d.ts +37 -0
- package/dist/worksheet/page-setup.d.ts +173 -0
- package/dist/worksheet/phonetic.d.ts +11 -0
- package/dist/worksheet/properties.d.ts +34 -0
- package/dist/worksheet/protected-ranges.d.ts +19 -0
- package/dist/worksheet/protection.d.ts +44 -0
- package/dist/worksheet/reader.d.ts +38 -0
- package/dist/worksheet/scenarios.d.ts +36 -0
- package/dist/worksheet/smart-tags.d.ts +23 -0
- package/dist/worksheet/sort-state.d.ts +28 -0
- package/dist/worksheet/table-xml.d.ts +5 -0
- package/dist/worksheet/table.d.ts +80 -0
- package/dist/worksheet/views.d.ts +47 -0
- package/dist/worksheet/web-publish.d.ts +21 -0
- package/dist/worksheet/worksheet.d.ts +935 -0
- package/dist/worksheet/writer.d.ts +72 -0
- package/dist/worksheet-CmCNoIgD.mjs +1726 -0
- package/dist/worksheet-CmCNoIgD.mjs.map +1 -0
- package/dist/worksheet.mjs +247 -0
- package/dist/worksheet.mjs.map +1 -0
- package/dist/writer-DspzfkNA.mjs +221 -0
- package/dist/writer-DspzfkNA.mjs.map +1 -0
- package/dist/xml/index.d.ts +10 -0
- package/dist/xml/iterparse.d.ts +22 -0
- package/dist/xml/namespaces.d.ts +91 -0
- package/dist/xml/parser.d.ts +7 -0
- package/dist/xml/serializer.d.ts +14 -0
- package/dist/xml/stream-writer.d.ts +39 -0
- package/dist/xml/tree.d.ts +37 -0
- package/dist/xml.mjs +140 -0
- package/dist/xml.mjs.map +1 -0
- package/dist/zip/decompression-guard.d.ts +70 -0
- package/dist/zip/index.d.ts +6 -0
- package/dist/zip/random-access-reader.d.ts +16 -0
- package/dist/zip/reader.d.ts +45 -0
- package/dist/zip/writer.d.ts +65 -0
- package/dist/zip/zip64-patch.d.ts +12 -0
- package/dist/zip.mjs +3 -0
- package/package.json +147 -0
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
import type { ShapeProperties } from '../drawing/dml/shape-properties';
|
|
2
|
+
import type { TextBody } from '../drawing/dml/text';
|
|
3
|
+
import type { ChartDrawing } from './user-shapes';
|
|
4
|
+
export type LegendPosition = 'r' | 't' | 'l' | 'b' | 'tr';
|
|
5
|
+
export type GroupingType = 'clustered' | 'stacked' | 'percentStacked' | 'standard';
|
|
6
|
+
export type BarDirection = 'bar' | 'col';
|
|
7
|
+
/** Reference to a worksheet range plus an optional client-side cache of the resolved values. */
|
|
8
|
+
export interface NumericRef {
|
|
9
|
+
/** Worksheet-qualified range string, e.g. `Sheet1!$B$1:$B$5`. */
|
|
10
|
+
ref: string;
|
|
11
|
+
/** Optional cached numeric values — Excel writes these for offline rendering. */
|
|
12
|
+
cache?: number[];
|
|
13
|
+
/** Optional `formatCode` Excel uses when rendering each cached value. */
|
|
14
|
+
formatCode?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CategoryRef {
|
|
17
|
+
ref: string;
|
|
18
|
+
/** Whether the cache is numeric or string. */
|
|
19
|
+
cacheKind?: 'num' | 'str';
|
|
20
|
+
/** String values (when `cacheKind === 'str'`) or numeric values. */
|
|
21
|
+
cache?: ReadonlyArray<string | number>;
|
|
22
|
+
formatCode?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Number-format payload for chart axes / data labels (`<c:numFmt formatCode="…"
|
|
26
|
+
* sourceLinked="0|1"/>`).
|
|
27
|
+
*
|
|
28
|
+
* Named `ChartNumberFormat` to avoid colliding with the cell-stylesheet
|
|
29
|
+
* `NumberFormat` exported from `@office-kit/xlsx/styles`, which is a different shape
|
|
30
|
+
* (`{ numFmtId, formatCode }`).
|
|
31
|
+
*/
|
|
32
|
+
export interface ChartNumberFormat {
|
|
33
|
+
formatCode: string;
|
|
34
|
+
sourceLinked?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export type DataLabelPosition = 'bestFit' | 'b' | 'ctr' | 'inBase' | 'inEnd' | 'l' | 'outEnd' | 'r' | 't';
|
|
37
|
+
/** Per-point data label override. Lives inside `<c:dLbls><c:dLbl idx="N">…</c:dLbl></c:dLbls>`. */
|
|
38
|
+
export interface DataLabel {
|
|
39
|
+
idx: number;
|
|
40
|
+
/** Delete this individual label (suppresses display even if the parent dLbls would show it). */
|
|
41
|
+
delete?: boolean;
|
|
42
|
+
/** Inline rich text or a cell reference. Mutually exclusive. */
|
|
43
|
+
tx?: {
|
|
44
|
+
kind: 'rich';
|
|
45
|
+
body: TextBody;
|
|
46
|
+
} | {
|
|
47
|
+
kind: 'strRef';
|
|
48
|
+
ref: string;
|
|
49
|
+
};
|
|
50
|
+
numFmt?: ChartNumberFormat;
|
|
51
|
+
spPr?: ShapeProperties;
|
|
52
|
+
txPr?: TextBody;
|
|
53
|
+
dLblPos?: DataLabelPosition;
|
|
54
|
+
showLegendKey?: boolean;
|
|
55
|
+
showVal?: boolean;
|
|
56
|
+
showCatName?: boolean;
|
|
57
|
+
showSerName?: boolean;
|
|
58
|
+
showPercent?: boolean;
|
|
59
|
+
showBubbleSize?: boolean;
|
|
60
|
+
separator?: string;
|
|
61
|
+
}
|
|
62
|
+
/** Series-wide data label settings. `<c:dLbls>` element. */
|
|
63
|
+
export interface DataLabelList {
|
|
64
|
+
/** When true, suppress all labels (`<c:delete val="1"/>`). */
|
|
65
|
+
delete?: boolean;
|
|
66
|
+
/** Per-point overrides. */
|
|
67
|
+
dLbl?: DataLabel[];
|
|
68
|
+
numFmt?: ChartNumberFormat;
|
|
69
|
+
spPr?: ShapeProperties;
|
|
70
|
+
txPr?: TextBody;
|
|
71
|
+
dLblPos?: DataLabelPosition;
|
|
72
|
+
showLegendKey?: boolean;
|
|
73
|
+
showVal?: boolean;
|
|
74
|
+
showCatName?: boolean;
|
|
75
|
+
showSerName?: boolean;
|
|
76
|
+
showPercent?: boolean;
|
|
77
|
+
showBubbleSize?: boolean;
|
|
78
|
+
separator?: string;
|
|
79
|
+
showLeaderLines?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export type MarkerSymbol = 'auto' | 'circle' | 'dash' | 'diamond' | 'dot' | 'none' | 'picture' | 'plus' | 'square' | 'star' | 'triangle' | 'x';
|
|
82
|
+
/** Data-point marker on line / scatter / radar series (`<c:marker>` child of `<c:ser>`). */
|
|
83
|
+
export interface Marker {
|
|
84
|
+
symbol?: MarkerSymbol;
|
|
85
|
+
/** Marker size in points (2..72). */
|
|
86
|
+
size?: number;
|
|
87
|
+
spPr?: ShapeProperties;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Per-point override on a series (`<c:dPt>` child of `<c:ser>`). Lets each bar
|
|
91
|
+
* / slice / data point pick up its own colour, marker, explosion, etc.
|
|
92
|
+
*/
|
|
93
|
+
export interface DataPoint {
|
|
94
|
+
/** 0-based index of the data point within the series. */
|
|
95
|
+
idx: number;
|
|
96
|
+
/** Invert fill when the data point's value is negative (bar / area / bubble). */
|
|
97
|
+
invertIfNegative?: boolean;
|
|
98
|
+
/** Per-point marker override (line / scatter / radar). */
|
|
99
|
+
marker?: Marker;
|
|
100
|
+
/** 3-D bubble flag (bubble series only). */
|
|
101
|
+
bubble3D?: boolean;
|
|
102
|
+
/** Slice explosion in % for pie / doughnut points (0..400). */
|
|
103
|
+
explosion?: number;
|
|
104
|
+
/** Per-point shape properties (fill / line colour). */
|
|
105
|
+
spPr?: ShapeProperties;
|
|
106
|
+
}
|
|
107
|
+
export type TrendlineType = 'exp' | 'linear' | 'log' | 'movingAvg' | 'poly' | 'power';
|
|
108
|
+
export interface Trendline {
|
|
109
|
+
/** Display name shown in the chart legend (`<c:name>` text). */
|
|
110
|
+
name?: string;
|
|
111
|
+
spPr?: ShapeProperties;
|
|
112
|
+
trendlineType: TrendlineType;
|
|
113
|
+
/** Polynomial order (2..6) when `trendlineType === 'poly'`. */
|
|
114
|
+
order?: number;
|
|
115
|
+
/** Moving-average period when `trendlineType === 'movingAvg'`. */
|
|
116
|
+
period?: number;
|
|
117
|
+
/** Forecast forward periods. */
|
|
118
|
+
forward?: number;
|
|
119
|
+
/** Forecast backward periods. */
|
|
120
|
+
backward?: number;
|
|
121
|
+
/** Y-axis intercept (linear only). */
|
|
122
|
+
intercept?: number;
|
|
123
|
+
/** Display R² value on the chart. */
|
|
124
|
+
dispRSqr?: boolean;
|
|
125
|
+
/** Display the trendline equation. */
|
|
126
|
+
dispEq?: boolean;
|
|
127
|
+
}
|
|
128
|
+
export type ErrorBarDirection = 'x' | 'y';
|
|
129
|
+
export type ErrorBarType = 'both' | 'minus' | 'plus';
|
|
130
|
+
export type ErrorValType = 'cust' | 'fixedVal' | 'percentage' | 'stdDev' | 'stdErr';
|
|
131
|
+
export interface ErrorBars {
|
|
132
|
+
/** Direction. Required only on scatter / bubble series; bar / line / area imply `'y'`. */
|
|
133
|
+
errDir?: ErrorBarDirection;
|
|
134
|
+
errBarType: ErrorBarType;
|
|
135
|
+
errValType: ErrorValType;
|
|
136
|
+
noEndCap?: boolean;
|
|
137
|
+
/** Numeric magnitude for fixedVal / percentage / stdDev / stdErr. */
|
|
138
|
+
val?: number;
|
|
139
|
+
/** Custom plus-side data (NumericRef) — required when `errValType === 'cust'`. */
|
|
140
|
+
plus?: NumericRef;
|
|
141
|
+
/** Custom minus-side data (NumericRef) — required when `errValType === 'cust'`. */
|
|
142
|
+
minus?: NumericRef;
|
|
143
|
+
spPr?: ShapeProperties;
|
|
144
|
+
}
|
|
145
|
+
export interface BarSeries {
|
|
146
|
+
/** 0-based slot in the chart (`<c:idx>`). */
|
|
147
|
+
idx: number;
|
|
148
|
+
/** Render order (`<c:order>`). Usually equals `idx`. */
|
|
149
|
+
order: number;
|
|
150
|
+
/** Series title — either a static string or a cell reference. */
|
|
151
|
+
tx?: {
|
|
152
|
+
kind: 'literal';
|
|
153
|
+
value: string;
|
|
154
|
+
} | {
|
|
155
|
+
kind: 'ref';
|
|
156
|
+
ref: string;
|
|
157
|
+
};
|
|
158
|
+
/** Per-series shape properties (fill / line / effects). */
|
|
159
|
+
spPr?: ShapeProperties;
|
|
160
|
+
/** Invert fill on negative values (bar / line / area series). */
|
|
161
|
+
invertIfNegative?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Slice explosion in % (pie / doughnut series only; 0..400). Bar / line / area writers
|
|
164
|
+
* ignore the field — leave it unset for those series.
|
|
165
|
+
*/
|
|
166
|
+
explosion?: number;
|
|
167
|
+
/** Per-point overrides. Empty / omitted means every point inherits the series defaults. */
|
|
168
|
+
dPt?: DataPoint[];
|
|
169
|
+
/** Series-wide data labels. */
|
|
170
|
+
dLbls?: DataLabelList;
|
|
171
|
+
/** Trendlines attached to this series. */
|
|
172
|
+
trendline?: Trendline[];
|
|
173
|
+
/** Error bars. Bar / line / area / radar default to a single y-direction entry. */
|
|
174
|
+
errBars?: ErrorBars[];
|
|
175
|
+
/** Categories. */
|
|
176
|
+
cat?: CategoryRef;
|
|
177
|
+
/** Values (always required for a bar series). */
|
|
178
|
+
val: NumericRef;
|
|
179
|
+
}
|
|
180
|
+
export interface BarChart {
|
|
181
|
+
kind: 'bar';
|
|
182
|
+
/** `bar` for horizontal bars, `col` for vertical columns. */
|
|
183
|
+
barDir: BarDirection;
|
|
184
|
+
/** Excel default is `clustered`. */
|
|
185
|
+
grouping: GroupingType;
|
|
186
|
+
varyColors?: boolean;
|
|
187
|
+
series: BarSeries[];
|
|
188
|
+
/** Bar gap width in % of bar width (Excel default 150). */
|
|
189
|
+
gapWidth?: number;
|
|
190
|
+
/**
|
|
191
|
+
* Bar overlap in -100..100 % of bar width. Positive values overlap clustered bars; negative values
|
|
192
|
+
* space them apart. For stacked / percentStacked grouping, omit and the serializer emits the
|
|
193
|
+
* standard Excel default of 100 (flush stacking).
|
|
194
|
+
*/
|
|
195
|
+
overlap?: number;
|
|
196
|
+
/** Internal axis ids. The category and value axes carry the same numbers. */
|
|
197
|
+
axIds: [number, number];
|
|
198
|
+
}
|
|
199
|
+
export interface LineSeries extends BarSeries {
|
|
200
|
+
/** Per-series smoothing toggle. */
|
|
201
|
+
smooth?: boolean;
|
|
202
|
+
/** Data-point marker (`<c:marker>` child of `<c:ser>`). */
|
|
203
|
+
marker?: Marker;
|
|
204
|
+
}
|
|
205
|
+
export interface LineChart {
|
|
206
|
+
kind: 'line';
|
|
207
|
+
grouping: GroupingType;
|
|
208
|
+
varyColors?: boolean;
|
|
209
|
+
series: LineSeries[];
|
|
210
|
+
/** Whether to round corners between data points (chart-level default). */
|
|
211
|
+
smooth?: boolean;
|
|
212
|
+
axIds: [number, number];
|
|
213
|
+
}
|
|
214
|
+
export interface AreaChart {
|
|
215
|
+
kind: 'area';
|
|
216
|
+
grouping: GroupingType;
|
|
217
|
+
varyColors?: boolean;
|
|
218
|
+
series: BarSeries[];
|
|
219
|
+
axIds: [number, number];
|
|
220
|
+
}
|
|
221
|
+
export interface PieChart {
|
|
222
|
+
kind: 'pie';
|
|
223
|
+
varyColors?: boolean;
|
|
224
|
+
/** Pie / Doughnut have a single ring of slices — but Excel allows multiple series; we mirror that. */
|
|
225
|
+
series: BarSeries[];
|
|
226
|
+
}
|
|
227
|
+
export interface DoughnutChart {
|
|
228
|
+
kind: 'doughnut';
|
|
229
|
+
varyColors?: boolean;
|
|
230
|
+
series: BarSeries[];
|
|
231
|
+
/** Hole size in % of outer radius (10..90, Excel default 50). */
|
|
232
|
+
holeSize?: number;
|
|
233
|
+
/** First-slice rotation angle in degrees. */
|
|
234
|
+
firstSliceAng?: number;
|
|
235
|
+
}
|
|
236
|
+
export type ScatterStyle = 'line' | 'lineMarker' | 'marker' | 'none' | 'smooth' | 'smoothMarker';
|
|
237
|
+
export interface ScatterSeries {
|
|
238
|
+
idx: number;
|
|
239
|
+
order: number;
|
|
240
|
+
tx?: BarSeries['tx'];
|
|
241
|
+
spPr?: ShapeProperties;
|
|
242
|
+
dPt?: DataPoint[];
|
|
243
|
+
dLbls?: DataLabelList;
|
|
244
|
+
trendline?: Trendline[];
|
|
245
|
+
/** Up to 2 entries (one per direction). */
|
|
246
|
+
errBars?: ErrorBars[];
|
|
247
|
+
/** Data-point marker. */
|
|
248
|
+
marker?: Marker;
|
|
249
|
+
xVal?: NumericRef;
|
|
250
|
+
yVal: NumericRef;
|
|
251
|
+
smooth?: boolean;
|
|
252
|
+
}
|
|
253
|
+
export interface ScatterChart {
|
|
254
|
+
kind: 'scatter';
|
|
255
|
+
scatterStyle: ScatterStyle;
|
|
256
|
+
varyColors?: boolean;
|
|
257
|
+
series: ScatterSeries[];
|
|
258
|
+
axIds: [number, number];
|
|
259
|
+
}
|
|
260
|
+
export type RadarStyle = 'standard' | 'marker' | 'filled';
|
|
261
|
+
export interface RadarChart {
|
|
262
|
+
kind: 'radar';
|
|
263
|
+
radarStyle: RadarStyle;
|
|
264
|
+
varyColors?: boolean;
|
|
265
|
+
series: BarSeries[];
|
|
266
|
+
axIds: [number, number];
|
|
267
|
+
}
|
|
268
|
+
export interface BubbleSeries {
|
|
269
|
+
idx: number;
|
|
270
|
+
order: number;
|
|
271
|
+
tx?: BarSeries['tx'];
|
|
272
|
+
spPr?: ShapeProperties;
|
|
273
|
+
invertIfNegative?: boolean;
|
|
274
|
+
dPt?: DataPoint[];
|
|
275
|
+
dLbls?: DataLabelList;
|
|
276
|
+
trendline?: Trendline[];
|
|
277
|
+
/** Up to 2 entries (one per direction). */
|
|
278
|
+
errBars?: ErrorBars[];
|
|
279
|
+
xVal?: NumericRef;
|
|
280
|
+
yVal: NumericRef;
|
|
281
|
+
/** Bubble size — required for a real bubble chart. */
|
|
282
|
+
bubbleSize: NumericRef;
|
|
283
|
+
/** Per-series 3-D toggle. */
|
|
284
|
+
bubble3D?: boolean;
|
|
285
|
+
}
|
|
286
|
+
export type BubbleSizeRepresents = 'area' | 'w';
|
|
287
|
+
export interface BubbleChart {
|
|
288
|
+
kind: 'bubble';
|
|
289
|
+
varyColors?: boolean;
|
|
290
|
+
series: BubbleSeries[];
|
|
291
|
+
bubble3D?: boolean;
|
|
292
|
+
/** Bubble scale 0..300 %. Excel default is 100. */
|
|
293
|
+
bubbleScale?: number;
|
|
294
|
+
showNegBubbles?: boolean;
|
|
295
|
+
sizeRepresents?: BubbleSizeRepresents;
|
|
296
|
+
axIds: [number, number];
|
|
297
|
+
}
|
|
298
|
+
/** `<c:hiLowLines>` child of stock charts. */
|
|
299
|
+
export interface HiLowLines {
|
|
300
|
+
spPr?: ShapeProperties;
|
|
301
|
+
}
|
|
302
|
+
/** `<c:upBars>` / `<c:downBars>` child frame styling. */
|
|
303
|
+
export interface BarFrame {
|
|
304
|
+
spPr?: ShapeProperties;
|
|
305
|
+
}
|
|
306
|
+
/** `<c:upDownBars>` child of stock charts. */
|
|
307
|
+
export interface UpDownBars {
|
|
308
|
+
/** Gap width 0..500 between up/down bars. Excel default is 150. */
|
|
309
|
+
gapWidth?: number;
|
|
310
|
+
upBars?: BarFrame;
|
|
311
|
+
downBars?: BarFrame;
|
|
312
|
+
}
|
|
313
|
+
export interface StockChart {
|
|
314
|
+
kind: 'stock';
|
|
315
|
+
/** Up to 4 series — typically open / high / low / close. */
|
|
316
|
+
series: BarSeries[];
|
|
317
|
+
/** Boolean flag for the simple `<c:hiLowLines/>` form, or an object with `spPr` for custom line styling. */
|
|
318
|
+
hiLowLines?: boolean | HiLowLines;
|
|
319
|
+
/** Boolean for the simple form, or an object with gapWidth / upBars / downBars detail. */
|
|
320
|
+
upDownBars?: boolean | UpDownBars;
|
|
321
|
+
axIds: [number, number];
|
|
322
|
+
}
|
|
323
|
+
export interface SurfaceChart {
|
|
324
|
+
kind: 'surface';
|
|
325
|
+
series: BarSeries[];
|
|
326
|
+
/** Wireframe (line-only) when true; smoothed surface fill when false. */
|
|
327
|
+
wireframe?: boolean;
|
|
328
|
+
/** Surfaces use 3 axes: cat + val + ser. */
|
|
329
|
+
axIds: [number, number, number];
|
|
330
|
+
}
|
|
331
|
+
export type OfPieType = 'bar' | 'pie';
|
|
332
|
+
export type SplitType = 'auto' | 'cust' | 'percent' | 'pos' | 'val';
|
|
333
|
+
export interface OfPieChart {
|
|
334
|
+
kind: 'ofPie';
|
|
335
|
+
/** `bar` for "Bar of Pie", `pie` for "Pie of Pie". */
|
|
336
|
+
ofPieType: OfPieType;
|
|
337
|
+
varyColors?: boolean;
|
|
338
|
+
series: BarSeries[];
|
|
339
|
+
gapWidth?: number;
|
|
340
|
+
splitType?: SplitType;
|
|
341
|
+
/** Position threshold paired with `splitType='pos'`. */
|
|
342
|
+
splitPos?: number;
|
|
343
|
+
/** Indices of data points moved to the secondary plot when `splitType='cust'`. */
|
|
344
|
+
custSplit?: number[];
|
|
345
|
+
/** Secondary plot size as % of primary (5..200). */
|
|
346
|
+
secondPieSize?: number;
|
|
347
|
+
}
|
|
348
|
+
export interface Bar3DChart {
|
|
349
|
+
kind: 'bar3D';
|
|
350
|
+
barDir: BarDirection;
|
|
351
|
+
grouping: GroupingType;
|
|
352
|
+
varyColors?: boolean;
|
|
353
|
+
series: BarSeries[];
|
|
354
|
+
gapWidth?: number;
|
|
355
|
+
/** Bar 3-D adds a `gapDepth` attribute. */
|
|
356
|
+
gapDepth?: number;
|
|
357
|
+
/** Cluster | percentStacked | stacked … plus 'standard' which 2-D doesn't take. */
|
|
358
|
+
shape?: 'cone' | 'coneToMax' | 'box' | 'cylinder' | 'pyramid' | 'pyramidToMax';
|
|
359
|
+
axIds: [number, number, number];
|
|
360
|
+
}
|
|
361
|
+
export interface Line3DChart {
|
|
362
|
+
kind: 'line3D';
|
|
363
|
+
grouping: GroupingType;
|
|
364
|
+
varyColors?: boolean;
|
|
365
|
+
series: LineSeries[];
|
|
366
|
+
gapDepth?: number;
|
|
367
|
+
axIds: [number, number, number];
|
|
368
|
+
}
|
|
369
|
+
export interface Pie3DChart {
|
|
370
|
+
kind: 'pie3D';
|
|
371
|
+
varyColors?: boolean;
|
|
372
|
+
series: BarSeries[];
|
|
373
|
+
}
|
|
374
|
+
export interface Area3DChart {
|
|
375
|
+
kind: 'area3D';
|
|
376
|
+
grouping: GroupingType;
|
|
377
|
+
varyColors?: boolean;
|
|
378
|
+
series: BarSeries[];
|
|
379
|
+
gapDepth?: number;
|
|
380
|
+
axIds: [number, number, number];
|
|
381
|
+
}
|
|
382
|
+
export interface Surface3DChart {
|
|
383
|
+
kind: 'surface3D';
|
|
384
|
+
series: BarSeries[];
|
|
385
|
+
wireframe?: boolean;
|
|
386
|
+
axIds: [number, number, number];
|
|
387
|
+
}
|
|
388
|
+
/** Discriminator union of all SpreadsheetML chart kinds modelled so far. */
|
|
389
|
+
export type ChartKind = BarChart | LineChart | AreaChart | PieChart | DoughnutChart | ScatterChart | RadarChart | BubbleChart | StockChart | SurfaceChart | OfPieChart | Bar3DChart | Line3DChart | Pie3DChart | Area3DChart | Surface3DChart;
|
|
390
|
+
export type TickMark = 'cross' | 'in' | 'none' | 'out';
|
|
391
|
+
export type TickLabelPosition = 'high' | 'low' | 'nextTo' | 'none';
|
|
392
|
+
export type AxisCrosses = 'autoZero' | 'max' | 'min';
|
|
393
|
+
export type AxisOrientation = 'maxMin' | 'minMax';
|
|
394
|
+
export type AxisCrossBetween = 'between' | 'midCat';
|
|
395
|
+
export type CategoryLabelAlignment = 'ctr' | 'l' | 'r';
|
|
396
|
+
/** `<c:scaling>` child of axes. */
|
|
397
|
+
export interface AxisScaling {
|
|
398
|
+
orientation?: AxisOrientation;
|
|
399
|
+
min?: number;
|
|
400
|
+
max?: number;
|
|
401
|
+
logBase?: number;
|
|
402
|
+
}
|
|
403
|
+
interface AxisShared {
|
|
404
|
+
axId: number;
|
|
405
|
+
/** Crosses partner axis id. */
|
|
406
|
+
crossAx: number;
|
|
407
|
+
position?: 'b' | 't' | 'l' | 'r';
|
|
408
|
+
delete?: boolean;
|
|
409
|
+
/** Axis-line / tick formatting. */
|
|
410
|
+
spPr?: ShapeProperties;
|
|
411
|
+
/** Tick-label text formatting. */
|
|
412
|
+
txPr?: TextBody;
|
|
413
|
+
/** Axis title (`<c:title>`). Reuses the chart-title structure. */
|
|
414
|
+
title?: ChartTitle;
|
|
415
|
+
/** Tick-label number format. Default emitted is `General` / `sourceLinked=1`. */
|
|
416
|
+
numFmt?: ChartNumberFormat;
|
|
417
|
+
/** Major tick mark style. Default emitted is `out`. */
|
|
418
|
+
majorTickMark?: TickMark;
|
|
419
|
+
/** Minor tick mark style. Default emitted is `none`. */
|
|
420
|
+
minorTickMark?: TickMark;
|
|
421
|
+
/** Tick-label position. Default emitted is `nextTo`. */
|
|
422
|
+
tickLblPos?: TickLabelPosition;
|
|
423
|
+
/** Axis scaling (`<c:scaling>`). Default emitted is `orientation: 'minMax'`. */
|
|
424
|
+
scaling?: AxisScaling;
|
|
425
|
+
/** `<c:crosses>`. Default emitted is `autoZero`. Mutually exclusive with `crossesAt`. */
|
|
426
|
+
crosses?: AxisCrosses;
|
|
427
|
+
/** `<c:crossesAt val="..."/>`. Numeric cross point on the partner axis. */
|
|
428
|
+
crossesAt?: number;
|
|
429
|
+
/**
|
|
430
|
+
* Major gridlines. `true` keeps Excel's default rendering; pass
|
|
431
|
+
* `{ spPr }` to override the line colour / width / dash. `false` /
|
|
432
|
+
* `undefined` omit the element entirely.
|
|
433
|
+
*/
|
|
434
|
+
majorGridlines?: boolean | Gridlines;
|
|
435
|
+
/** Minor gridlines. Same shape as {@link AxisShared.majorGridlines}. */
|
|
436
|
+
minorGridlines?: boolean | Gridlines;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Rich `<c:majorGridlines>` / `<c:minorGridlines>` form. Wraps a
|
|
440
|
+
* `ShapeProperties` so the gridline line can be styled (e.g. corporate-style
|
|
441
|
+
* light-grey `D9D9D9`).
|
|
442
|
+
*/
|
|
443
|
+
export interface Gridlines {
|
|
444
|
+
spPr?: ShapeProperties;
|
|
445
|
+
}
|
|
446
|
+
export interface CategoryAxis extends AxisShared {
|
|
447
|
+
/** `<c:auto>` — whether Excel auto-selects the axis type from the data. */
|
|
448
|
+
auto?: boolean;
|
|
449
|
+
/** Tick-label alignment. Default emitted is `ctr`. */
|
|
450
|
+
lblAlgn?: CategoryLabelAlignment;
|
|
451
|
+
/** Tick-label offset 0..1000. Default emitted is `100`. */
|
|
452
|
+
lblOffset?: number;
|
|
453
|
+
/** Suppress multi-level labels for hierarchical categories. */
|
|
454
|
+
noMultiLvlLbl?: boolean;
|
|
455
|
+
}
|
|
456
|
+
export interface ValueAxis extends AxisShared {
|
|
457
|
+
/** Tick-axis crossing rule. Default emitted is `between`. */
|
|
458
|
+
crossBetween?: AxisCrossBetween;
|
|
459
|
+
/** Major unit spacing on the value axis. */
|
|
460
|
+
majorUnit?: number;
|
|
461
|
+
/** Minor unit spacing on the value axis. */
|
|
462
|
+
minorUnit?: number;
|
|
463
|
+
}
|
|
464
|
+
export type TimeUnit = 'days' | 'months' | 'years';
|
|
465
|
+
export interface DateAxis extends AxisShared {
|
|
466
|
+
/** `<c:auto>` — auto-select axis type. */
|
|
467
|
+
auto?: boolean;
|
|
468
|
+
/** Tick-label offset 0..1000. Default emitted is `100`. */
|
|
469
|
+
lblOffset?: number;
|
|
470
|
+
/** Smallest interval the axis represents. */
|
|
471
|
+
baseTimeUnit?: TimeUnit;
|
|
472
|
+
/** Major unit spacing on the date axis (count of `majorTimeUnit`s). */
|
|
473
|
+
majorUnit?: number;
|
|
474
|
+
majorTimeUnit?: TimeUnit;
|
|
475
|
+
/** Minor unit spacing on the date axis. */
|
|
476
|
+
minorUnit?: number;
|
|
477
|
+
minorTimeUnit?: TimeUnit;
|
|
478
|
+
}
|
|
479
|
+
export interface SeriesAxis extends AxisShared {
|
|
480
|
+
/** Skip every Nth tick label (1 = every label). */
|
|
481
|
+
tickLblSkip?: number;
|
|
482
|
+
/** Skip every Nth tick mark. */
|
|
483
|
+
tickMarkSkip?: number;
|
|
484
|
+
}
|
|
485
|
+
export interface PlotArea {
|
|
486
|
+
chart: ChartKind;
|
|
487
|
+
catAx?: CategoryAxis;
|
|
488
|
+
valAx?: ValueAxis;
|
|
489
|
+
/** Date / time axis. Replaces `catAx` when the categories are dates. */
|
|
490
|
+
dateAx?: DateAxis;
|
|
491
|
+
/** Series axis (used by `surface3DChart` / `surfaceChart`). */
|
|
492
|
+
serAx?: SeriesAxis;
|
|
493
|
+
/** Manual layout for the plot area inside the chart. */
|
|
494
|
+
layout?: Layout;
|
|
495
|
+
/** Plot-area shape properties (background fill, border line). */
|
|
496
|
+
spPr?: ShapeProperties;
|
|
497
|
+
}
|
|
498
|
+
export type LayoutMode = 'edge' | 'factor';
|
|
499
|
+
export type LayoutTarget = 'inner' | 'outer';
|
|
500
|
+
/** `<c:manualLayout>` child of `<c:layout>`. All values are fractions of the chart space (0..1). */
|
|
501
|
+
export interface ManualLayout {
|
|
502
|
+
layoutTarget?: LayoutTarget;
|
|
503
|
+
xMode?: LayoutMode;
|
|
504
|
+
yMode?: LayoutMode;
|
|
505
|
+
wMode?: LayoutMode;
|
|
506
|
+
hMode?: LayoutMode;
|
|
507
|
+
x?: number;
|
|
508
|
+
y?: number;
|
|
509
|
+
w?: number;
|
|
510
|
+
h?: number;
|
|
511
|
+
}
|
|
512
|
+
/** `<c:layout>` wrapper. Currently only `manualLayout` is exposed; the lone `<layoutId>` form is for chartex. */
|
|
513
|
+
export interface Layout {
|
|
514
|
+
manualLayout?: ManualLayout;
|
|
515
|
+
}
|
|
516
|
+
export interface Legend {
|
|
517
|
+
position: LegendPosition;
|
|
518
|
+
overlay?: boolean;
|
|
519
|
+
layout?: Layout;
|
|
520
|
+
spPr?: ShapeProperties;
|
|
521
|
+
txPr?: TextBody;
|
|
522
|
+
}
|
|
523
|
+
/** Chart title with full DrawingML formatting support. */
|
|
524
|
+
export interface ChartTitle {
|
|
525
|
+
/**
|
|
526
|
+
* Plain title text. When set the serializer emits
|
|
527
|
+
* `<c:tx><c:rich><a:p><a:r><a:t>text</a:t></a:r></c:rich></c:tx>`. Mutually
|
|
528
|
+
* exclusive with `tx`.
|
|
529
|
+
*/
|
|
530
|
+
text?: string;
|
|
531
|
+
/** Rich text body — overrides `text` when both are present. */
|
|
532
|
+
tx?: TextBody;
|
|
533
|
+
overlay?: boolean;
|
|
534
|
+
layout?: Layout;
|
|
535
|
+
spPr?: ShapeProperties;
|
|
536
|
+
txPr?: TextBody;
|
|
537
|
+
}
|
|
538
|
+
/** 3-D viewing options. Used by `bar3DChart`, `line3DChart`, `pie3DChart`, `area3DChart`, `surface3DChart`. */
|
|
539
|
+
export interface View3D {
|
|
540
|
+
/** X-axis rotation in degrees, -90..90. */
|
|
541
|
+
rotX?: number;
|
|
542
|
+
/** Y-axis rotation in degrees, 0..359. */
|
|
543
|
+
rotY?: number;
|
|
544
|
+
/** Depth as a percentage of chart width, 20..2000. */
|
|
545
|
+
depthPercent?: number;
|
|
546
|
+
/** Height as a percentage of chart width, 5..500. */
|
|
547
|
+
hPercent?: number;
|
|
548
|
+
/** Use right-angle axes (orthographic). When true, perspective is ignored. */
|
|
549
|
+
rAngAx?: boolean;
|
|
550
|
+
/** Perspective angle 0..240 (0 = isometric, 30 = Excel default). */
|
|
551
|
+
perspective?: number;
|
|
552
|
+
}
|
|
553
|
+
/** 3-D wall / floor frame. Children of `<c:chart>` for bar3D / line3D / area3D / surface3D / pie3D. */
|
|
554
|
+
export interface SurfaceFrame {
|
|
555
|
+
/** Wall thickness in % of chart width (0..100). */
|
|
556
|
+
thickness?: number;
|
|
557
|
+
spPr?: ShapeProperties;
|
|
558
|
+
}
|
|
559
|
+
export interface ChartSpace {
|
|
560
|
+
/** Optional chart title. */
|
|
561
|
+
title?: ChartTitle;
|
|
562
|
+
legend?: Legend;
|
|
563
|
+
plotArea: PlotArea;
|
|
564
|
+
/**
|
|
565
|
+
* Built-in Excel chart-style preset (1..48). Mapped to `<c:style val="N"/>` inside
|
|
566
|
+
* `<c:chartSpace>` and selects one entry of Excel's "Chart Styles" gallery.
|
|
567
|
+
*/
|
|
568
|
+
style?: number;
|
|
569
|
+
/** 3-D viewing options (applies to 3-D chart kinds; ignored otherwise by Excel). */
|
|
570
|
+
view3D?: View3D;
|
|
571
|
+
/** 3-D chart floor frame. */
|
|
572
|
+
floor?: SurfaceFrame;
|
|
573
|
+
/** 3-D chart side wall frame. */
|
|
574
|
+
sideWall?: SurfaceFrame;
|
|
575
|
+
/** 3-D chart back wall frame. */
|
|
576
|
+
backWall?: SurfaceFrame;
|
|
577
|
+
/** Honour the formatting hints in cached numeric data when rendering. */
|
|
578
|
+
plotVisOnly?: boolean;
|
|
579
|
+
/** Display blanks as gap, zero, or span — Excel default is `gap`. */
|
|
580
|
+
dispBlanksAs?: 'gap' | 'zero' | 'span';
|
|
581
|
+
/** Chart-space level shape properties (overall frame). */
|
|
582
|
+
spPr?: ShapeProperties;
|
|
583
|
+
/** Chart-space level default text properties. */
|
|
584
|
+
txPr?: TextBody;
|
|
585
|
+
/** Annotations / text boxes / arrows drawn over the chart. Serialised as `xl/drawings/chartDrawingN.xml`. */
|
|
586
|
+
userShapes?: ChartDrawing;
|
|
587
|
+
}
|
|
588
|
+
export declare function makeBarChart(opts: {
|
|
589
|
+
barDir?: BarDirection;
|
|
590
|
+
grouping?: GroupingType;
|
|
591
|
+
series?: BarSeries[];
|
|
592
|
+
axIds?: [number, number];
|
|
593
|
+
varyColors?: boolean;
|
|
594
|
+
gapWidth?: number;
|
|
595
|
+
overlap?: number;
|
|
596
|
+
}): BarChart;
|
|
597
|
+
export declare function makeBarSeries(opts: {
|
|
598
|
+
idx: number;
|
|
599
|
+
order?: number;
|
|
600
|
+
val: NumericRef;
|
|
601
|
+
cat?: CategoryRef;
|
|
602
|
+
tx?: BarSeries['tx'];
|
|
603
|
+
}): BarSeries;
|
|
604
|
+
export declare function makeChartSpace(opts: {
|
|
605
|
+
plotArea: PlotArea;
|
|
606
|
+
/** Plain string is wrapped in `{ text }`; pass `ChartTitle` for full formatting. */
|
|
607
|
+
title?: string | ChartTitle;
|
|
608
|
+
legend?: Legend;
|
|
609
|
+
style?: number;
|
|
610
|
+
view3D?: View3D;
|
|
611
|
+
floor?: SurfaceFrame;
|
|
612
|
+
sideWall?: SurfaceFrame;
|
|
613
|
+
backWall?: SurfaceFrame;
|
|
614
|
+
plotVisOnly?: boolean;
|
|
615
|
+
dispBlanksAs?: ChartSpace['dispBlanksAs'];
|
|
616
|
+
spPr?: ShapeProperties;
|
|
617
|
+
txPr?: TextBody;
|
|
618
|
+
}): ChartSpace;
|
|
619
|
+
export declare function makeLineChart(opts: {
|
|
620
|
+
grouping?: GroupingType;
|
|
621
|
+
series?: LineSeries[];
|
|
622
|
+
axIds?: [number, number];
|
|
623
|
+
varyColors?: boolean;
|
|
624
|
+
smooth?: boolean;
|
|
625
|
+
}): LineChart;
|
|
626
|
+
export declare function makeAreaChart(opts: {
|
|
627
|
+
grouping?: GroupingType;
|
|
628
|
+
series?: BarSeries[];
|
|
629
|
+
axIds?: [number, number];
|
|
630
|
+
varyColors?: boolean;
|
|
631
|
+
}): AreaChart;
|
|
632
|
+
export declare function makePieChart(opts: {
|
|
633
|
+
series?: BarSeries[];
|
|
634
|
+
varyColors?: boolean;
|
|
635
|
+
}): PieChart;
|
|
636
|
+
export declare function makeDoughnutChart(opts: {
|
|
637
|
+
series?: BarSeries[];
|
|
638
|
+
varyColors?: boolean;
|
|
639
|
+
holeSize?: number;
|
|
640
|
+
firstSliceAng?: number;
|
|
641
|
+
}): DoughnutChart;
|
|
642
|
+
export declare function makeScatterChart(opts: {
|
|
643
|
+
scatterStyle?: ScatterStyle;
|
|
644
|
+
series?: ScatterSeries[];
|
|
645
|
+
axIds?: [number, number];
|
|
646
|
+
varyColors?: boolean;
|
|
647
|
+
}): ScatterChart;
|
|
648
|
+
export declare function makeScatterSeries(opts: {
|
|
649
|
+
idx: number;
|
|
650
|
+
order?: number;
|
|
651
|
+
tx?: BarSeries['tx'];
|
|
652
|
+
xVal?: NumericRef;
|
|
653
|
+
yVal: NumericRef;
|
|
654
|
+
smooth?: boolean;
|
|
655
|
+
marker?: Marker;
|
|
656
|
+
}): ScatterSeries;
|
|
657
|
+
export declare function makeRadarChart(opts: {
|
|
658
|
+
radarStyle?: RadarStyle;
|
|
659
|
+
series?: BarSeries[];
|
|
660
|
+
axIds?: [number, number];
|
|
661
|
+
varyColors?: boolean;
|
|
662
|
+
}): RadarChart;
|
|
663
|
+
export declare function makeBubbleChart(opts: {
|
|
664
|
+
series?: BubbleSeries[];
|
|
665
|
+
axIds?: [number, number];
|
|
666
|
+
varyColors?: boolean;
|
|
667
|
+
bubble3D?: boolean;
|
|
668
|
+
bubbleScale?: number;
|
|
669
|
+
showNegBubbles?: boolean;
|
|
670
|
+
sizeRepresents?: BubbleSizeRepresents;
|
|
671
|
+
}): BubbleChart;
|
|
672
|
+
export declare function makeBubbleSeries(opts: {
|
|
673
|
+
idx: number;
|
|
674
|
+
order?: number;
|
|
675
|
+
tx?: BarSeries['tx'];
|
|
676
|
+
xVal?: NumericRef;
|
|
677
|
+
yVal: NumericRef;
|
|
678
|
+
bubbleSize: NumericRef;
|
|
679
|
+
bubble3D?: boolean;
|
|
680
|
+
}): BubbleSeries;
|
|
681
|
+
export declare function makeStockChart(opts: {
|
|
682
|
+
series?: BarSeries[];
|
|
683
|
+
axIds?: [number, number];
|
|
684
|
+
hiLowLines?: boolean | HiLowLines;
|
|
685
|
+
upDownBars?: boolean | UpDownBars;
|
|
686
|
+
}): StockChart;
|
|
687
|
+
export declare function makeSurfaceChart(opts: {
|
|
688
|
+
series?: BarSeries[];
|
|
689
|
+
wireframe?: boolean;
|
|
690
|
+
axIds?: [number, number, number];
|
|
691
|
+
}): SurfaceChart;
|
|
692
|
+
export declare function makeOfPieChart(opts: {
|
|
693
|
+
ofPieType?: OfPieType;
|
|
694
|
+
series?: BarSeries[];
|
|
695
|
+
varyColors?: boolean;
|
|
696
|
+
gapWidth?: number;
|
|
697
|
+
splitType?: SplitType;
|
|
698
|
+
splitPos?: number;
|
|
699
|
+
custSplit?: number[];
|
|
700
|
+
secondPieSize?: number;
|
|
701
|
+
}): OfPieChart;
|
|
702
|
+
export declare function makeBar3DChart(opts: {
|
|
703
|
+
barDir?: BarDirection;
|
|
704
|
+
grouping?: GroupingType;
|
|
705
|
+
series?: BarSeries[];
|
|
706
|
+
axIds?: [number, number, number];
|
|
707
|
+
varyColors?: boolean;
|
|
708
|
+
gapWidth?: number;
|
|
709
|
+
gapDepth?: number;
|
|
710
|
+
shape?: Bar3DChart['shape'];
|
|
711
|
+
}): Bar3DChart;
|
|
712
|
+
export declare function makeLine3DChart(opts: {
|
|
713
|
+
grouping?: GroupingType;
|
|
714
|
+
series?: LineSeries[];
|
|
715
|
+
axIds?: [number, number, number];
|
|
716
|
+
varyColors?: boolean;
|
|
717
|
+
gapDepth?: number;
|
|
718
|
+
}): Line3DChart;
|
|
719
|
+
export declare function makePie3DChart(opts: {
|
|
720
|
+
series?: BarSeries[];
|
|
721
|
+
varyColors?: boolean;
|
|
722
|
+
}): Pie3DChart;
|
|
723
|
+
export declare function makeArea3DChart(opts: {
|
|
724
|
+
grouping?: GroupingType;
|
|
725
|
+
series?: BarSeries[];
|
|
726
|
+
axIds?: [number, number, number];
|
|
727
|
+
varyColors?: boolean;
|
|
728
|
+
gapDepth?: number;
|
|
729
|
+
}): Area3DChart;
|
|
730
|
+
export declare function makeSurface3DChart(opts: {
|
|
731
|
+
series?: BarSeries[];
|
|
732
|
+
wireframe?: boolean;
|
|
733
|
+
axIds?: [number, number, number];
|
|
734
|
+
}): Surface3DChart;
|
|
735
|
+
export {};
|