@nanahoshi/mona-ui 0.15.0 → 0.15.2
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/fesm2022/nanahoshi-mona-ui-chart.mjs +352 -238
- package/package.json +1 -1
- package/types/nanahoshi-mona-ui-chart.d.ts +1195 -1195
|
@@ -2,6 +2,151 @@ import * as _nanahoshi_mona_ui_chart from '@nanahoshi/mona-ui/chart';
|
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { TemplateRef, Signal, ElementRef, AfterContentChecked, OnInit } from '@angular/core';
|
|
4
4
|
|
|
5
|
+
interface ChartViewportAxisRef {
|
|
6
|
+
readonly axis: "x" | "y";
|
|
7
|
+
readonly axisId: string;
|
|
8
|
+
}
|
|
9
|
+
interface ChartContinuousViewportWindow extends ChartViewportAxisRef {
|
|
10
|
+
readonly kind: "continuous";
|
|
11
|
+
readonly max: Date | number;
|
|
12
|
+
readonly min: Date | number;
|
|
13
|
+
}
|
|
14
|
+
interface ChartCategoryViewportWindow extends ChartViewportAxisRef {
|
|
15
|
+
readonly endIndexExclusive: number;
|
|
16
|
+
readonly kind: "category";
|
|
17
|
+
readonly startIndex: number;
|
|
18
|
+
}
|
|
19
|
+
type ChartViewportWindow = ChartCategoryViewportWindow | ChartContinuousViewportWindow;
|
|
20
|
+
interface ChartViewportState {
|
|
21
|
+
readonly axes: readonly ChartViewportWindow[];
|
|
22
|
+
}
|
|
23
|
+
type ChartNavigationAxisTarget = "auto" | "x" | "xy" | "y" | readonly ChartViewportAxisRef[];
|
|
24
|
+
interface ChartViewportConstraint extends ChartViewportAxisRef {
|
|
25
|
+
readonly maxSpan?: number;
|
|
26
|
+
readonly maxVisibleCategories?: number;
|
|
27
|
+
readonly maxZoom?: number;
|
|
28
|
+
readonly minSpan?: number;
|
|
29
|
+
readonly minVisibleCategories?: number;
|
|
30
|
+
}
|
|
31
|
+
type ChartViewportLinkMode = "domain" | "relative";
|
|
32
|
+
interface ChartViewportLinkGroup {
|
|
33
|
+
readonly axes: readonly ChartViewportAxisRef[];
|
|
34
|
+
readonly id: string;
|
|
35
|
+
readonly mode: ChartViewportLinkMode;
|
|
36
|
+
}
|
|
37
|
+
interface ChartNavigationOptions {
|
|
38
|
+
readonly clampToData?: boolean;
|
|
39
|
+
readonly constraints?: readonly ChartViewportConstraint[];
|
|
40
|
+
readonly dragPan?: boolean;
|
|
41
|
+
readonly keyboard?: boolean;
|
|
42
|
+
readonly keyboardPanRatio?: number;
|
|
43
|
+
readonly keyboardZoomFactor?: number;
|
|
44
|
+
readonly linkGroups?: readonly ChartViewportLinkGroup[];
|
|
45
|
+
readonly minVisibleCategories?: number;
|
|
46
|
+
readonly pan?: boolean;
|
|
47
|
+
readonly panAxes?: ChartNavigationAxisTarget;
|
|
48
|
+
readonly pinchZoom?: boolean;
|
|
49
|
+
readonly wheelSensitivity?: number;
|
|
50
|
+
readonly wheelZoom?: boolean;
|
|
51
|
+
readonly zoom?: boolean;
|
|
52
|
+
readonly zoomAxes?: ChartNavigationAxisTarget;
|
|
53
|
+
}
|
|
54
|
+
type ChartNavigationInput = boolean | ChartNavigationOptions;
|
|
55
|
+
type ChartViewportChangeSource = "data-reconcile" | "drag" | "fit" | "keyboard" | "pinch" | "programmatic" | "reset" | "sync" | "wheel";
|
|
56
|
+
type ChartViewportChangePhase = "end" | "start" | "update";
|
|
57
|
+
interface ChartViewportChangeEvent {
|
|
58
|
+
readonly changedAxes: readonly ChartViewportAxisRef[];
|
|
59
|
+
readonly phase: ChartViewportChangePhase;
|
|
60
|
+
readonly previousViewport: ChartViewportState;
|
|
61
|
+
readonly source: ChartViewportChangeSource;
|
|
62
|
+
readonly viewport: ChartViewportState;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
type ChartSynchronizationMode = "domain" | "relative";
|
|
66
|
+
interface ChartSynchronizationAxisMapping {
|
|
67
|
+
readonly source: ChartViewportAxisRef;
|
|
68
|
+
readonly target: ChartViewportAxisRef;
|
|
69
|
+
}
|
|
70
|
+
interface ChartViewportSynchronizationOptions {
|
|
71
|
+
readonly axes?: ChartNavigationAxisTarget;
|
|
72
|
+
readonly enabled?: boolean;
|
|
73
|
+
readonly mode?: ChartSynchronizationMode;
|
|
74
|
+
readonly phase?: "continuous" | "end";
|
|
75
|
+
}
|
|
76
|
+
interface ChartCrosshairSynchronizationOptions {
|
|
77
|
+
readonly axes?: "auto" | "x" | "xy" | "y";
|
|
78
|
+
readonly clearOnLeave?: boolean;
|
|
79
|
+
readonly enabled?: boolean;
|
|
80
|
+
readonly match?: "axis-value" | "nearest-point";
|
|
81
|
+
readonly mode?: ChartSynchronizationMode;
|
|
82
|
+
readonly showTooltip?: boolean;
|
|
83
|
+
}
|
|
84
|
+
interface ChartSynchronizationOptions {
|
|
85
|
+
readonly axisMappings?: readonly ChartSynchronizationAxisMapping[];
|
|
86
|
+
readonly crosshair?: boolean | ChartCrosshairSynchronizationOptions;
|
|
87
|
+
readonly group: string;
|
|
88
|
+
readonly viewport?: boolean | ChartViewportSynchronizationOptions;
|
|
89
|
+
}
|
|
90
|
+
type ChartSynchronizationInput = false | string | ChartSynchronizationOptions;
|
|
91
|
+
|
|
92
|
+
interface NormalizedChartCrosshairSynchronizationOptions {
|
|
93
|
+
readonly axes: "auto" | "x" | "xy" | "y";
|
|
94
|
+
readonly clearOnLeave: boolean;
|
|
95
|
+
readonly enabled: boolean;
|
|
96
|
+
readonly match: "axis-value" | "nearest-point";
|
|
97
|
+
readonly mode: "domain" | "relative";
|
|
98
|
+
readonly showTooltip: boolean;
|
|
99
|
+
}
|
|
100
|
+
interface NormalizedChartViewportSynchronizationOptions {
|
|
101
|
+
readonly axes: "auto" | "x" | "xy" | "y" | readonly ChartViewportAxisRef[];
|
|
102
|
+
readonly enabled: boolean;
|
|
103
|
+
readonly mode: "domain" | "relative";
|
|
104
|
+
readonly phase: "continuous" | "end";
|
|
105
|
+
}
|
|
106
|
+
interface NormalizedChartSynchronizationOptions {
|
|
107
|
+
readonly axisMappings: readonly ChartSynchronizationAxisMapping[];
|
|
108
|
+
readonly crosshair: NormalizedChartCrosshairSynchronizationOptions;
|
|
109
|
+
readonly group: string;
|
|
110
|
+
readonly viewport: NormalizedChartViewportSynchronizationOptions;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
interface NormalizedChartNavigationOptions {
|
|
114
|
+
readonly clampToData: boolean;
|
|
115
|
+
readonly constraints: readonly ChartViewportConstraint[];
|
|
116
|
+
readonly dragPan: boolean;
|
|
117
|
+
readonly enabled: boolean;
|
|
118
|
+
readonly keyboard: boolean;
|
|
119
|
+
readonly keyboardPanRatio: number;
|
|
120
|
+
readonly keyboardZoomFactor: number;
|
|
121
|
+
readonly linkGroups: readonly ChartViewportLinkGroup[];
|
|
122
|
+
readonly minVisibleCategories: number;
|
|
123
|
+
readonly pan: boolean;
|
|
124
|
+
readonly panAxes: ChartNavigationAxisTarget;
|
|
125
|
+
readonly pinchZoom: boolean;
|
|
126
|
+
readonly wheelSensitivity: number;
|
|
127
|
+
readonly wheelZoom: boolean;
|
|
128
|
+
readonly zoom: boolean;
|
|
129
|
+
readonly zoomAxes: ChartNavigationAxisTarget;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
type ChartDownsamplingAlgorithm = "auto" | "lttb" | "minmax" | "pixel";
|
|
133
|
+
interface ChartDownsamplingOptions {
|
|
134
|
+
readonly algorithm?: ChartDownsamplingAlgorithm;
|
|
135
|
+
readonly enabled?: boolean;
|
|
136
|
+
readonly maxPoints?: number;
|
|
137
|
+
readonly samplesPerPixel?: number;
|
|
138
|
+
readonly threshold?: number;
|
|
139
|
+
}
|
|
140
|
+
type ChartDownsamplingInput = boolean | ChartDownsamplingOptions;
|
|
141
|
+
|
|
142
|
+
interface NormalizedChartDownsamplingOptions {
|
|
143
|
+
readonly algorithm: ChartDownsamplingAlgorithm;
|
|
144
|
+
readonly enabled: boolean;
|
|
145
|
+
readonly maxPoints: number | null;
|
|
146
|
+
readonly samplesPerPixel: number;
|
|
147
|
+
readonly threshold: number | null;
|
|
148
|
+
}
|
|
149
|
+
|
|
5
150
|
type ChartXAxisPosition = "bottom" | "top";
|
|
6
151
|
type ChartYAxisPosition = "left" | "right";
|
|
7
152
|
type ChartAxisPosition = ChartXAxisPosition | ChartYAxisPosition;
|
|
@@ -35,61 +180,48 @@ interface ChartSubtitleTemplateContext {
|
|
|
35
180
|
readonly subtitle: string;
|
|
36
181
|
}
|
|
37
182
|
|
|
38
|
-
|
|
183
|
+
declare class ChartAxisLabelTemplateDirective {
|
|
184
|
+
readonly templateRef: TemplateRef<ChartAxisLabelTemplateContext<unknown>>;
|
|
185
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartAxisLabelTemplateDirective, never>;
|
|
186
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartAxisLabelTemplateDirective, "ng-template[monaChartAxisLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
187
|
+
}
|
|
39
188
|
|
|
40
|
-
|
|
41
|
-
|
|
189
|
+
declare class ChartNoDataTemplateDirective {
|
|
190
|
+
readonly templateRef: TemplateRef<void>;
|
|
191
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartNoDataTemplateDirective, never>;
|
|
192
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartNoDataTemplateDirective, "ng-template[monaChartNoDataTemplate]", never, {}, {}, never, never, true, never>;
|
|
193
|
+
}
|
|
42
194
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
declare function getChartSeriesFamily(type: ChartSeriesType): ChartSeriesFamily;
|
|
48
|
-
declare function isCartesianCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
49
|
-
declare function isPolarCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
50
|
-
declare function isHierarchicalCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
51
|
-
type ChartLegendItemKind = "datum" | "semantic" | "series";
|
|
52
|
-
interface ChartLegendItem {
|
|
53
|
-
color: string;
|
|
54
|
-
dataIndex?: number;
|
|
55
|
-
datum?: unknown;
|
|
56
|
-
interactive?: boolean;
|
|
57
|
-
itemId: string;
|
|
58
|
-
kind?: ChartLegendItemKind;
|
|
59
|
-
name: string;
|
|
60
|
-
percentage?: number;
|
|
61
|
-
secondaryColor?: string;
|
|
62
|
-
seriesId: string;
|
|
63
|
-
seriesType: ChartSeriesType;
|
|
64
|
-
value?: number;
|
|
65
|
-
visible: boolean;
|
|
195
|
+
declare class ChartSubtitleTemplateDirective {
|
|
196
|
+
readonly templateRef: TemplateRef<ChartSubtitleTemplateContext>;
|
|
197
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartSubtitleTemplateDirective, never>;
|
|
198
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartSubtitleTemplateDirective, "ng-template[monaChartSubtitleTemplate]", never, {}, {}, never, never, true, never>;
|
|
66
199
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
interactive?: boolean;
|
|
73
|
-
itemId: string;
|
|
74
|
-
kind?: ChartLegendItemKind;
|
|
75
|
-
name: string;
|
|
76
|
-
percentage?: number;
|
|
77
|
-
secondaryColor?: string;
|
|
78
|
-
series: ChartLegendItem;
|
|
79
|
-
seriesId: string;
|
|
80
|
-
seriesType: ChartSeriesType;
|
|
81
|
-
value?: number;
|
|
82
|
-
visible: boolean;
|
|
200
|
+
|
|
201
|
+
declare class ChartTitleTemplateDirective {
|
|
202
|
+
readonly templateRef: TemplateRef<ChartTitleTemplateContext>;
|
|
203
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartTitleTemplateDirective, never>;
|
|
204
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartTitleTemplateDirective, "ng-template[monaChartTitleTemplate]", never, {}, {}, never, never, true, never>;
|
|
83
205
|
}
|
|
84
206
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
207
|
+
type ChartAnimationEasing = "linear" | "ease-in" | "ease-out" | "ease-in-out";
|
|
208
|
+
interface ChartAnimationOptions {
|
|
209
|
+
readonly data?: boolean;
|
|
210
|
+
readonly duration?: number;
|
|
211
|
+
readonly easing?: ChartAnimationEasing;
|
|
212
|
+
readonly enabled?: boolean;
|
|
213
|
+
readonly initial?: boolean;
|
|
214
|
+
readonly visibility?: boolean;
|
|
215
|
+
}
|
|
216
|
+
type ChartAnimationInput = boolean | ChartAnimationOptions;
|
|
217
|
+
|
|
218
|
+
interface NormalizedChartAnimationOptions {
|
|
219
|
+
readonly data: boolean;
|
|
220
|
+
readonly duration: number;
|
|
221
|
+
readonly easing: ChartAnimationEasing;
|
|
222
|
+
readonly enabled: boolean;
|
|
223
|
+
readonly initial: boolean;
|
|
224
|
+
readonly visibility: boolean;
|
|
93
225
|
}
|
|
94
226
|
|
|
95
227
|
type ChartCoordinateSystem = "cartesian" | "hierarchical" | "polar";
|
|
@@ -165,92 +297,11 @@ interface ChartWaterfallLabelTemplateContext<T = unknown> {
|
|
|
165
297
|
readonly visualKind: ChartWaterfallVisualKind;
|
|
166
298
|
}
|
|
167
299
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
}
|
|
173
|
-
interface ChartRangePointValue {
|
|
174
|
-
readonly formattedFrom: string;
|
|
175
|
-
readonly formattedTo: string;
|
|
176
|
-
readonly fromValue: number;
|
|
177
|
-
readonly toValue: number;
|
|
178
|
-
readonly valueKind: "range";
|
|
179
|
-
}
|
|
180
|
-
interface ChartOhlcPointValue {
|
|
181
|
-
readonly change?: number;
|
|
182
|
-
readonly changePercentage?: number;
|
|
183
|
-
readonly close: number;
|
|
184
|
-
readonly direction: ChartFinancialDirection;
|
|
185
|
-
readonly formattedChange?: string;
|
|
186
|
-
readonly formattedChangePercentage?: string;
|
|
187
|
-
readonly formattedClose?: string;
|
|
188
|
-
readonly formattedHigh?: string;
|
|
189
|
-
readonly formattedLow?: string;
|
|
190
|
-
readonly formattedOpen?: string;
|
|
191
|
-
readonly high: number;
|
|
192
|
-
readonly low: number;
|
|
193
|
-
readonly open: number;
|
|
194
|
-
readonly valueKind: "ohlc";
|
|
195
|
-
}
|
|
196
|
-
interface ChartWaterfallPointValue {
|
|
197
|
-
readonly barEnd: number;
|
|
198
|
-
readonly barStart: number;
|
|
199
|
-
readonly cumulativeAfter: number;
|
|
200
|
-
readonly cumulativeBefore: number;
|
|
201
|
-
readonly deltaValue?: number;
|
|
202
|
-
readonly formattedCumulativeAfter: string;
|
|
203
|
-
readonly formattedCumulativeBefore: string;
|
|
204
|
-
readonly formattedDelta?: string;
|
|
205
|
-
readonly kind: ChartWaterfallDatumKind;
|
|
206
|
-
readonly valueKind: "waterfall";
|
|
207
|
-
}
|
|
208
|
-
type ChartPointValue = ChartOhlcPointValue | ChartRangePointValue | ChartScalarPointValue | ChartWaterfallPointValue;
|
|
209
|
-
|
|
210
|
-
interface ChartHierarchyNodeContext<T = unknown> {
|
|
211
|
-
readonly aggregateValue: number;
|
|
212
|
-
readonly childCount: number;
|
|
213
|
-
readonly dataIndex: number;
|
|
214
|
-
readonly datum: T;
|
|
215
|
-
readonly depth: number;
|
|
216
|
-
readonly descendantCount: number;
|
|
217
|
-
readonly formattedLabel: string;
|
|
218
|
-
readonly formattedPath: readonly string[];
|
|
219
|
-
readonly formattedValue: string;
|
|
220
|
-
readonly isCollapsed: boolean;
|
|
221
|
-
readonly isLeaf: boolean;
|
|
222
|
-
readonly label: unknown;
|
|
223
|
-
readonly nodeId: string;
|
|
224
|
-
readonly parentId?: string;
|
|
225
|
-
readonly path: readonly unknown[];
|
|
226
|
-
readonly percentageOfParent?: number;
|
|
227
|
-
readonly percentageOfRoot?: number;
|
|
228
|
-
readonly rawValue?: number;
|
|
229
|
-
readonly siblingIndex: number;
|
|
230
|
-
readonly sourceIndexPath: readonly number[];
|
|
231
|
-
readonly treeHeight: number;
|
|
232
|
-
}
|
|
233
|
-
interface ChartHierarchyPointMetadata {
|
|
234
|
-
readonly aggregateValue: number;
|
|
235
|
-
readonly childCount: number;
|
|
236
|
-
readonly dataIndex: number;
|
|
237
|
-
readonly depth: number;
|
|
238
|
-
readonly descendantCount: number;
|
|
239
|
-
readonly formattedLabel: string;
|
|
240
|
-
readonly formattedPath: readonly string[];
|
|
241
|
-
readonly formattedValue: string;
|
|
242
|
-
readonly isCollapsed: boolean;
|
|
243
|
-
readonly isLeaf: boolean;
|
|
244
|
-
readonly label: unknown;
|
|
245
|
-
readonly nodeId: string;
|
|
246
|
-
readonly parentId?: string;
|
|
247
|
-
readonly path: readonly unknown[];
|
|
248
|
-
readonly percentageOfParent?: number;
|
|
249
|
-
readonly percentageOfRoot?: number;
|
|
250
|
-
readonly rawValue?: number;
|
|
251
|
-
readonly siblingIndex: number;
|
|
252
|
-
readonly sourceIndexPath: readonly number[];
|
|
253
|
-
readonly treeHeight: number;
|
|
300
|
+
declare class ChartWaterfallLabelTemplateDirective {
|
|
301
|
+
readonly templateRef: TemplateRef<any>;
|
|
302
|
+
static ngTemplateContextGuard(_dir: ChartWaterfallLabelTemplateDirective, _ctx: unknown): _ctx is ChartWaterfallLabelTemplateContext;
|
|
303
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartWaterfallLabelTemplateDirective, never>;
|
|
304
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartWaterfallLabelTemplateDirective, "ng-template[monaChartWaterfallLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
254
305
|
}
|
|
255
306
|
|
|
256
307
|
type ChartFunnelOrientation = "horizontal" | "vertical";
|
|
@@ -321,258 +372,429 @@ interface ChartFunnelLabelTemplateContext<T = unknown> {
|
|
|
321
372
|
readonly value: number;
|
|
322
373
|
}
|
|
323
374
|
|
|
324
|
-
|
|
375
|
+
declare class ChartFunnelLabelTemplateDirective {
|
|
376
|
+
readonly templateRef: TemplateRef<any>;
|
|
377
|
+
static ngTemplateContextGuard(_dir: ChartFunnelLabelTemplateDirective, _ctx: unknown): _ctx is ChartFunnelLabelTemplateContext;
|
|
378
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartFunnelLabelTemplateDirective, never>;
|
|
379
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartFunnelLabelTemplateDirective, "ng-template[monaChartFunnelLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
380
|
+
}
|
|
325
381
|
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
382
|
+
declare class ChartAnnotationLabelTemplateDirective {
|
|
383
|
+
readonly templateRef: TemplateRef<any>;
|
|
384
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartAnnotationLabelTemplateDirective, never>;
|
|
385
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartAnnotationLabelTemplateDirective, "ng-template[monaChartAnnotationLabel]", never, {}, {}, never, never, true, never>;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
type ChartPolarFillMode = "gradient" | "solid";
|
|
389
|
+
type ChartRadialFillMode = "gradient" | "none" | "solid";
|
|
390
|
+
type ChartRadialCurve = "linear" | "smooth";
|
|
391
|
+
type ChartRadialGridShape = "auto" | "circle" | "polygon";
|
|
392
|
+
type ChartPolarLabelPosition = "inside" | "outside";
|
|
393
|
+
type ChartPolarLabelSide = "left" | "right";
|
|
394
|
+
type ChartPolarLabelContent = "category" | "category-percentage" | "percentage" | "value";
|
|
395
|
+
|
|
396
|
+
interface ChartLabelMeasurement {
|
|
397
|
+
height: number;
|
|
398
|
+
width: number;
|
|
399
|
+
}
|
|
400
|
+
interface ChartSliceContext {
|
|
401
|
+
category: unknown;
|
|
333
402
|
color: string;
|
|
334
403
|
dataIndex: number;
|
|
335
|
-
datum:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
formattedChangePercentage?: string;
|
|
341
|
-
formattedClose?: string;
|
|
342
|
-
formattedFrom?: string;
|
|
343
|
-
formattedHigh?: string;
|
|
344
|
-
formattedLow?: string;
|
|
345
|
-
formattedOpen?: string;
|
|
346
|
-
formattedPercentage?: string;
|
|
347
|
-
formattedRadialMax?: string;
|
|
348
|
-
formattedRadialMin?: string;
|
|
349
|
-
formattedSize?: string;
|
|
350
|
-
formattedStackPercentage?: string;
|
|
351
|
-
formattedStackTotal?: string;
|
|
352
|
-
formattedTo?: string;
|
|
353
|
-
formattedX: string;
|
|
354
|
-
formattedXValue?: string;
|
|
355
|
-
formattedY: string;
|
|
356
|
-
formattedYCategory?: string;
|
|
357
|
-
fromValue?: number;
|
|
358
|
-
funnel?: ChartFunnelPointMetadata;
|
|
359
|
-
hierarchy?: ChartHierarchyPointMetadata;
|
|
360
|
-
high?: number;
|
|
361
|
-
isClamped?: boolean;
|
|
362
|
-
low?: number;
|
|
363
|
-
markId: string;
|
|
364
|
-
open?: number;
|
|
365
|
-
percentage?: number;
|
|
366
|
-
radialMax?: number;
|
|
367
|
-
radialMin?: number;
|
|
368
|
-
radialRatio?: number;
|
|
369
|
-
rawValue?: unknown;
|
|
404
|
+
datum: unknown;
|
|
405
|
+
formattedCategory: string;
|
|
406
|
+
formattedPercentage: string;
|
|
407
|
+
formattedValue: string;
|
|
408
|
+
percentage: number;
|
|
370
409
|
seriesId: string;
|
|
371
410
|
seriesName: string;
|
|
372
|
-
seriesType:
|
|
373
|
-
|
|
374
|
-
sliceId?: string;
|
|
375
|
-
stackEnd?: number;
|
|
376
|
-
stackGroup?: string;
|
|
377
|
-
stackMode?: ChartStackMode;
|
|
378
|
-
stackPercentage?: number;
|
|
379
|
-
stackPosition?: "inner" | "outer" | "single";
|
|
380
|
-
stackStart?: number;
|
|
381
|
-
stackTotal?: number;
|
|
382
|
-
toValue?: number;
|
|
383
|
-
value?: unknown;
|
|
384
|
-
valueKind?: ChartPointValueKind;
|
|
385
|
-
waterfall?: ChartWaterfallPointValue;
|
|
386
|
-
xAxisId?: string;
|
|
387
|
-
xAxisTitle?: string;
|
|
388
|
-
xValue: unknown;
|
|
389
|
-
yAxisId?: string;
|
|
390
|
-
yAxisTitle?: string;
|
|
391
|
-
yCategory?: unknown;
|
|
392
|
-
yValue?: number;
|
|
393
|
-
}
|
|
394
|
-
interface ChartTooltipTemplateContext<T = unknown> {
|
|
395
|
-
$implicit: ChartTooltipPointContext<T>;
|
|
396
|
-
point: ChartTooltipPointContext<T>;
|
|
397
|
-
points: readonly ChartTooltipPointContext<T>[];
|
|
398
|
-
series: readonly string[];
|
|
399
|
-
shared: boolean;
|
|
411
|
+
seriesType: "donut" | "pie";
|
|
412
|
+
value: number;
|
|
400
413
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
414
|
+
interface ChartSliceLabelTemplateContext {
|
|
415
|
+
$implicit: ChartSliceContext;
|
|
416
|
+
category: unknown;
|
|
417
|
+
color: string;
|
|
418
|
+
dataIndex: number;
|
|
419
|
+
datum: unknown;
|
|
420
|
+
formattedCategory: string;
|
|
421
|
+
formattedPercentage: string;
|
|
422
|
+
formattedValue: string;
|
|
423
|
+
percentage: number;
|
|
424
|
+
seriesId: string;
|
|
425
|
+
seriesName: string;
|
|
426
|
+
seriesType: "donut" | "pie";
|
|
427
|
+
slice: ChartSliceContext;
|
|
428
|
+
value: number;
|
|
408
429
|
}
|
|
409
|
-
interface
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
startAngle: number;
|
|
430
|
+
interface ChartCenterTemplateContext {
|
|
431
|
+
$implicit: number;
|
|
432
|
+
formattedTotal: string;
|
|
433
|
+
seriesId: string;
|
|
434
|
+
seriesName: string;
|
|
435
|
+
total: number;
|
|
436
|
+
visibleSliceCount: number;
|
|
417
437
|
}
|
|
418
|
-
interface
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
categoryStartPixel?: number;
|
|
422
|
-
cornerRadii?: ChartCornerRadii;
|
|
438
|
+
interface ChartSliceVisibilityEvent {
|
|
439
|
+
category: unknown;
|
|
440
|
+
dataIndex: number;
|
|
423
441
|
datum: unknown;
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
radius: number;
|
|
429
|
-
renderOpacity?: number;
|
|
430
|
-
stackEndValue?: number;
|
|
431
|
-
stackGroup?: string;
|
|
432
|
-
stackMode?: ChartStackMode;
|
|
433
|
-
stackPercentage?: number;
|
|
434
|
-
stackPosition?: "inner" | "outer" | "single";
|
|
435
|
-
stackStartValue?: number;
|
|
436
|
-
stackTotal?: number;
|
|
437
|
-
synthetic?: boolean;
|
|
438
|
-
valueEndPixel?: number;
|
|
439
|
-
valueStartPixel?: number;
|
|
440
|
-
width: number;
|
|
441
|
-
x: number;
|
|
442
|
-
xValue: unknown;
|
|
443
|
-
y: number;
|
|
444
|
-
yValue: number;
|
|
442
|
+
seriesId: string;
|
|
443
|
+
seriesName: string;
|
|
444
|
+
seriesType: "donut" | "pie";
|
|
445
|
+
visible: boolean;
|
|
445
446
|
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
readonly
|
|
447
|
+
|
|
448
|
+
declare class ChartCenterTemplateDirective {
|
|
449
|
+
readonly templateRef: TemplateRef<ChartCenterTemplateContext>;
|
|
450
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartCenterTemplateDirective, never>;
|
|
451
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartCenterTemplateDirective, "ng-template[monaChartCenterTemplate]", never, {}, {}, never, never, true, never>;
|
|
449
452
|
}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
readonly
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
readonly datum: unknown;
|
|
456
|
-
readonly formattedFrom?: string;
|
|
457
|
-
readonly formattedTo?: string;
|
|
458
|
-
readonly fromValue: number;
|
|
459
|
-
readonly fromValuePixel?: number;
|
|
460
|
-
readonly fromY: number;
|
|
461
|
-
readonly height: number;
|
|
462
|
-
readonly highValue: number;
|
|
463
|
-
readonly index: number;
|
|
464
|
-
readonly lowValue: number;
|
|
465
|
-
readonly orientation?: ChartBarOrientation;
|
|
466
|
-
readonly radius: number;
|
|
467
|
-
readonly renderOpacity?: number;
|
|
468
|
-
readonly toValue: number;
|
|
469
|
-
readonly toValuePixel?: number;
|
|
470
|
-
readonly toY: number;
|
|
471
|
-
readonly width: number;
|
|
472
|
-
readonly x: number;
|
|
473
|
-
readonly xValue: unknown;
|
|
474
|
-
readonly y: number;
|
|
453
|
+
|
|
454
|
+
declare class ChartCrosshairLabelTemplateDirective {
|
|
455
|
+
readonly templateRef: TemplateRef<any>;
|
|
456
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartCrosshairLabelTemplateDirective, never>;
|
|
457
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartCrosshairLabelTemplateDirective, "ng-template[monaChartCrosshairLabel]", never, {}, {}, never, never, true, never>;
|
|
475
458
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
459
|
+
|
|
460
|
+
type ChartAreaFillMode = "gradient" | "solid";
|
|
461
|
+
type ChartCurve = "linear" | "monotone-x" | "natural" | "step" | "step-after";
|
|
462
|
+
type ChartSeriesType = "area" | "bar" | "bubble" | "candlestick" | "donut" | "funnel" | "gauge" | "heatmap" | "line" | "ohlc" | "pie" | "polar" | "radar" | "radialBar" | "rangeArea" | "rangeBar" | "rose" | "scatter" | "treemap" | "waterfall";
|
|
463
|
+
type ChartSeriesFamily = "cartesian" | "funnel" | "heatmap" | "hierarchy" | "polar" | "radar" | "radialArc" | "sector" | "waterfall";
|
|
464
|
+
declare function getChartSeriesFamily(type: ChartSeriesType): ChartSeriesFamily;
|
|
465
|
+
declare function isCartesianCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
466
|
+
declare function isPolarCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
467
|
+
declare function isHierarchicalCoordinateFamily(family: ChartSeriesFamily): boolean;
|
|
468
|
+
type ChartLegendItemKind = "datum" | "semantic" | "series";
|
|
469
|
+
interface ChartLegendItem {
|
|
470
|
+
color: string;
|
|
471
|
+
dataIndex?: number;
|
|
472
|
+
datum?: unknown;
|
|
473
|
+
interactive?: boolean;
|
|
474
|
+
itemId: string;
|
|
475
|
+
kind?: ChartLegendItemKind;
|
|
476
|
+
name: string;
|
|
477
|
+
percentage?: number;
|
|
478
|
+
secondaryColor?: string;
|
|
479
|
+
seriesId: string;
|
|
480
|
+
seriesType: ChartSeriesType;
|
|
481
|
+
value?: number;
|
|
482
|
+
visible: boolean;
|
|
483
483
|
}
|
|
484
|
-
interface
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
484
|
+
interface ChartLegendItemTemplateContext {
|
|
485
|
+
$implicit: ChartLegendItem;
|
|
486
|
+
color: string;
|
|
487
|
+
dataIndex?: number;
|
|
488
|
+
datum?: unknown;
|
|
489
|
+
interactive?: boolean;
|
|
490
|
+
itemId: string;
|
|
491
|
+
kind?: ChartLegendItemKind;
|
|
492
|
+
name: string;
|
|
493
|
+
percentage?: number;
|
|
494
|
+
secondaryColor?: string;
|
|
495
|
+
series: ChartLegendItem;
|
|
496
|
+
seriesId: string;
|
|
497
|
+
seriesType: ChartSeriesType;
|
|
498
|
+
value?: number;
|
|
499
|
+
visible: boolean;
|
|
499
500
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
501
|
+
|
|
502
|
+
type ChartStackMode = "normal" | "percent";
|
|
503
|
+
|
|
504
|
+
type ChartDataLabelPosition = "auto" | "top" | "bottom" | "left" | "right" | "center" | "inside-start" | "inside-center" | "inside-end" | "outside-start" | "outside-end";
|
|
505
|
+
interface ChartDataLabelOptions {
|
|
506
|
+
/**
|
|
507
|
+
* Whether labels may overlap other generic data labels.
|
|
508
|
+
* Default: false
|
|
509
|
+
*/
|
|
510
|
+
allowOverlap?: boolean;
|
|
511
|
+
/**
|
|
512
|
+
* Collision padding around the label bounds.
|
|
513
|
+
* Default: 2
|
|
514
|
+
*/
|
|
515
|
+
collisionPadding?: number;
|
|
516
|
+
/**
|
|
517
|
+
* Optional text color override.
|
|
518
|
+
*/
|
|
519
|
+
color?: string;
|
|
520
|
+
/**
|
|
521
|
+
* Optional semantic formatter.
|
|
522
|
+
* Returning null/undefined/"" suppresses that label.
|
|
523
|
+
*/
|
|
524
|
+
formatter?: ChartDataLabelFormatter;
|
|
525
|
+
/**
|
|
526
|
+
* Maximum accepted labels for this series.
|
|
527
|
+
* Default: 200
|
|
528
|
+
*/
|
|
529
|
+
maxLabels?: number;
|
|
530
|
+
/**
|
|
531
|
+
* Distance in CSS pixels between the mark anchor and label.
|
|
532
|
+
* Default: 6
|
|
533
|
+
*/
|
|
534
|
+
offset?: number;
|
|
535
|
+
/**
|
|
536
|
+
* Plot-boundary behavior.
|
|
537
|
+
* Default: "hide"
|
|
538
|
+
*/
|
|
539
|
+
overflow?: "clip" | "hide";
|
|
540
|
+
/**
|
|
541
|
+
* Placement strategy.
|
|
542
|
+
* Default: "auto"
|
|
543
|
+
*/
|
|
544
|
+
position?: ChartDataLabelPosition;
|
|
545
|
+
}
|
|
546
|
+
type ChartDataLabelsInput = boolean | ChartDataLabelOptions;
|
|
547
|
+
interface ChartDataLabelContext<T = unknown> {
|
|
548
|
+
readonly $implicit: ChartDataLabelContext<T>;
|
|
549
|
+
readonly close?: number;
|
|
550
|
+
readonly color: string;
|
|
551
|
+
readonly dataIndex: number;
|
|
552
|
+
readonly datum: T;
|
|
512
553
|
readonly formattedClose?: string;
|
|
554
|
+
readonly formattedFrom?: string;
|
|
513
555
|
readonly formattedHigh?: string;
|
|
514
556
|
readonly formattedLow?: string;
|
|
515
557
|
readonly formattedOpen?: string;
|
|
516
|
-
readonly
|
|
517
|
-
readonly
|
|
518
|
-
readonly
|
|
519
|
-
readonly
|
|
520
|
-
readonly
|
|
521
|
-
readonly
|
|
522
|
-
readonly
|
|
523
|
-
readonly
|
|
524
|
-
readonly
|
|
525
|
-
readonly
|
|
526
|
-
readonly
|
|
558
|
+
readonly formattedSize?: string;
|
|
559
|
+
readonly formattedStackPercentage?: string;
|
|
560
|
+
readonly formattedStackTotal?: string;
|
|
561
|
+
readonly formattedTo?: string;
|
|
562
|
+
readonly formattedValue: string;
|
|
563
|
+
readonly formattedX: string;
|
|
564
|
+
readonly formattedY: string;
|
|
565
|
+
readonly fromValue?: number;
|
|
566
|
+
readonly high?: number;
|
|
567
|
+
readonly low?: number;
|
|
568
|
+
readonly markId: string;
|
|
569
|
+
readonly open?: number;
|
|
570
|
+
readonly rawValue?: unknown;
|
|
571
|
+
/**
|
|
572
|
+
* Persistent selection state for this mark.
|
|
573
|
+
*/
|
|
574
|
+
readonly selected: boolean;
|
|
575
|
+
readonly seriesId: string;
|
|
576
|
+
readonly seriesName: string;
|
|
577
|
+
readonly seriesType: ChartSeriesType;
|
|
578
|
+
readonly sizeValue?: number;
|
|
579
|
+
readonly stackEnd?: number;
|
|
580
|
+
readonly stackMode?: ChartStackMode;
|
|
581
|
+
readonly stackPercentage?: number;
|
|
582
|
+
readonly stackStart?: number;
|
|
583
|
+
readonly stackTotal?: number;
|
|
584
|
+
readonly toValue?: number;
|
|
585
|
+
readonly value?: unknown;
|
|
586
|
+
readonly xValue?: unknown;
|
|
587
|
+
readonly yValue?: unknown;
|
|
527
588
|
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
readonly
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
589
|
+
type ChartDataLabelFormatter<T = unknown> = (context: ChartDataLabelContext<T>) => string | null | undefined;
|
|
590
|
+
|
|
591
|
+
declare class ChartDataLabelTemplateDirective<T = unknown> {
|
|
592
|
+
readonly templateRef: TemplateRef<ChartDataLabelContext<T>>;
|
|
593
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartDataLabelTemplateDirective<any>, never>;
|
|
594
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartDataLabelTemplateDirective<any>, "ng-template[monaChartDataLabel]", never, {}, {}, never, never, true, never>;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
type ChartRadialArcFillMode = "gradient" | "solid";
|
|
598
|
+
type ChartRoseScaleMode = "area" | "radius";
|
|
599
|
+
type ChartGaugeIndicator = "arc" | "both" | "needle";
|
|
600
|
+
interface ChartRadialDatumVisibilityEvent {
|
|
601
|
+
readonly category: unknown;
|
|
602
|
+
readonly dataIndex: number;
|
|
535
603
|
readonly datum: unknown;
|
|
536
|
-
readonly
|
|
537
|
-
readonly
|
|
538
|
-
readonly
|
|
539
|
-
readonly
|
|
540
|
-
readonly
|
|
541
|
-
readonly high: number;
|
|
542
|
-
readonly highY: number;
|
|
543
|
-
readonly index: number;
|
|
544
|
-
readonly low: number;
|
|
545
|
-
readonly lowY: number;
|
|
546
|
-
readonly open: number;
|
|
547
|
-
readonly openY: number;
|
|
548
|
-
readonly renderOpacity?: number;
|
|
549
|
-
readonly tickWidth: number;
|
|
550
|
-
readonly totalWidth: number;
|
|
551
|
-
readonly wickWidth: number;
|
|
552
|
-
readonly xKey?: ChartInteractionXKey;
|
|
553
|
-
readonly xValue: unknown;
|
|
604
|
+
readonly itemId: string;
|
|
605
|
+
readonly seriesId: string;
|
|
606
|
+
readonly seriesName: string;
|
|
607
|
+
readonly seriesType: "radialBar" | "rose";
|
|
608
|
+
readonly visible: boolean;
|
|
554
609
|
}
|
|
555
|
-
interface
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
610
|
+
interface ChartGaugeCenterTemplateContext {
|
|
611
|
+
readonly $implicit: number;
|
|
612
|
+
readonly formattedMax: string;
|
|
613
|
+
readonly formattedMin: string;
|
|
614
|
+
readonly formattedValue: string;
|
|
615
|
+
readonly isClamped: boolean;
|
|
616
|
+
readonly max: number;
|
|
617
|
+
readonly min: number;
|
|
618
|
+
readonly ratio: number;
|
|
619
|
+
readonly seriesId: string;
|
|
620
|
+
readonly seriesName: string;
|
|
621
|
+
readonly value: number;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
declare class ChartGaugeCenterTemplateDirective {
|
|
625
|
+
readonly templateRef: TemplateRef<ChartGaugeCenterTemplateContext>;
|
|
626
|
+
static ngTemplateContextGuard(_dir: ChartGaugeCenterTemplateDirective, _ctx: unknown): _ctx is ChartGaugeCenterTemplateContext;
|
|
627
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartGaugeCenterTemplateDirective, never>;
|
|
628
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartGaugeCenterTemplateDirective, "ng-template[monaChartGaugeCenterTemplate]", never, {}, {}, never, never, true, never>;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
declare class ChartLegendItemTemplateDirective {
|
|
632
|
+
readonly templateRef: TemplateRef<ChartLegendItemTemplateContext>;
|
|
633
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartLegendItemTemplateDirective, never>;
|
|
634
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartLegendItemTemplateDirective, "ng-template[monaChartLegendItemTemplate]", never, {}, {}, never, never, true, never>;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
declare class ChartReferenceLabelTemplateDirective {
|
|
638
|
+
readonly templateRef: TemplateRef<any>;
|
|
639
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartReferenceLabelTemplateDirective, never>;
|
|
640
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartReferenceLabelTemplateDirective, "ng-template[monaChartReferenceLabel]", never, {}, {}, never, never, true, never>;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
declare class ChartSliceLabelTemplateDirective {
|
|
644
|
+
readonly templateRef: TemplateRef<ChartSliceLabelTemplateContext>;
|
|
645
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartSliceLabelTemplateDirective, never>;
|
|
646
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartSliceLabelTemplateDirective, "ng-template[monaChartSliceLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
interface ChartHierarchyNodeContext<T = unknown> {
|
|
650
|
+
readonly aggregateValue: number;
|
|
651
|
+
readonly childCount: number;
|
|
652
|
+
readonly dataIndex: number;
|
|
653
|
+
readonly datum: T;
|
|
654
|
+
readonly depth: number;
|
|
655
|
+
readonly descendantCount: number;
|
|
656
|
+
readonly formattedLabel: string;
|
|
657
|
+
readonly formattedPath: readonly string[];
|
|
658
|
+
readonly formattedValue: string;
|
|
659
|
+
readonly isCollapsed: boolean;
|
|
660
|
+
readonly isLeaf: boolean;
|
|
661
|
+
readonly label: unknown;
|
|
662
|
+
readonly nodeId: string;
|
|
663
|
+
readonly parentId?: string;
|
|
664
|
+
readonly path: readonly unknown[];
|
|
665
|
+
readonly percentageOfParent?: number;
|
|
666
|
+
readonly percentageOfRoot?: number;
|
|
667
|
+
readonly rawValue?: number;
|
|
668
|
+
readonly siblingIndex: number;
|
|
669
|
+
readonly sourceIndexPath: readonly number[];
|
|
670
|
+
readonly treeHeight: number;
|
|
671
|
+
}
|
|
672
|
+
interface ChartHierarchyPointMetadata {
|
|
673
|
+
readonly aggregateValue: number;
|
|
674
|
+
readonly childCount: number;
|
|
675
|
+
readonly dataIndex: number;
|
|
676
|
+
readonly depth: number;
|
|
677
|
+
readonly descendantCount: number;
|
|
678
|
+
readonly formattedLabel: string;
|
|
679
|
+
readonly formattedPath: readonly string[];
|
|
680
|
+
readonly formattedValue: string;
|
|
681
|
+
readonly isCollapsed: boolean;
|
|
682
|
+
readonly isLeaf: boolean;
|
|
683
|
+
readonly label: unknown;
|
|
684
|
+
readonly nodeId: string;
|
|
685
|
+
readonly parentId?: string;
|
|
686
|
+
readonly path: readonly unknown[];
|
|
687
|
+
readonly percentageOfParent?: number;
|
|
688
|
+
readonly percentageOfRoot?: number;
|
|
689
|
+
readonly rawValue?: number;
|
|
690
|
+
readonly siblingIndex: number;
|
|
691
|
+
readonly sourceIndexPath: readonly number[];
|
|
692
|
+
readonly treeHeight: number;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
type ChartTreemapTile = "binary" | "dice" | "slice" | "slice-dice" | "squarify";
|
|
696
|
+
type ChartTreemapSort = "ascending" | "descending" | "none";
|
|
697
|
+
interface ChartTreemapLabelTemplateContext<T = unknown> {
|
|
698
|
+
readonly $implicit: ChartHierarchyNodeContext<T>;
|
|
699
|
+
readonly bounds: ChartRect;
|
|
700
|
+
readonly color: string;
|
|
701
|
+
readonly datum: T;
|
|
702
|
+
readonly depth: number;
|
|
703
|
+
readonly formattedLabel: string;
|
|
704
|
+
readonly formattedPath: readonly string[];
|
|
705
|
+
readonly formattedValue: string;
|
|
706
|
+
readonly isCollapsed: boolean;
|
|
707
|
+
readonly isLeaf: boolean;
|
|
708
|
+
readonly label: unknown;
|
|
709
|
+
readonly node: ChartHierarchyNodeContext<T>;
|
|
710
|
+
readonly nodeId: string;
|
|
711
|
+
readonly path: readonly unknown[];
|
|
712
|
+
readonly percentageOfParent?: number;
|
|
713
|
+
readonly percentageOfRoot?: number;
|
|
714
|
+
readonly textColor: string;
|
|
715
|
+
readonly value: number;
|
|
716
|
+
}
|
|
717
|
+
interface ChartTreemapNodeVisibilityEvent<T = unknown> {
|
|
718
|
+
readonly dataIndex?: number;
|
|
719
|
+
readonly datum?: T;
|
|
720
|
+
readonly depth?: number;
|
|
721
|
+
readonly formattedLabel?: string;
|
|
722
|
+
readonly label?: unknown;
|
|
723
|
+
readonly nodeId: string;
|
|
724
|
+
readonly seriesId: string;
|
|
725
|
+
readonly seriesName: string;
|
|
726
|
+
readonly seriesType: "treemap";
|
|
727
|
+
readonly visible: boolean;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
declare class ChartTreemapLabelTemplateDirective {
|
|
731
|
+
readonly templateRef: TemplateRef<ChartTreemapLabelTemplateContext<unknown>>;
|
|
732
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartTreemapLabelTemplateDirective, never>;
|
|
733
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartTreemapLabelTemplateDirective, "ng-template[monaChartTreemapLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
type ChartFinancialDirection = "falling" | "neutral" | "rising";
|
|
737
|
+
type ChartFinancialFillMode = "filled" | "hollow";
|
|
738
|
+
|
|
739
|
+
type ChartPointValueKind = "ohlc" | "range" | "scalar" | "waterfall";
|
|
740
|
+
interface ChartScalarPointValue {
|
|
741
|
+
readonly valueKind: "scalar";
|
|
742
|
+
readonly yValue: number;
|
|
743
|
+
}
|
|
744
|
+
interface ChartRangePointValue {
|
|
745
|
+
readonly formattedFrom: string;
|
|
746
|
+
readonly formattedTo: string;
|
|
747
|
+
readonly fromValue: number;
|
|
748
|
+
readonly toValue: number;
|
|
749
|
+
readonly valueKind: "range";
|
|
750
|
+
}
|
|
751
|
+
interface ChartOhlcPointValue {
|
|
752
|
+
readonly change?: number;
|
|
753
|
+
readonly changePercentage?: number;
|
|
754
|
+
readonly close: number;
|
|
755
|
+
readonly direction: ChartFinancialDirection;
|
|
756
|
+
readonly formattedChange?: string;
|
|
757
|
+
readonly formattedChangePercentage?: string;
|
|
758
|
+
readonly formattedClose?: string;
|
|
759
|
+
readonly formattedHigh?: string;
|
|
760
|
+
readonly formattedLow?: string;
|
|
761
|
+
readonly formattedOpen?: string;
|
|
762
|
+
readonly high: number;
|
|
763
|
+
readonly low: number;
|
|
764
|
+
readonly open: number;
|
|
765
|
+
readonly valueKind: "ohlc";
|
|
766
|
+
}
|
|
767
|
+
interface ChartWaterfallPointValue {
|
|
768
|
+
readonly barEnd: number;
|
|
769
|
+
readonly barStart: number;
|
|
770
|
+
readonly cumulativeAfter: number;
|
|
771
|
+
readonly cumulativeBefore: number;
|
|
772
|
+
readonly deltaValue?: number;
|
|
773
|
+
readonly formattedCumulativeAfter: string;
|
|
774
|
+
readonly formattedCumulativeBefore: string;
|
|
775
|
+
readonly formattedDelta?: string;
|
|
776
|
+
readonly kind: ChartWaterfallDatumKind;
|
|
777
|
+
readonly valueKind: "waterfall";
|
|
778
|
+
}
|
|
779
|
+
type ChartPointValue = ChartOhlcPointValue | ChartRangePointValue | ChartScalarPointValue | ChartWaterfallPointValue;
|
|
780
|
+
|
|
781
|
+
interface ChartTooltipPointContext<T = unknown> {
|
|
782
|
+
category?: unknown;
|
|
783
|
+
categoryX?: string;
|
|
784
|
+
categoryY?: string;
|
|
785
|
+
change?: number;
|
|
786
|
+
changePercentage?: number;
|
|
787
|
+
close?: number;
|
|
788
|
+
color: string;
|
|
789
|
+
dataIndex: number;
|
|
790
|
+
datum: T;
|
|
791
|
+
financial?: ChartOhlcPointValue;
|
|
792
|
+
financialDirection?: ChartFinancialDirection;
|
|
793
|
+
formattedCategory?: string;
|
|
794
|
+
formattedChange?: string;
|
|
795
|
+
formattedChangePercentage?: string;
|
|
796
|
+
formattedClose?: string;
|
|
797
|
+
formattedFrom?: string;
|
|
576
798
|
formattedHigh?: string;
|
|
577
799
|
formattedLow?: string;
|
|
578
800
|
formattedOpen?: string;
|
|
@@ -583,38 +805,23 @@ interface SceneHitTarget {
|
|
|
583
805
|
formattedStackPercentage?: string;
|
|
584
806
|
formattedStackTotal?: string;
|
|
585
807
|
formattedTo?: string;
|
|
586
|
-
|
|
808
|
+
formattedX: string;
|
|
587
809
|
formattedXValue?: string;
|
|
810
|
+
formattedY: string;
|
|
588
811
|
formattedYCategory?: string;
|
|
589
812
|
fromValue?: number;
|
|
590
813
|
funnel?: ChartFunnelPointMetadata;
|
|
591
814
|
hierarchy?: ChartHierarchyPointMetadata;
|
|
592
815
|
high?: number;
|
|
593
|
-
highPoint?: ChartPoint;
|
|
594
|
-
highValue?: number;
|
|
595
|
-
index: number;
|
|
596
816
|
isClamped?: boolean;
|
|
597
|
-
isPositive?: boolean;
|
|
598
|
-
itemId?: string;
|
|
599
817
|
low?: number;
|
|
600
|
-
|
|
601
|
-
lowValue?: number;
|
|
602
|
-
/** Internal logical painter order for raw and sampled marker parity. */
|
|
603
|
-
markerInteractionOrder?: {
|
|
604
|
-
readonly seriesOrdinal: number;
|
|
605
|
-
readonly sourceOrdinal: number;
|
|
606
|
-
};
|
|
818
|
+
markId: string;
|
|
607
819
|
open?: number;
|
|
608
820
|
percentage?: number;
|
|
609
|
-
point?: ChartPoint;
|
|
610
821
|
radialMax?: number;
|
|
611
822
|
radialMin?: number;
|
|
612
823
|
radialRatio?: number;
|
|
613
|
-
radius?: number;
|
|
614
|
-
range?: SceneRangeHitValue;
|
|
615
|
-
rangeBand?: SceneRangeBandGeometry;
|
|
616
824
|
rawValue?: unknown;
|
|
617
|
-
renderOrder?: number;
|
|
618
825
|
seriesId: string;
|
|
619
826
|
seriesName: string;
|
|
620
827
|
seriesType: ChartSeriesType;
|
|
@@ -630,863 +837,472 @@ interface SceneHitTarget {
|
|
|
630
837
|
toValue?: number;
|
|
631
838
|
value?: unknown;
|
|
632
839
|
valueKind?: ChartPointValueKind;
|
|
633
|
-
visualBounds?: ChartRect;
|
|
634
|
-
visualRadius?: number;
|
|
635
840
|
waterfall?: ChartWaterfallPointValue;
|
|
636
841
|
xAxisId?: string;
|
|
637
842
|
xAxisTitle?: string;
|
|
638
|
-
xIndex?: number;
|
|
639
|
-
xKey: ChartInteractionXKey;
|
|
640
843
|
xValue: unknown;
|
|
641
844
|
yAxisId?: string;
|
|
642
845
|
yAxisTitle?: string;
|
|
643
846
|
yCategory?: unknown;
|
|
644
|
-
yIndex?: number;
|
|
645
847
|
yValue?: number;
|
|
646
848
|
}
|
|
647
|
-
interface
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
readonly
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
readonly xAxisId?: string;
|
|
654
|
-
readonly xAxisTitle?: string;
|
|
655
|
-
readonly xKey: ChartInteractionXKey;
|
|
656
|
-
readonly xValue: unknown;
|
|
657
|
-
readonly yAxisId?: string;
|
|
658
|
-
readonly yAxisTitle?: string;
|
|
659
|
-
}
|
|
660
|
-
interface ScenePoint {
|
|
661
|
-
animationKey?: string;
|
|
662
|
-
datum: unknown;
|
|
663
|
-
defined: boolean;
|
|
664
|
-
index: number;
|
|
665
|
-
renderOpacity?: number;
|
|
666
|
-
x: number;
|
|
667
|
-
xValue: unknown;
|
|
668
|
-
y: number;
|
|
669
|
-
yValue: number;
|
|
849
|
+
interface ChartTooltipTemplateContext<T = unknown> {
|
|
850
|
+
$implicit: ChartTooltipPointContext<T>;
|
|
851
|
+
point: ChartTooltipPointContext<T>;
|
|
852
|
+
points: readonly ChartTooltipPointContext<T>[];
|
|
853
|
+
series: readonly string[];
|
|
854
|
+
shared: boolean;
|
|
670
855
|
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
readonly
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
readonly stackStartValue?: number;
|
|
677
|
-
readonly stackTotal?: number;
|
|
678
|
-
readonly synthetic?: boolean;
|
|
856
|
+
|
|
857
|
+
declare class ChartTooltipTemplateDirective {
|
|
858
|
+
readonly templateRef: TemplateRef<ChartTooltipTemplateContext<unknown>>;
|
|
859
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartTooltipTemplateDirective, never>;
|
|
860
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartTooltipTemplateDirective, "ng-template[monaChartTooltipTemplate]", never, {}, {}, never, never, true, never>;
|
|
679
861
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
862
|
+
|
|
863
|
+
type ChartAnnotationAxisValue = Date | number | string;
|
|
864
|
+
type ChartOverlayLayer = "overlay" | "underlay";
|
|
865
|
+
type ChartReferenceLineStyle = "dashed" | "dotted" | "solid";
|
|
866
|
+
type ChartReferenceLabelPosition = "center" | "end" | "start";
|
|
867
|
+
type ChartAnnotationMarker = "circle" | "diamond" | "none";
|
|
868
|
+
type ChartAnnotationLabelPlacement = "bottom" | "left" | "right" | "top";
|
|
869
|
+
interface ChartReferenceLineLabelContext<T extends ChartAnnotationAxisValue = ChartAnnotationAxisValue> {
|
|
870
|
+
readonly $implicit: T;
|
|
871
|
+
readonly axis: "x" | "y";
|
|
872
|
+
readonly axisId: string;
|
|
873
|
+
readonly coordinate: number;
|
|
874
|
+
readonly formattedValue: string;
|
|
875
|
+
readonly kind: "line";
|
|
876
|
+
readonly value: T;
|
|
877
|
+
}
|
|
878
|
+
interface ChartReferenceBandLabelContext<TFrom extends ChartAnnotationAxisValue = ChartAnnotationAxisValue, TTo extends ChartAnnotationAxisValue = ChartAnnotationAxisValue> {
|
|
879
|
+
readonly $implicit: {
|
|
880
|
+
readonly from: TFrom;
|
|
881
|
+
readonly to: TTo;
|
|
882
|
+
};
|
|
883
|
+
readonly axis: "x" | "y";
|
|
884
|
+
readonly axisId: string;
|
|
885
|
+
readonly bounds: ChartRect;
|
|
886
|
+
readonly formattedFrom: string;
|
|
887
|
+
readonly formattedTo: string;
|
|
888
|
+
readonly from: TFrom;
|
|
889
|
+
readonly kind: "band";
|
|
890
|
+
readonly to: TTo;
|
|
891
|
+
}
|
|
892
|
+
type ChartReferenceLabelTemplateContext = ChartReferenceLineLabelContext | ChartReferenceBandLabelContext;
|
|
893
|
+
interface ChartAnnotationLabelTemplateContext<TData = unknown> {
|
|
894
|
+
readonly $implicit: TData;
|
|
895
|
+
readonly data: TData;
|
|
896
|
+
readonly formattedX: string;
|
|
897
|
+
readonly formattedY: string;
|
|
898
|
+
readonly point: ChartPoint;
|
|
899
|
+
readonly x: ChartAnnotationAxisValue;
|
|
900
|
+
readonly xAxisId: string;
|
|
901
|
+
readonly y: ChartAnnotationAxisValue;
|
|
902
|
+
readonly yAxisId: string;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
type ChartBarOrientation = "horizontal" | "vertical";
|
|
906
|
+
|
|
907
|
+
type ChartSelectionMode = "single" | "multiple";
|
|
908
|
+
type ChartSelectionChangeSource = "brush" | "click" | "keyboard" | "programmatic";
|
|
909
|
+
interface ChartSelectedPoint<T = unknown> {
|
|
910
|
+
readonly close?: number;
|
|
911
|
+
readonly dataIndex: number;
|
|
912
|
+
readonly datum: T;
|
|
687
913
|
readonly fromValue?: number;
|
|
688
|
-
readonly
|
|
689
|
-
readonly
|
|
690
|
-
readonly
|
|
691
|
-
readonly
|
|
692
|
-
readonly
|
|
693
|
-
readonly
|
|
694
|
-
readonly
|
|
914
|
+
readonly high?: number;
|
|
915
|
+
readonly low?: number;
|
|
916
|
+
readonly markId: string;
|
|
917
|
+
readonly open?: number;
|
|
918
|
+
readonly rawValue?: unknown;
|
|
919
|
+
readonly seriesId: string;
|
|
920
|
+
readonly seriesName: string;
|
|
921
|
+
readonly seriesType: ChartSeriesType;
|
|
922
|
+
readonly stackEnd?: number;
|
|
923
|
+
readonly stackPercentage?: number;
|
|
924
|
+
readonly stackStart?: number;
|
|
695
925
|
readonly toValue?: number;
|
|
696
|
-
readonly
|
|
697
|
-
readonly xValue
|
|
926
|
+
readonly value?: unknown;
|
|
927
|
+
readonly xValue?: unknown;
|
|
928
|
+
readonly yValue?: unknown;
|
|
698
929
|
}
|
|
699
|
-
interface
|
|
700
|
-
readonly
|
|
701
|
-
readonly
|
|
702
|
-
readonly
|
|
703
|
-
readonly
|
|
704
|
-
readonly
|
|
705
|
-
readonly
|
|
706
|
-
readonly
|
|
707
|
-
readonly x: number;
|
|
708
|
-
readonly xValue: unknown;
|
|
709
|
-
readonly y: number;
|
|
710
|
-
readonly yValue: number;
|
|
930
|
+
interface ChartSelectionChangeEvent<T = unknown> {
|
|
931
|
+
readonly addedMarkIds: readonly string[];
|
|
932
|
+
readonly changedPoints: readonly ChartSelectedPoint<T>[];
|
|
933
|
+
readonly previousSelectedMarkIds: readonly string[];
|
|
934
|
+
readonly removedMarkIds: readonly string[];
|
|
935
|
+
readonly selectedMarkIds: readonly string[];
|
|
936
|
+
readonly source: ChartSelectionChangeSource;
|
|
937
|
+
readonly visibleSelectedPoints: readonly ChartSelectedPoint<T>[];
|
|
711
938
|
}
|
|
712
939
|
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
940
|
+
type ChartBrushMode = "x" | "y" | "xy";
|
|
941
|
+
type ChartBrushActivation = "drag" | "shift-drag";
|
|
942
|
+
type ChartBrushLineStyle = "solid" | "dashed" | "dotted";
|
|
943
|
+
type ChartBrushHitPolicy = "center" | "intersect";
|
|
944
|
+
type ChartBrushSelectionBehavior = "none" | "replace" | "add" | "remove" | "toggle";
|
|
945
|
+
type ChartBrushPhase = "start" | "update" | "end" | "cancel";
|
|
946
|
+
type ChartBrushCancelReason = "authority-change" | "component-disabled" | "data-change" | "destroyed" | "disabled" | "escape" | "lost-pointer-capture" | "pointer-cancel" | "pointer-leave" | "viewport-change";
|
|
947
|
+
interface ChartBrushCategoryRange {
|
|
948
|
+
readonly axis: "x" | "y";
|
|
949
|
+
readonly axisId: string;
|
|
950
|
+
readonly fromIndex: number;
|
|
951
|
+
readonly fromValue: unknown;
|
|
952
|
+
readonly kind: "category";
|
|
953
|
+
readonly toIndex: number;
|
|
954
|
+
readonly toValue: unknown;
|
|
718
955
|
}
|
|
719
|
-
interface
|
|
720
|
-
axis: "x" | "y";
|
|
721
|
-
axisId
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
isPrimary?: boolean;
|
|
727
|
-
labelMaxWidth?: number;
|
|
728
|
-
labelPadding?: number;
|
|
729
|
-
labelRotation?: number;
|
|
730
|
-
labels?: boolean;
|
|
731
|
-
position: ChartAxisPosition;
|
|
732
|
-
registrationId?: string;
|
|
733
|
-
scaleType?: string;
|
|
734
|
-
sideOffset?: number;
|
|
735
|
-
stackIndex?: number;
|
|
736
|
-
tickMarks?: boolean;
|
|
737
|
-
tickSize?: number;
|
|
738
|
-
ticks: readonly ChartAxisSceneTick[];
|
|
739
|
-
title: string;
|
|
740
|
-
titlePadding?: number;
|
|
741
|
-
unitMode?: "percent" | "raw";
|
|
742
|
-
visible: boolean;
|
|
956
|
+
interface ChartBrushContinuousRange {
|
|
957
|
+
readonly axis: "x" | "y";
|
|
958
|
+
readonly axisId: string;
|
|
959
|
+
readonly from: number | Date;
|
|
960
|
+
readonly kind: "continuous";
|
|
961
|
+
readonly scaleType: "linear" | "log" | "pow" | "sqrt" | "symlog" | "time" | "utc";
|
|
962
|
+
readonly to: number | Date;
|
|
743
963
|
}
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
readonly
|
|
747
|
-
readonly
|
|
748
|
-
readonly
|
|
964
|
+
type ChartBrushAxisRange = ChartBrushCategoryRange | ChartBrushContinuousRange;
|
|
965
|
+
interface ChartBrushChangeEvent<T = unknown> {
|
|
966
|
+
readonly cancelReason?: ChartBrushCancelReason;
|
|
967
|
+
readonly matchedMarkIds?: readonly string[];
|
|
968
|
+
readonly matchedPoints?: readonly ChartSelectedPoint<T>[];
|
|
969
|
+
readonly mode: ChartBrushMode;
|
|
970
|
+
readonly phase: ChartBrushPhase;
|
|
971
|
+
readonly pixelBounds: ChartRect | null;
|
|
972
|
+
readonly xRange?: ChartBrushAxisRange;
|
|
973
|
+
readonly yRange?: ChartBrushAxisRange;
|
|
749
974
|
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
readonly
|
|
756
|
-
readonly
|
|
757
|
-
readonly
|
|
758
|
-
readonly
|
|
759
|
-
readonly
|
|
975
|
+
|
|
976
|
+
type ChartCrosshairMode = "auto" | "x" | "xy" | "y";
|
|
977
|
+
type ChartCrosshairSnapMode = "nearest" | "pointer";
|
|
978
|
+
type ChartCrosshairLineStyle = "dashed" | "dotted" | "solid";
|
|
979
|
+
interface ChartCrosshairAxisLabelContext<T = unknown> {
|
|
980
|
+
readonly $implicit: T;
|
|
981
|
+
readonly axis: "x" | "y";
|
|
982
|
+
readonly axisId: string;
|
|
983
|
+
readonly coordinate: number;
|
|
984
|
+
readonly formattedValue: string;
|
|
985
|
+
readonly snapped: boolean;
|
|
986
|
+
readonly source: "keyboard" | "pointer" | "sync";
|
|
987
|
+
readonly value: T;
|
|
760
988
|
}
|
|
761
|
-
interface
|
|
762
|
-
readonly
|
|
763
|
-
readonly
|
|
764
|
-
readonly
|
|
765
|
-
readonly
|
|
766
|
-
readonly
|
|
767
|
-
readonly renderOpacity?: number;
|
|
768
|
-
readonly style: ChartMarkerSeriesStyle;
|
|
769
|
-
readonly type: "bubble";
|
|
770
|
-
readonly xAxisId: string;
|
|
771
|
-
readonly yAxisId: string;
|
|
989
|
+
interface ChartCrosshairResolvedAxisValue<T = unknown> {
|
|
990
|
+
readonly axis: "x" | "y";
|
|
991
|
+
readonly axisId: string;
|
|
992
|
+
readonly coordinate: number;
|
|
993
|
+
readonly formattedValue: string;
|
|
994
|
+
readonly value: T;
|
|
772
995
|
}
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
renderOpacity?: number;
|
|
781
|
-
showPoints: boolean;
|
|
782
|
-
style: ChartSeriesStyle;
|
|
783
|
-
type: "line";
|
|
784
|
-
xAxisId: string;
|
|
785
|
-
yAxisId: string;
|
|
996
|
+
|
|
997
|
+
type ChartInteractionXKey = number | string;
|
|
998
|
+
interface ChartCornerRadii {
|
|
999
|
+
readonly bottomLeft: number;
|
|
1000
|
+
readonly bottomRight: number;
|
|
1001
|
+
readonly topLeft: number;
|
|
1002
|
+
readonly topRight: number;
|
|
786
1003
|
}
|
|
787
|
-
interface
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
1004
|
+
interface SceneArcHitGeometry {
|
|
1005
|
+
center: ChartPoint;
|
|
1006
|
+
cornerRadius?: number;
|
|
1007
|
+
endAngle: number;
|
|
1008
|
+
innerRadius: number;
|
|
1009
|
+
outerRadius: number;
|
|
1010
|
+
padAngle: number;
|
|
1011
|
+
startAngle: number;
|
|
1012
|
+
}
|
|
1013
|
+
interface SceneBar {
|
|
1014
|
+
animationKey?: string;
|
|
1015
|
+
categorySize?: number;
|
|
1016
|
+
categoryStartPixel?: number;
|
|
1017
|
+
cornerRadii?: ChartCornerRadii;
|
|
1018
|
+
datum: unknown;
|
|
1019
|
+
height: number;
|
|
1020
|
+
index: number;
|
|
1021
|
+
isPositive: boolean;
|
|
796
1022
|
orientation?: ChartBarOrientation;
|
|
797
|
-
|
|
1023
|
+
radius: number;
|
|
798
1024
|
renderOpacity?: number;
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
1025
|
+
stackEndValue?: number;
|
|
1026
|
+
stackGroup?: string;
|
|
1027
|
+
stackMode?: ChartStackMode;
|
|
1028
|
+
stackPercentage?: number;
|
|
1029
|
+
stackPosition?: "inner" | "outer" | "single";
|
|
1030
|
+
stackStartValue?: number;
|
|
1031
|
+
stackTotal?: number;
|
|
1032
|
+
synthetic?: boolean;
|
|
1033
|
+
valueEndPixel?: number;
|
|
1034
|
+
valueStartPixel?: number;
|
|
1035
|
+
width: number;
|
|
1036
|
+
x: number;
|
|
1037
|
+
xValue: unknown;
|
|
1038
|
+
y: number;
|
|
1039
|
+
yValue: number;
|
|
804
1040
|
}
|
|
805
|
-
interface
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
fillOpacity: number;
|
|
809
|
-
id: string;
|
|
810
|
-
name: string;
|
|
811
|
-
orientation?: ChartBarOrientation;
|
|
812
|
-
renderOpacity?: number;
|
|
813
|
-
style: ChartSeriesStyle;
|
|
814
|
-
type: "bar";
|
|
815
|
-
xAxisId: string;
|
|
816
|
-
yAxisId: string;
|
|
1041
|
+
interface SceneRangeBandGeometry {
|
|
1042
|
+
readonly fromPoint: ChartPoint;
|
|
1043
|
+
readonly toPoint: ChartPoint;
|
|
817
1044
|
}
|
|
818
|
-
interface
|
|
819
|
-
readonly
|
|
820
|
-
readonly
|
|
821
|
-
readonly
|
|
822
|
-
readonly
|
|
823
|
-
readonly
|
|
1045
|
+
interface SceneRangeBar {
|
|
1046
|
+
readonly animationKey?: string;
|
|
1047
|
+
readonly categorySize?: number;
|
|
1048
|
+
readonly categoryStartPixel?: number;
|
|
1049
|
+
readonly cornerRadii?: ChartCornerRadii;
|
|
1050
|
+
readonly datum: unknown;
|
|
1051
|
+
readonly formattedFrom?: string;
|
|
1052
|
+
readonly formattedTo?: string;
|
|
1053
|
+
readonly fromValue: number;
|
|
1054
|
+
readonly fromValuePixel?: number;
|
|
1055
|
+
readonly fromY: number;
|
|
1056
|
+
readonly height: number;
|
|
1057
|
+
readonly highValue: number;
|
|
1058
|
+
readonly index: number;
|
|
1059
|
+
readonly lowValue: number;
|
|
824
1060
|
readonly orientation?: ChartBarOrientation;
|
|
1061
|
+
readonly radius: number;
|
|
825
1062
|
readonly renderOpacity?: number;
|
|
826
|
-
readonly
|
|
827
|
-
readonly
|
|
828
|
-
readonly
|
|
829
|
-
readonly
|
|
1063
|
+
readonly toValue: number;
|
|
1064
|
+
readonly toValuePixel?: number;
|
|
1065
|
+
readonly toY: number;
|
|
1066
|
+
readonly width: number;
|
|
1067
|
+
readonly x: number;
|
|
1068
|
+
readonly xValue: unknown;
|
|
1069
|
+
readonly y: number;
|
|
830
1070
|
}
|
|
831
|
-
interface
|
|
832
|
-
readonly
|
|
833
|
-
readonly
|
|
834
|
-
readonly
|
|
835
|
-
readonly
|
|
836
|
-
readonly
|
|
837
|
-
readonly
|
|
838
|
-
readonly points: readonly SceneRangeAreaPoint[];
|
|
839
|
-
readonly renderOpacity?: number;
|
|
840
|
-
readonly showPoints: boolean;
|
|
841
|
-
readonly strokeWidth: number;
|
|
842
|
-
readonly style: ChartSeriesStyle;
|
|
843
|
-
readonly type: "rangeArea";
|
|
844
|
-
readonly xAxisId: string;
|
|
845
|
-
readonly yAxisId: string;
|
|
1071
|
+
interface SceneRangeHitValue {
|
|
1072
|
+
readonly formattedFrom: string;
|
|
1073
|
+
readonly formattedTo: string;
|
|
1074
|
+
readonly fromValue: number;
|
|
1075
|
+
readonly highValue: number;
|
|
1076
|
+
readonly lowValue: number;
|
|
1077
|
+
readonly toValue: number;
|
|
846
1078
|
}
|
|
847
|
-
interface
|
|
848
|
-
readonly
|
|
849
|
-
readonly
|
|
850
|
-
readonly
|
|
851
|
-
readonly
|
|
852
|
-
readonly
|
|
853
|
-
readonly
|
|
854
|
-
readonly
|
|
855
|
-
readonly
|
|
1079
|
+
interface SceneFinancialHitValue {
|
|
1080
|
+
readonly change?: number;
|
|
1081
|
+
readonly changePercentage?: number;
|
|
1082
|
+
readonly close: number;
|
|
1083
|
+
readonly direction: ChartFinancialDirection;
|
|
1084
|
+
readonly formattedChange?: string;
|
|
1085
|
+
readonly formattedChangePercentage?: string;
|
|
1086
|
+
readonly formattedClose?: string;
|
|
1087
|
+
readonly formattedHigh?: string;
|
|
1088
|
+
readonly formattedLow?: string;
|
|
1089
|
+
readonly formattedOpen?: string;
|
|
1090
|
+
readonly high: number;
|
|
1091
|
+
readonly low: number;
|
|
1092
|
+
readonly open: number;
|
|
1093
|
+
readonly valueKind: "ohlc";
|
|
856
1094
|
}
|
|
857
|
-
interface
|
|
1095
|
+
interface SceneCandlestickMark {
|
|
1096
|
+
readonly animationKey?: string;
|
|
1097
|
+
readonly bodyBounds: ChartRect;
|
|
858
1098
|
readonly bodyWidth: number;
|
|
1099
|
+
readonly centerX: number;
|
|
1100
|
+
readonly change?: number;
|
|
1101
|
+
readonly changePercentage?: number;
|
|
1102
|
+
readonly close: number;
|
|
1103
|
+
readonly closeY: number;
|
|
1104
|
+
readonly datum: unknown;
|
|
1105
|
+
readonly direction: ChartFinancialDirection;
|
|
859
1106
|
readonly fillMode: ChartFinancialFillMode;
|
|
860
|
-
readonly
|
|
861
|
-
readonly
|
|
862
|
-
readonly
|
|
863
|
-
readonly
|
|
1107
|
+
readonly formattedClose?: string;
|
|
1108
|
+
readonly formattedHigh?: string;
|
|
1109
|
+
readonly formattedLow?: string;
|
|
1110
|
+
readonly formattedOpen?: string;
|
|
1111
|
+
readonly high: number;
|
|
1112
|
+
readonly highY: number;
|
|
1113
|
+
readonly index: number;
|
|
1114
|
+
readonly low: number;
|
|
1115
|
+
readonly lowY: number;
|
|
1116
|
+
readonly open: number;
|
|
1117
|
+
readonly openY: number;
|
|
864
1118
|
readonly renderOpacity?: number;
|
|
865
|
-
readonly style: ChartFinancialSeriesStyle;
|
|
866
|
-
readonly type: "candlestick";
|
|
867
1119
|
readonly wickWidth: number;
|
|
868
|
-
readonly
|
|
869
|
-
readonly
|
|
1120
|
+
readonly xKey?: ChartInteractionXKey;
|
|
1121
|
+
readonly xValue: unknown;
|
|
870
1122
|
}
|
|
871
|
-
interface
|
|
872
|
-
readonly
|
|
873
|
-
readonly
|
|
874
|
-
readonly
|
|
875
|
-
readonly
|
|
876
|
-
readonly
|
|
1123
|
+
interface SceneOhlcMark {
|
|
1124
|
+
readonly animationKey?: string;
|
|
1125
|
+
readonly centerX: number;
|
|
1126
|
+
readonly change?: number;
|
|
1127
|
+
readonly changePercentage?: number;
|
|
1128
|
+
readonly close: number;
|
|
1129
|
+
readonly closeY: number;
|
|
1130
|
+
readonly datum: unknown;
|
|
1131
|
+
readonly direction: ChartFinancialDirection;
|
|
1132
|
+
readonly formattedClose?: string;
|
|
1133
|
+
readonly formattedHigh?: string;
|
|
1134
|
+
readonly formattedLow?: string;
|
|
1135
|
+
readonly formattedOpen?: string;
|
|
1136
|
+
readonly high: number;
|
|
1137
|
+
readonly highY: number;
|
|
1138
|
+
readonly index: number;
|
|
1139
|
+
readonly low: number;
|
|
1140
|
+
readonly lowY: number;
|
|
1141
|
+
readonly open: number;
|
|
1142
|
+
readonly openY: number;
|
|
877
1143
|
readonly renderOpacity?: number;
|
|
878
|
-
readonly style: ChartFinancialSeriesStyle;
|
|
879
1144
|
readonly tickWidth: number;
|
|
880
|
-
readonly
|
|
1145
|
+
readonly totalWidth: number;
|
|
881
1146
|
readonly wickWidth: number;
|
|
882
|
-
readonly
|
|
883
|
-
readonly
|
|
884
|
-
}
|
|
885
|
-
type ChartSeriesScene = ChartAreaSeriesScene | ChartBarSeriesScene | ChartBubbleSeriesScene | ChartCandlestickSeriesScene | ChartLineSeriesScene | ChartOhlcSeriesScene | ChartRangeAreaSeriesScene | ChartRangeBarSeriesScene | ChartScatterSeriesScene;
|
|
886
|
-
|
|
887
|
-
interface ChartViewportAxisRef {
|
|
888
|
-
readonly axis: "x" | "y";
|
|
889
|
-
readonly axisId: string;
|
|
890
|
-
}
|
|
891
|
-
interface ChartContinuousViewportWindow extends ChartViewportAxisRef {
|
|
892
|
-
readonly kind: "continuous";
|
|
893
|
-
readonly max: Date | number;
|
|
894
|
-
readonly min: Date | number;
|
|
895
|
-
}
|
|
896
|
-
interface ChartCategoryViewportWindow extends ChartViewportAxisRef {
|
|
897
|
-
readonly endIndexExclusive: number;
|
|
898
|
-
readonly kind: "category";
|
|
899
|
-
readonly startIndex: number;
|
|
900
|
-
}
|
|
901
|
-
type ChartViewportWindow = ChartCategoryViewportWindow | ChartContinuousViewportWindow;
|
|
902
|
-
interface ChartViewportState {
|
|
903
|
-
readonly axes: readonly ChartViewportWindow[];
|
|
904
|
-
}
|
|
905
|
-
type ChartNavigationAxisTarget = "auto" | "x" | "xy" | "y" | readonly ChartViewportAxisRef[];
|
|
906
|
-
interface ChartViewportConstraint extends ChartViewportAxisRef {
|
|
907
|
-
readonly maxSpan?: number;
|
|
908
|
-
readonly maxVisibleCategories?: number;
|
|
909
|
-
readonly maxZoom?: number;
|
|
910
|
-
readonly minSpan?: number;
|
|
911
|
-
readonly minVisibleCategories?: number;
|
|
912
|
-
}
|
|
913
|
-
type ChartViewportLinkMode = "domain" | "relative";
|
|
914
|
-
interface ChartViewportLinkGroup {
|
|
915
|
-
readonly axes: readonly ChartViewportAxisRef[];
|
|
916
|
-
readonly id: string;
|
|
917
|
-
readonly mode: ChartViewportLinkMode;
|
|
918
|
-
}
|
|
919
|
-
interface ChartNavigationOptions {
|
|
920
|
-
readonly clampToData?: boolean;
|
|
921
|
-
readonly constraints?: readonly ChartViewportConstraint[];
|
|
922
|
-
readonly dragPan?: boolean;
|
|
923
|
-
readonly keyboard?: boolean;
|
|
924
|
-
readonly keyboardPanRatio?: number;
|
|
925
|
-
readonly keyboardZoomFactor?: number;
|
|
926
|
-
readonly linkGroups?: readonly ChartViewportLinkGroup[];
|
|
927
|
-
readonly minVisibleCategories?: number;
|
|
928
|
-
readonly pan?: boolean;
|
|
929
|
-
readonly panAxes?: ChartNavigationAxisTarget;
|
|
930
|
-
readonly pinchZoom?: boolean;
|
|
931
|
-
readonly wheelSensitivity?: number;
|
|
932
|
-
readonly wheelZoom?: boolean;
|
|
933
|
-
readonly zoom?: boolean;
|
|
934
|
-
readonly zoomAxes?: ChartNavigationAxisTarget;
|
|
935
|
-
}
|
|
936
|
-
type ChartNavigationInput = boolean | ChartNavigationOptions;
|
|
937
|
-
type ChartViewportChangeSource = "data-reconcile" | "drag" | "fit" | "keyboard" | "pinch" | "programmatic" | "reset" | "sync" | "wheel";
|
|
938
|
-
type ChartViewportChangePhase = "end" | "start" | "update";
|
|
939
|
-
interface ChartViewportChangeEvent {
|
|
940
|
-
readonly changedAxes: readonly ChartViewportAxisRef[];
|
|
941
|
-
readonly phase: ChartViewportChangePhase;
|
|
942
|
-
readonly previousViewport: ChartViewportState;
|
|
943
|
-
readonly source: ChartViewportChangeSource;
|
|
944
|
-
readonly viewport: ChartViewportState;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
type ChartSynchronizationMode = "domain" | "relative";
|
|
948
|
-
interface ChartSynchronizationAxisMapping {
|
|
949
|
-
readonly source: ChartViewportAxisRef;
|
|
950
|
-
readonly target: ChartViewportAxisRef;
|
|
951
|
-
}
|
|
952
|
-
interface ChartViewportSynchronizationOptions {
|
|
953
|
-
readonly axes?: ChartNavigationAxisTarget;
|
|
954
|
-
readonly enabled?: boolean;
|
|
955
|
-
readonly mode?: ChartSynchronizationMode;
|
|
956
|
-
readonly phase?: "continuous" | "end";
|
|
1147
|
+
readonly xKey?: ChartInteractionXKey;
|
|
1148
|
+
readonly xValue: unknown;
|
|
957
1149
|
}
|
|
958
|
-
interface
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
interface NormalizedChartCrosshairSynchronizationOptions {
|
|
975
|
-
readonly axes: "auto" | "x" | "xy" | "y";
|
|
976
|
-
readonly clearOnLeave: boolean;
|
|
977
|
-
readonly enabled: boolean;
|
|
978
|
-
readonly match: "axis-value" | "nearest-point";
|
|
979
|
-
readonly mode: "domain" | "relative";
|
|
980
|
-
readonly showTooltip: boolean;
|
|
981
|
-
}
|
|
982
|
-
interface NormalizedChartViewportSynchronizationOptions {
|
|
983
|
-
readonly axes: "auto" | "x" | "xy" | "y" | readonly ChartViewportAxisRef[];
|
|
984
|
-
readonly enabled: boolean;
|
|
985
|
-
readonly mode: "domain" | "relative";
|
|
986
|
-
readonly phase: "continuous" | "end";
|
|
987
|
-
}
|
|
988
|
-
interface NormalizedChartSynchronizationOptions {
|
|
989
|
-
readonly axisMappings: readonly ChartSynchronizationAxisMapping[];
|
|
990
|
-
readonly crosshair: NormalizedChartCrosshairSynchronizationOptions;
|
|
991
|
-
readonly group: string;
|
|
992
|
-
readonly viewport: NormalizedChartViewportSynchronizationOptions;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
interface NormalizedChartNavigationOptions {
|
|
996
|
-
readonly clampToData: boolean;
|
|
997
|
-
readonly constraints: readonly ChartViewportConstraint[];
|
|
998
|
-
readonly dragPan: boolean;
|
|
999
|
-
readonly enabled: boolean;
|
|
1000
|
-
readonly keyboard: boolean;
|
|
1001
|
-
readonly keyboardPanRatio: number;
|
|
1002
|
-
readonly keyboardZoomFactor: number;
|
|
1003
|
-
readonly linkGroups: readonly ChartViewportLinkGroup[];
|
|
1004
|
-
readonly minVisibleCategories: number;
|
|
1005
|
-
readonly pan: boolean;
|
|
1006
|
-
readonly panAxes: ChartNavigationAxisTarget;
|
|
1007
|
-
readonly pinchZoom: boolean;
|
|
1008
|
-
readonly wheelSensitivity: number;
|
|
1009
|
-
readonly wheelZoom: boolean;
|
|
1010
|
-
readonly zoom: boolean;
|
|
1011
|
-
readonly zoomAxes: ChartNavigationAxisTarget;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
type ChartDownsamplingAlgorithm = "auto" | "lttb" | "minmax" | "pixel";
|
|
1015
|
-
interface ChartDownsamplingOptions {
|
|
1016
|
-
readonly algorithm?: ChartDownsamplingAlgorithm;
|
|
1017
|
-
readonly enabled?: boolean;
|
|
1018
|
-
readonly maxPoints?: number;
|
|
1019
|
-
readonly samplesPerPixel?: number;
|
|
1020
|
-
readonly threshold?: number;
|
|
1021
|
-
}
|
|
1022
|
-
type ChartDownsamplingInput = boolean | ChartDownsamplingOptions;
|
|
1023
|
-
|
|
1024
|
-
interface NormalizedChartDownsamplingOptions {
|
|
1025
|
-
readonly algorithm: ChartDownsamplingAlgorithm;
|
|
1026
|
-
readonly enabled: boolean;
|
|
1027
|
-
readonly maxPoints: number | null;
|
|
1028
|
-
readonly samplesPerPixel: number;
|
|
1029
|
-
readonly threshold: number | null;
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
declare class ChartAxisLabelTemplateDirective {
|
|
1033
|
-
readonly templateRef: TemplateRef<ChartAxisLabelTemplateContext<unknown>>;
|
|
1034
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartAxisLabelTemplateDirective, never>;
|
|
1035
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartAxisLabelTemplateDirective, "ng-template[monaChartAxisLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
declare class ChartNoDataTemplateDirective {
|
|
1039
|
-
readonly templateRef: TemplateRef<void>;
|
|
1040
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartNoDataTemplateDirective, never>;
|
|
1041
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartNoDataTemplateDirective, "ng-template[monaChartNoDataTemplate]", never, {}, {}, never, never, true, never>;
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
declare class ChartSubtitleTemplateDirective {
|
|
1045
|
-
readonly templateRef: TemplateRef<ChartSubtitleTemplateContext>;
|
|
1046
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartSubtitleTemplateDirective, never>;
|
|
1047
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartSubtitleTemplateDirective, "ng-template[monaChartSubtitleTemplate]", never, {}, {}, never, never, true, never>;
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
declare class ChartTitleTemplateDirective {
|
|
1051
|
-
readonly templateRef: TemplateRef<ChartTitleTemplateContext>;
|
|
1052
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartTitleTemplateDirective, never>;
|
|
1053
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartTitleTemplateDirective, "ng-template[monaChartTitleTemplate]", never, {}, {}, never, never, true, never>;
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
type ChartAnimationEasing = "linear" | "ease-in" | "ease-out" | "ease-in-out";
|
|
1057
|
-
interface ChartAnimationOptions {
|
|
1058
|
-
readonly data?: boolean;
|
|
1059
|
-
readonly duration?: number;
|
|
1060
|
-
readonly easing?: ChartAnimationEasing;
|
|
1061
|
-
readonly enabled?: boolean;
|
|
1062
|
-
readonly initial?: boolean;
|
|
1063
|
-
readonly visibility?: boolean;
|
|
1064
|
-
}
|
|
1065
|
-
type ChartAnimationInput = boolean | ChartAnimationOptions;
|
|
1066
|
-
|
|
1067
|
-
interface NormalizedChartAnimationOptions {
|
|
1068
|
-
readonly data: boolean;
|
|
1069
|
-
readonly duration: number;
|
|
1070
|
-
readonly easing: ChartAnimationEasing;
|
|
1071
|
-
readonly enabled: boolean;
|
|
1072
|
-
readonly initial: boolean;
|
|
1073
|
-
readonly visibility: boolean;
|
|
1074
|
-
}
|
|
1075
|
-
|
|
1076
|
-
declare class ChartWaterfallLabelTemplateDirective {
|
|
1077
|
-
readonly templateRef: TemplateRef<any>;
|
|
1078
|
-
static ngTemplateContextGuard(_dir: ChartWaterfallLabelTemplateDirective, _ctx: unknown): _ctx is ChartWaterfallLabelTemplateContext;
|
|
1079
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartWaterfallLabelTemplateDirective, never>;
|
|
1080
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartWaterfallLabelTemplateDirective, "ng-template[monaChartWaterfallLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
declare class ChartFunnelLabelTemplateDirective {
|
|
1084
|
-
readonly templateRef: TemplateRef<any>;
|
|
1085
|
-
static ngTemplateContextGuard(_dir: ChartFunnelLabelTemplateDirective, _ctx: unknown): _ctx is ChartFunnelLabelTemplateContext;
|
|
1086
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartFunnelLabelTemplateDirective, never>;
|
|
1087
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartFunnelLabelTemplateDirective, "ng-template[monaChartFunnelLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
declare class ChartAnnotationLabelTemplateDirective {
|
|
1091
|
-
readonly templateRef: TemplateRef<any>;
|
|
1092
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartAnnotationLabelTemplateDirective, never>;
|
|
1093
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartAnnotationLabelTemplateDirective, "ng-template[monaChartAnnotationLabel]", never, {}, {}, never, never, true, never>;
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
type ChartPolarFillMode = "gradient" | "solid";
|
|
1097
|
-
type ChartRadialFillMode = "gradient" | "none" | "solid";
|
|
1098
|
-
type ChartRadialCurve = "linear" | "smooth";
|
|
1099
|
-
type ChartRadialGridShape = "auto" | "circle" | "polygon";
|
|
1100
|
-
type ChartPolarLabelPosition = "inside" | "outside";
|
|
1101
|
-
type ChartPolarLabelSide = "left" | "right";
|
|
1102
|
-
type ChartPolarLabelContent = "category" | "category-percentage" | "percentage" | "value";
|
|
1103
|
-
|
|
1104
|
-
interface ChartLabelMeasurement {
|
|
1105
|
-
height: number;
|
|
1106
|
-
width: number;
|
|
1107
|
-
}
|
|
1108
|
-
interface ChartSliceContext {
|
|
1109
|
-
category: unknown;
|
|
1110
|
-
color: string;
|
|
1111
|
-
dataIndex: number;
|
|
1150
|
+
interface SceneHitTarget {
|
|
1151
|
+
angle?: number;
|
|
1152
|
+
animationKey?: string;
|
|
1153
|
+
arc?: SceneArcHitGeometry;
|
|
1154
|
+
barOrientation?: ChartBarOrientation;
|
|
1155
|
+
borderRadius?: number;
|
|
1156
|
+
bounds?: ChartRect;
|
|
1157
|
+
category?: unknown;
|
|
1158
|
+
categoryIndex?: number;
|
|
1159
|
+
categoryX?: string;
|
|
1160
|
+
categoryY?: string;
|
|
1161
|
+
close?: number;
|
|
1162
|
+
color?: string;
|
|
1163
|
+
cornerRadii?: ChartCornerRadii;
|
|
1164
|
+
dataIndex?: number;
|
|
1112
1165
|
datum: unknown;
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1166
|
+
financial?: SceneFinancialHitValue;
|
|
1167
|
+
financialDirection?: ChartFinancialDirection;
|
|
1168
|
+
formattedCategory?: string;
|
|
1169
|
+
formattedClose?: string;
|
|
1170
|
+
formattedFrom?: string;
|
|
1171
|
+
formattedHigh?: string;
|
|
1172
|
+
formattedLow?: string;
|
|
1173
|
+
formattedOpen?: string;
|
|
1174
|
+
formattedPercentage?: string;
|
|
1175
|
+
formattedRadialMax?: string;
|
|
1176
|
+
formattedRadialMin?: string;
|
|
1177
|
+
formattedSize?: string;
|
|
1178
|
+
formattedStackPercentage?: string;
|
|
1179
|
+
formattedStackTotal?: string;
|
|
1180
|
+
formattedTo?: string;
|
|
1181
|
+
formattedValue?: string;
|
|
1182
|
+
formattedXValue?: string;
|
|
1183
|
+
formattedYCategory?: string;
|
|
1184
|
+
fromValue?: number;
|
|
1185
|
+
funnel?: ChartFunnelPointMetadata;
|
|
1186
|
+
hierarchy?: ChartHierarchyPointMetadata;
|
|
1187
|
+
high?: number;
|
|
1188
|
+
highPoint?: ChartPoint;
|
|
1189
|
+
highValue?: number;
|
|
1190
|
+
index: number;
|
|
1191
|
+
isClamped?: boolean;
|
|
1192
|
+
isPositive?: boolean;
|
|
1193
|
+
itemId?: string;
|
|
1194
|
+
low?: number;
|
|
1195
|
+
lowPoint?: ChartPoint;
|
|
1196
|
+
lowValue?: number;
|
|
1197
|
+
/** Internal logical painter order for raw and sampled marker parity. */
|
|
1198
|
+
markerInteractionOrder?: {
|
|
1199
|
+
readonly seriesOrdinal: number;
|
|
1200
|
+
readonly sourceOrdinal: number;
|
|
1201
|
+
};
|
|
1202
|
+
open?: number;
|
|
1203
|
+
percentage?: number;
|
|
1204
|
+
point?: ChartPoint;
|
|
1205
|
+
radialMax?: number;
|
|
1206
|
+
radialMin?: number;
|
|
1207
|
+
radialRatio?: number;
|
|
1208
|
+
radius?: number;
|
|
1209
|
+
range?: SceneRangeHitValue;
|
|
1210
|
+
rangeBand?: SceneRangeBandGeometry;
|
|
1211
|
+
rawValue?: unknown;
|
|
1212
|
+
renderOrder?: number;
|
|
1117
1213
|
seriesId: string;
|
|
1118
1214
|
seriesName: string;
|
|
1119
|
-
seriesType:
|
|
1120
|
-
|
|
1215
|
+
seriesType: ChartSeriesType;
|
|
1216
|
+
sizeValue?: number;
|
|
1217
|
+
sliceId?: string;
|
|
1218
|
+
stackEnd?: number;
|
|
1219
|
+
stackGroup?: string;
|
|
1220
|
+
stackMode?: ChartStackMode;
|
|
1221
|
+
stackPercentage?: number;
|
|
1222
|
+
stackPosition?: "inner" | "outer" | "single";
|
|
1223
|
+
stackStart?: number;
|
|
1224
|
+
stackTotal?: number;
|
|
1225
|
+
toValue?: number;
|
|
1226
|
+
value?: unknown;
|
|
1227
|
+
valueKind?: ChartPointValueKind;
|
|
1228
|
+
visualBounds?: ChartRect;
|
|
1229
|
+
visualRadius?: number;
|
|
1230
|
+
waterfall?: ChartWaterfallPointValue;
|
|
1231
|
+
xAxisId?: string;
|
|
1232
|
+
xAxisTitle?: string;
|
|
1233
|
+
xIndex?: number;
|
|
1234
|
+
xKey: ChartInteractionXKey;
|
|
1235
|
+
xValue: unknown;
|
|
1236
|
+
yAxisId?: string;
|
|
1237
|
+
yAxisTitle?: string;
|
|
1238
|
+
yCategory?: unknown;
|
|
1239
|
+
yIndex?: number;
|
|
1240
|
+
yValue?: number;
|
|
1121
1241
|
}
|
|
1122
|
-
interface
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
seriesType: "donut" | "pie";
|
|
1135
|
-
slice: ChartSliceContext;
|
|
1136
|
-
value: number;
|
|
1137
|
-
}
|
|
1138
|
-
interface ChartCenterTemplateContext {
|
|
1139
|
-
$implicit: number;
|
|
1140
|
-
formattedTotal: string;
|
|
1141
|
-
seriesId: string;
|
|
1142
|
-
seriesName: string;
|
|
1143
|
-
total: number;
|
|
1144
|
-
visibleSliceCount: number;
|
|
1242
|
+
interface ChartInteractionBucket {
|
|
1243
|
+
readonly anchor: ChartPoint;
|
|
1244
|
+
readonly axisDimension?: "x" | "y";
|
|
1245
|
+
readonly axisId?: string;
|
|
1246
|
+
readonly hits: readonly SceneHitTarget[];
|
|
1247
|
+
readonly order: number;
|
|
1248
|
+
readonly xAxisId?: string;
|
|
1249
|
+
readonly xAxisTitle?: string;
|
|
1250
|
+
readonly xKey: ChartInteractionXKey;
|
|
1251
|
+
readonly xValue: unknown;
|
|
1252
|
+
readonly yAxisId?: string;
|
|
1253
|
+
readonly yAxisTitle?: string;
|
|
1145
1254
|
}
|
|
1146
|
-
interface
|
|
1147
|
-
|
|
1148
|
-
dataIndex: number;
|
|
1255
|
+
interface ScenePoint {
|
|
1256
|
+
animationKey?: string;
|
|
1149
1257
|
datum: unknown;
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
readonly templateRef: TemplateRef<ChartCenterTemplateContext>;
|
|
1158
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartCenterTemplateDirective, never>;
|
|
1159
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartCenterTemplateDirective, "ng-template[monaChartCenterTemplate]", never, {}, {}, never, never, true, never>;
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
declare class ChartCrosshairLabelTemplateDirective {
|
|
1163
|
-
readonly templateRef: TemplateRef<any>;
|
|
1164
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartCrosshairLabelTemplateDirective, never>;
|
|
1165
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartCrosshairLabelTemplateDirective, "ng-template[monaChartCrosshairLabel]", never, {}, {}, never, never, true, never>;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
type ChartDataLabelPosition = "auto" | "top" | "bottom" | "left" | "right" | "center" | "inside-start" | "inside-center" | "inside-end" | "outside-start" | "outside-end";
|
|
1169
|
-
interface ChartDataLabelOptions {
|
|
1170
|
-
/**
|
|
1171
|
-
* Whether labels may overlap other generic data labels.
|
|
1172
|
-
* Default: false
|
|
1173
|
-
*/
|
|
1174
|
-
allowOverlap?: boolean;
|
|
1175
|
-
/**
|
|
1176
|
-
* Collision padding around the label bounds.
|
|
1177
|
-
* Default: 2
|
|
1178
|
-
*/
|
|
1179
|
-
collisionPadding?: number;
|
|
1180
|
-
/**
|
|
1181
|
-
* Optional text color override.
|
|
1182
|
-
*/
|
|
1183
|
-
color?: string;
|
|
1184
|
-
/**
|
|
1185
|
-
* Optional semantic formatter.
|
|
1186
|
-
* Returning null/undefined/"" suppresses that label.
|
|
1187
|
-
*/
|
|
1188
|
-
formatter?: ChartDataLabelFormatter;
|
|
1189
|
-
/**
|
|
1190
|
-
* Maximum accepted labels for this series.
|
|
1191
|
-
* Default: 200
|
|
1192
|
-
*/
|
|
1193
|
-
maxLabels?: number;
|
|
1194
|
-
/**
|
|
1195
|
-
* Distance in CSS pixels between the mark anchor and label.
|
|
1196
|
-
* Default: 6
|
|
1197
|
-
*/
|
|
1198
|
-
offset?: number;
|
|
1199
|
-
/**
|
|
1200
|
-
* Plot-boundary behavior.
|
|
1201
|
-
* Default: "hide"
|
|
1202
|
-
*/
|
|
1203
|
-
overflow?: "clip" | "hide";
|
|
1204
|
-
/**
|
|
1205
|
-
* Placement strategy.
|
|
1206
|
-
* Default: "auto"
|
|
1207
|
-
*/
|
|
1208
|
-
position?: ChartDataLabelPosition;
|
|
1209
|
-
}
|
|
1210
|
-
type ChartDataLabelsInput = boolean | ChartDataLabelOptions;
|
|
1211
|
-
interface ChartDataLabelContext<T = unknown> {
|
|
1212
|
-
readonly $implicit: ChartDataLabelContext<T>;
|
|
1213
|
-
readonly close?: number;
|
|
1214
|
-
readonly color: string;
|
|
1215
|
-
readonly dataIndex: number;
|
|
1216
|
-
readonly datum: T;
|
|
1217
|
-
readonly formattedClose?: string;
|
|
1218
|
-
readonly formattedFrom?: string;
|
|
1219
|
-
readonly formattedHigh?: string;
|
|
1220
|
-
readonly formattedLow?: string;
|
|
1221
|
-
readonly formattedOpen?: string;
|
|
1222
|
-
readonly formattedSize?: string;
|
|
1223
|
-
readonly formattedStackPercentage?: string;
|
|
1224
|
-
readonly formattedStackTotal?: string;
|
|
1225
|
-
readonly formattedTo?: string;
|
|
1226
|
-
readonly formattedValue: string;
|
|
1227
|
-
readonly formattedX: string;
|
|
1228
|
-
readonly formattedY: string;
|
|
1229
|
-
readonly fromValue?: number;
|
|
1230
|
-
readonly high?: number;
|
|
1231
|
-
readonly low?: number;
|
|
1232
|
-
readonly markId: string;
|
|
1233
|
-
readonly open?: number;
|
|
1234
|
-
readonly rawValue?: unknown;
|
|
1235
|
-
/**
|
|
1236
|
-
* Persistent selection state for this mark.
|
|
1237
|
-
*/
|
|
1238
|
-
readonly selected: boolean;
|
|
1239
|
-
readonly seriesId: string;
|
|
1240
|
-
readonly seriesName: string;
|
|
1241
|
-
readonly seriesType: ChartSeriesType;
|
|
1242
|
-
readonly sizeValue?: number;
|
|
1243
|
-
readonly stackEnd?: number;
|
|
1244
|
-
readonly stackMode?: ChartStackMode;
|
|
1245
|
-
readonly stackPercentage?: number;
|
|
1246
|
-
readonly stackStart?: number;
|
|
1247
|
-
readonly stackTotal?: number;
|
|
1248
|
-
readonly toValue?: number;
|
|
1249
|
-
readonly value?: unknown;
|
|
1250
|
-
readonly xValue?: unknown;
|
|
1251
|
-
readonly yValue?: unknown;
|
|
1252
|
-
}
|
|
1253
|
-
type ChartDataLabelFormatter<T = unknown> = (context: ChartDataLabelContext<T>) => string | null | undefined;
|
|
1254
|
-
|
|
1255
|
-
declare class ChartDataLabelTemplateDirective<T = unknown> {
|
|
1256
|
-
readonly templateRef: TemplateRef<ChartDataLabelContext<T>>;
|
|
1257
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartDataLabelTemplateDirective<any>, never>;
|
|
1258
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartDataLabelTemplateDirective<any>, "ng-template[monaChartDataLabel]", never, {}, {}, never, never, true, never>;
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
type ChartRadialArcFillMode = "gradient" | "solid";
|
|
1262
|
-
type ChartRoseScaleMode = "area" | "radius";
|
|
1263
|
-
type ChartGaugeIndicator = "arc" | "both" | "needle";
|
|
1264
|
-
interface ChartRadialDatumVisibilityEvent {
|
|
1265
|
-
readonly category: unknown;
|
|
1266
|
-
readonly dataIndex: number;
|
|
1267
|
-
readonly datum: unknown;
|
|
1268
|
-
readonly itemId: string;
|
|
1269
|
-
readonly seriesId: string;
|
|
1270
|
-
readonly seriesName: string;
|
|
1271
|
-
readonly seriesType: "radialBar" | "rose";
|
|
1272
|
-
readonly visible: boolean;
|
|
1273
|
-
}
|
|
1274
|
-
interface ChartGaugeCenterTemplateContext {
|
|
1275
|
-
readonly $implicit: number;
|
|
1276
|
-
readonly formattedMax: string;
|
|
1277
|
-
readonly formattedMin: string;
|
|
1278
|
-
readonly formattedValue: string;
|
|
1279
|
-
readonly isClamped: boolean;
|
|
1280
|
-
readonly max: number;
|
|
1281
|
-
readonly min: number;
|
|
1282
|
-
readonly ratio: number;
|
|
1283
|
-
readonly seriesId: string;
|
|
1284
|
-
readonly seriesName: string;
|
|
1285
|
-
readonly value: number;
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
declare class ChartGaugeCenterTemplateDirective {
|
|
1289
|
-
readonly templateRef: TemplateRef<ChartGaugeCenterTemplateContext>;
|
|
1290
|
-
static ngTemplateContextGuard(_dir: ChartGaugeCenterTemplateDirective, _ctx: unknown): _ctx is ChartGaugeCenterTemplateContext;
|
|
1291
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartGaugeCenterTemplateDirective, never>;
|
|
1292
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartGaugeCenterTemplateDirective, "ng-template[monaChartGaugeCenterTemplate]", never, {}, {}, never, never, true, never>;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
declare class ChartLegendItemTemplateDirective {
|
|
1296
|
-
readonly templateRef: TemplateRef<ChartLegendItemTemplateContext>;
|
|
1297
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartLegendItemTemplateDirective, never>;
|
|
1298
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartLegendItemTemplateDirective, "ng-template[monaChartLegendItemTemplate]", never, {}, {}, never, never, true, never>;
|
|
1299
|
-
}
|
|
1300
|
-
|
|
1301
|
-
declare class ChartReferenceLabelTemplateDirective {
|
|
1302
|
-
readonly templateRef: TemplateRef<any>;
|
|
1303
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartReferenceLabelTemplateDirective, never>;
|
|
1304
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartReferenceLabelTemplateDirective, "ng-template[monaChartReferenceLabel]", never, {}, {}, never, never, true, never>;
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
declare class ChartSliceLabelTemplateDirective {
|
|
1308
|
-
readonly templateRef: TemplateRef<ChartSliceLabelTemplateContext>;
|
|
1309
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartSliceLabelTemplateDirective, never>;
|
|
1310
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartSliceLabelTemplateDirective, "ng-template[monaChartSliceLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
1311
|
-
}
|
|
1312
|
-
|
|
1313
|
-
type ChartTreemapTile = "binary" | "dice" | "slice" | "slice-dice" | "squarify";
|
|
1314
|
-
type ChartTreemapSort = "ascending" | "descending" | "none";
|
|
1315
|
-
interface ChartTreemapLabelTemplateContext<T = unknown> {
|
|
1316
|
-
readonly $implicit: ChartHierarchyNodeContext<T>;
|
|
1317
|
-
readonly bounds: ChartRect;
|
|
1318
|
-
readonly color: string;
|
|
1319
|
-
readonly datum: T;
|
|
1320
|
-
readonly depth: number;
|
|
1321
|
-
readonly formattedLabel: string;
|
|
1322
|
-
readonly formattedPath: readonly string[];
|
|
1323
|
-
readonly formattedValue: string;
|
|
1324
|
-
readonly isCollapsed: boolean;
|
|
1325
|
-
readonly isLeaf: boolean;
|
|
1326
|
-
readonly label: unknown;
|
|
1327
|
-
readonly node: ChartHierarchyNodeContext<T>;
|
|
1328
|
-
readonly nodeId: string;
|
|
1329
|
-
readonly path: readonly unknown[];
|
|
1330
|
-
readonly percentageOfParent?: number;
|
|
1331
|
-
readonly percentageOfRoot?: number;
|
|
1332
|
-
readonly textColor: string;
|
|
1333
|
-
readonly value: number;
|
|
1334
|
-
}
|
|
1335
|
-
interface ChartTreemapNodeVisibilityEvent<T = unknown> {
|
|
1336
|
-
readonly dataIndex?: number;
|
|
1337
|
-
readonly datum?: T;
|
|
1338
|
-
readonly depth?: number;
|
|
1339
|
-
readonly formattedLabel?: string;
|
|
1340
|
-
readonly label?: unknown;
|
|
1341
|
-
readonly nodeId: string;
|
|
1342
|
-
readonly seriesId: string;
|
|
1343
|
-
readonly seriesName: string;
|
|
1344
|
-
readonly seriesType: "treemap";
|
|
1345
|
-
readonly visible: boolean;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
declare class ChartTreemapLabelTemplateDirective {
|
|
1349
|
-
readonly templateRef: TemplateRef<ChartTreemapLabelTemplateContext<unknown>>;
|
|
1350
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartTreemapLabelTemplateDirective, never>;
|
|
1351
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartTreemapLabelTemplateDirective, "ng-template[monaChartTreemapLabelTemplate]", never, {}, {}, never, never, true, never>;
|
|
1352
|
-
}
|
|
1353
|
-
|
|
1354
|
-
declare class ChartTooltipTemplateDirective {
|
|
1355
|
-
readonly templateRef: TemplateRef<ChartTooltipTemplateContext<unknown>>;
|
|
1356
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ChartTooltipTemplateDirective, never>;
|
|
1357
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChartTooltipTemplateDirective, "ng-template[monaChartTooltipTemplate]", never, {}, {}, never, never, true, never>;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
type ChartAnnotationAxisValue = Date | number | string;
|
|
1361
|
-
type ChartOverlayLayer = "overlay" | "underlay";
|
|
1362
|
-
type ChartReferenceLineStyle = "dashed" | "dotted" | "solid";
|
|
1363
|
-
type ChartReferenceLabelPosition = "center" | "end" | "start";
|
|
1364
|
-
type ChartAnnotationMarker = "circle" | "diamond" | "none";
|
|
1365
|
-
type ChartAnnotationLabelPlacement = "bottom" | "left" | "right" | "top";
|
|
1366
|
-
interface ChartReferenceLineLabelContext<T extends ChartAnnotationAxisValue = ChartAnnotationAxisValue> {
|
|
1367
|
-
readonly $implicit: T;
|
|
1368
|
-
readonly axis: "x" | "y";
|
|
1369
|
-
readonly axisId: string;
|
|
1370
|
-
readonly coordinate: number;
|
|
1371
|
-
readonly formattedValue: string;
|
|
1372
|
-
readonly kind: "line";
|
|
1373
|
-
readonly value: T;
|
|
1374
|
-
}
|
|
1375
|
-
interface ChartReferenceBandLabelContext<TFrom extends ChartAnnotationAxisValue = ChartAnnotationAxisValue, TTo extends ChartAnnotationAxisValue = ChartAnnotationAxisValue> {
|
|
1376
|
-
readonly $implicit: {
|
|
1377
|
-
readonly from: TFrom;
|
|
1378
|
-
readonly to: TTo;
|
|
1379
|
-
};
|
|
1380
|
-
readonly axis: "x" | "y";
|
|
1381
|
-
readonly axisId: string;
|
|
1382
|
-
readonly bounds: ChartRect;
|
|
1383
|
-
readonly formattedFrom: string;
|
|
1384
|
-
readonly formattedTo: string;
|
|
1385
|
-
readonly from: TFrom;
|
|
1386
|
-
readonly kind: "band";
|
|
1387
|
-
readonly to: TTo;
|
|
1388
|
-
}
|
|
1389
|
-
type ChartReferenceLabelTemplateContext = ChartReferenceLineLabelContext | ChartReferenceBandLabelContext;
|
|
1390
|
-
interface ChartAnnotationLabelTemplateContext<TData = unknown> {
|
|
1391
|
-
readonly $implicit: TData;
|
|
1392
|
-
readonly data: TData;
|
|
1393
|
-
readonly formattedX: string;
|
|
1394
|
-
readonly formattedY: string;
|
|
1395
|
-
readonly point: ChartPoint;
|
|
1396
|
-
readonly x: ChartAnnotationAxisValue;
|
|
1397
|
-
readonly xAxisId: string;
|
|
1398
|
-
readonly y: ChartAnnotationAxisValue;
|
|
1399
|
-
readonly yAxisId: string;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
type ChartSelectionMode = "single" | "multiple";
|
|
1403
|
-
type ChartSelectionChangeSource = "brush" | "click" | "keyboard" | "programmatic";
|
|
1404
|
-
interface ChartSelectedPoint<T = unknown> {
|
|
1405
|
-
readonly close?: number;
|
|
1406
|
-
readonly dataIndex: number;
|
|
1407
|
-
readonly datum: T;
|
|
1408
|
-
readonly fromValue?: number;
|
|
1409
|
-
readonly high?: number;
|
|
1410
|
-
readonly low?: number;
|
|
1411
|
-
readonly markId: string;
|
|
1412
|
-
readonly open?: number;
|
|
1413
|
-
readonly rawValue?: unknown;
|
|
1414
|
-
readonly seriesId: string;
|
|
1415
|
-
readonly seriesName: string;
|
|
1416
|
-
readonly seriesType: ChartSeriesType;
|
|
1417
|
-
readonly stackEnd?: number;
|
|
1418
|
-
readonly stackPercentage?: number;
|
|
1419
|
-
readonly stackStart?: number;
|
|
1420
|
-
readonly toValue?: number;
|
|
1421
|
-
readonly value?: unknown;
|
|
1422
|
-
readonly xValue?: unknown;
|
|
1423
|
-
readonly yValue?: unknown;
|
|
1424
|
-
}
|
|
1425
|
-
interface ChartSelectionChangeEvent<T = unknown> {
|
|
1426
|
-
readonly addedMarkIds: readonly string[];
|
|
1427
|
-
readonly changedPoints: readonly ChartSelectedPoint<T>[];
|
|
1428
|
-
readonly previousSelectedMarkIds: readonly string[];
|
|
1429
|
-
readonly removedMarkIds: readonly string[];
|
|
1430
|
-
readonly selectedMarkIds: readonly string[];
|
|
1431
|
-
readonly source: ChartSelectionChangeSource;
|
|
1432
|
-
readonly visibleSelectedPoints: readonly ChartSelectedPoint<T>[];
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
type ChartBrushMode = "x" | "y" | "xy";
|
|
1436
|
-
type ChartBrushActivation = "drag" | "shift-drag";
|
|
1437
|
-
type ChartBrushLineStyle = "solid" | "dashed" | "dotted";
|
|
1438
|
-
type ChartBrushHitPolicy = "center" | "intersect";
|
|
1439
|
-
type ChartBrushSelectionBehavior = "none" | "replace" | "add" | "remove" | "toggle";
|
|
1440
|
-
type ChartBrushPhase = "start" | "update" | "end" | "cancel";
|
|
1441
|
-
type ChartBrushCancelReason = "authority-change" | "component-disabled" | "data-change" | "destroyed" | "disabled" | "escape" | "lost-pointer-capture" | "pointer-cancel" | "pointer-leave" | "viewport-change";
|
|
1442
|
-
interface ChartBrushCategoryRange {
|
|
1443
|
-
readonly axis: "x" | "y";
|
|
1444
|
-
readonly axisId: string;
|
|
1445
|
-
readonly fromIndex: number;
|
|
1446
|
-
readonly fromValue: unknown;
|
|
1447
|
-
readonly kind: "category";
|
|
1448
|
-
readonly toIndex: number;
|
|
1449
|
-
readonly toValue: unknown;
|
|
1450
|
-
}
|
|
1451
|
-
interface ChartBrushContinuousRange {
|
|
1452
|
-
readonly axis: "x" | "y";
|
|
1453
|
-
readonly axisId: string;
|
|
1454
|
-
readonly from: number | Date;
|
|
1455
|
-
readonly kind: "continuous";
|
|
1456
|
-
readonly scaleType: "linear" | "log" | "pow" | "sqrt" | "symlog" | "time" | "utc";
|
|
1457
|
-
readonly to: number | Date;
|
|
1258
|
+
defined: boolean;
|
|
1259
|
+
index: number;
|
|
1260
|
+
renderOpacity?: number;
|
|
1261
|
+
x: number;
|
|
1262
|
+
xValue: unknown;
|
|
1263
|
+
y: number;
|
|
1264
|
+
yValue: number;
|
|
1458
1265
|
}
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
readonly
|
|
1462
|
-
readonly
|
|
1463
|
-
readonly
|
|
1464
|
-
readonly
|
|
1465
|
-
readonly
|
|
1466
|
-
readonly
|
|
1467
|
-
readonly xRange?: ChartBrushAxisRange;
|
|
1468
|
-
readonly yRange?: ChartBrushAxisRange;
|
|
1266
|
+
interface SceneAreaPoint extends ScenePoint {
|
|
1267
|
+
readonly baseX?: number;
|
|
1268
|
+
readonly baseY: number;
|
|
1269
|
+
readonly stackEndValue?: number;
|
|
1270
|
+
readonly stackPercentage?: number;
|
|
1271
|
+
readonly stackStartValue?: number;
|
|
1272
|
+
readonly stackTotal?: number;
|
|
1273
|
+
readonly synthetic?: boolean;
|
|
1469
1274
|
}
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
readonly
|
|
1476
|
-
readonly
|
|
1477
|
-
readonly
|
|
1478
|
-
readonly
|
|
1479
|
-
readonly
|
|
1480
|
-
readonly
|
|
1481
|
-
readonly
|
|
1482
|
-
readonly
|
|
1275
|
+
interface SceneRangeAreaPoint {
|
|
1276
|
+
readonly animationKey?: string;
|
|
1277
|
+
readonly datum: unknown;
|
|
1278
|
+
readonly defined: boolean;
|
|
1279
|
+
readonly formattedFrom?: string;
|
|
1280
|
+
readonly formattedTo?: string;
|
|
1281
|
+
readonly fromPoint?: ChartPoint;
|
|
1282
|
+
readonly fromValue?: number;
|
|
1283
|
+
readonly highPoint?: ChartPoint;
|
|
1284
|
+
readonly highValue?: number;
|
|
1285
|
+
readonly index: number;
|
|
1286
|
+
readonly lowPoint?: ChartPoint;
|
|
1287
|
+
readonly lowValue?: number;
|
|
1288
|
+
readonly renderOpacity?: number;
|
|
1289
|
+
readonly toPoint?: ChartPoint;
|
|
1290
|
+
readonly toValue?: number;
|
|
1291
|
+
readonly x: number;
|
|
1292
|
+
readonly xValue: unknown;
|
|
1483
1293
|
}
|
|
1484
|
-
interface
|
|
1485
|
-
readonly
|
|
1486
|
-
readonly
|
|
1487
|
-
readonly
|
|
1488
|
-
readonly
|
|
1489
|
-
readonly
|
|
1294
|
+
interface SceneMarker {
|
|
1295
|
+
readonly animationKey: string;
|
|
1296
|
+
readonly datum: unknown;
|
|
1297
|
+
readonly formattedSize?: string;
|
|
1298
|
+
readonly index: number;
|
|
1299
|
+
readonly radius: number;
|
|
1300
|
+
readonly renderOpacity?: number;
|
|
1301
|
+
readonly sizeValue?: number;
|
|
1302
|
+
readonly x: number;
|
|
1303
|
+
readonly xValue: unknown;
|
|
1304
|
+
readonly y: number;
|
|
1305
|
+
readonly yValue: number;
|
|
1490
1306
|
}
|
|
1491
1307
|
|
|
1492
1308
|
type ChartHeatmapColorMode = "diverging" | "sequential";
|
|
@@ -1767,6 +1583,190 @@ declare class CartesianScaleRegistry {
|
|
|
1767
1583
|
getYScale(axisId?: string): ChartPositionScale | undefined;
|
|
1768
1584
|
}
|
|
1769
1585
|
|
|
1586
|
+
interface ChartSeriesStyle {
|
|
1587
|
+
areaFillColor: string;
|
|
1588
|
+
areaFillOpacity: number;
|
|
1589
|
+
color: string;
|
|
1590
|
+
fillOpacity: number;
|
|
1591
|
+
lineWidth: number;
|
|
1592
|
+
opacity: number;
|
|
1593
|
+
pointRadius: number;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
interface ChartAxisSceneTick<T = unknown> extends ChartAxisTick<T> {
|
|
1597
|
+
labelVisible?: boolean;
|
|
1598
|
+
tickKey?: string;
|
|
1599
|
+
unrotatedHeight?: number;
|
|
1600
|
+
unrotatedWidth?: number;
|
|
1601
|
+
}
|
|
1602
|
+
interface ChartAxisScene {
|
|
1603
|
+
axis: "x" | "y";
|
|
1604
|
+
axisId?: string;
|
|
1605
|
+
axisLine: boolean;
|
|
1606
|
+
formatter?: ChartAxisFormatter<unknown>;
|
|
1607
|
+
gridLines: boolean;
|
|
1608
|
+
gutter?: number;
|
|
1609
|
+
isPrimary?: boolean;
|
|
1610
|
+
labelMaxWidth?: number;
|
|
1611
|
+
labelPadding?: number;
|
|
1612
|
+
labelRotation?: number;
|
|
1613
|
+
labels?: boolean;
|
|
1614
|
+
position: ChartAxisPosition;
|
|
1615
|
+
registrationId?: string;
|
|
1616
|
+
scaleType?: string;
|
|
1617
|
+
sideOffset?: number;
|
|
1618
|
+
stackIndex?: number;
|
|
1619
|
+
tickMarks?: boolean;
|
|
1620
|
+
tickSize?: number;
|
|
1621
|
+
ticks: readonly ChartAxisSceneTick[];
|
|
1622
|
+
title: string;
|
|
1623
|
+
titlePadding?: number;
|
|
1624
|
+
unitMode?: "percent" | "raw";
|
|
1625
|
+
visible: boolean;
|
|
1626
|
+
}
|
|
1627
|
+
interface ChartMarkerSeriesStyle {
|
|
1628
|
+
readonly color: string;
|
|
1629
|
+
readonly fillOpacity: number;
|
|
1630
|
+
readonly strokeColor: string;
|
|
1631
|
+
readonly strokeWidth: number;
|
|
1632
|
+
}
|
|
1633
|
+
interface ChartScatterSeriesScene {
|
|
1634
|
+
readonly id: string;
|
|
1635
|
+
readonly markers: readonly SceneMarker[];
|
|
1636
|
+
readonly name: string;
|
|
1637
|
+
readonly pointRadius: number;
|
|
1638
|
+
readonly renderOpacity?: number;
|
|
1639
|
+
readonly style: ChartMarkerSeriesStyle;
|
|
1640
|
+
readonly type: "scatter";
|
|
1641
|
+
readonly xAxisId: string;
|
|
1642
|
+
readonly yAxisId: string;
|
|
1643
|
+
}
|
|
1644
|
+
interface ChartBubbleSeriesScene {
|
|
1645
|
+
readonly id: string;
|
|
1646
|
+
readonly markers: readonly SceneMarker[];
|
|
1647
|
+
readonly maxRadius: number;
|
|
1648
|
+
readonly minRadius: number;
|
|
1649
|
+
readonly name: string;
|
|
1650
|
+
readonly renderOpacity?: number;
|
|
1651
|
+
readonly style: ChartMarkerSeriesStyle;
|
|
1652
|
+
readonly type: "bubble";
|
|
1653
|
+
readonly xAxisId: string;
|
|
1654
|
+
readonly yAxisId: string;
|
|
1655
|
+
}
|
|
1656
|
+
interface ChartLineSeriesScene {
|
|
1657
|
+
connectNulls: boolean;
|
|
1658
|
+
curve: ChartCurve;
|
|
1659
|
+
id: string;
|
|
1660
|
+
name: string;
|
|
1661
|
+
orientation?: ChartBarOrientation;
|
|
1662
|
+
points: readonly ScenePoint[];
|
|
1663
|
+
renderOpacity?: number;
|
|
1664
|
+
showPoints: boolean;
|
|
1665
|
+
style: ChartSeriesStyle;
|
|
1666
|
+
type: "line";
|
|
1667
|
+
xAxisId: string;
|
|
1668
|
+
yAxisId: string;
|
|
1669
|
+
}
|
|
1670
|
+
interface ChartAreaSeriesScene {
|
|
1671
|
+
baselineX?: number;
|
|
1672
|
+
baselineY: number;
|
|
1673
|
+
connectNulls: boolean;
|
|
1674
|
+
curve: ChartCurve;
|
|
1675
|
+
fillMode: ChartAreaFillMode;
|
|
1676
|
+
fillOpacity: number;
|
|
1677
|
+
id: string;
|
|
1678
|
+
name: string;
|
|
1679
|
+
orientation?: ChartBarOrientation;
|
|
1680
|
+
points: readonly SceneAreaPoint[];
|
|
1681
|
+
renderOpacity?: number;
|
|
1682
|
+
showPoints: boolean;
|
|
1683
|
+
style: ChartSeriesStyle;
|
|
1684
|
+
type: "area";
|
|
1685
|
+
xAxisId: string;
|
|
1686
|
+
yAxisId: string;
|
|
1687
|
+
}
|
|
1688
|
+
interface ChartBarSeriesScene {
|
|
1689
|
+
bars: readonly SceneBar[];
|
|
1690
|
+
borderRadius: number;
|
|
1691
|
+
fillOpacity: number;
|
|
1692
|
+
id: string;
|
|
1693
|
+
name: string;
|
|
1694
|
+
orientation?: ChartBarOrientation;
|
|
1695
|
+
renderOpacity?: number;
|
|
1696
|
+
style: ChartSeriesStyle;
|
|
1697
|
+
type: "bar";
|
|
1698
|
+
xAxisId: string;
|
|
1699
|
+
yAxisId: string;
|
|
1700
|
+
}
|
|
1701
|
+
interface ChartRangeBarSeriesScene {
|
|
1702
|
+
readonly bars: readonly SceneRangeBar[];
|
|
1703
|
+
readonly borderRadius: number;
|
|
1704
|
+
readonly fillOpacity: number;
|
|
1705
|
+
readonly id: string;
|
|
1706
|
+
readonly name: string;
|
|
1707
|
+
readonly orientation?: ChartBarOrientation;
|
|
1708
|
+
readonly renderOpacity?: number;
|
|
1709
|
+
readonly style: ChartSeriesStyle;
|
|
1710
|
+
readonly type: "rangeBar";
|
|
1711
|
+
readonly xAxisId: string;
|
|
1712
|
+
readonly yAxisId: string;
|
|
1713
|
+
}
|
|
1714
|
+
interface ChartRangeAreaSeriesScene {
|
|
1715
|
+
readonly connectNulls: boolean;
|
|
1716
|
+
readonly curve: ChartCurve;
|
|
1717
|
+
readonly fillOpacity: number;
|
|
1718
|
+
readonly id: string;
|
|
1719
|
+
readonly name: string;
|
|
1720
|
+
readonly pointRadius: number;
|
|
1721
|
+
readonly points: readonly SceneRangeAreaPoint[];
|
|
1722
|
+
readonly renderOpacity?: number;
|
|
1723
|
+
readonly showPoints: boolean;
|
|
1724
|
+
readonly strokeWidth: number;
|
|
1725
|
+
readonly style: ChartSeriesStyle;
|
|
1726
|
+
readonly type: "rangeArea";
|
|
1727
|
+
readonly xAxisId: string;
|
|
1728
|
+
readonly yAxisId: string;
|
|
1729
|
+
}
|
|
1730
|
+
interface ChartFinancialSeriesStyle {
|
|
1731
|
+
readonly color?: string;
|
|
1732
|
+
readonly fallingColor: string;
|
|
1733
|
+
readonly hollowFillColor?: string;
|
|
1734
|
+
readonly neutralColor: string;
|
|
1735
|
+
readonly opacity?: number;
|
|
1736
|
+
readonly risingColor: string;
|
|
1737
|
+
readonly wickColor?: string;
|
|
1738
|
+
readonly wickWidth: number;
|
|
1739
|
+
}
|
|
1740
|
+
interface ChartCandlestickSeriesScene {
|
|
1741
|
+
readonly bodyWidth: number;
|
|
1742
|
+
readonly fillMode: ChartFinancialFillMode;
|
|
1743
|
+
readonly id: string;
|
|
1744
|
+
readonly marks: readonly SceneCandlestickMark[];
|
|
1745
|
+
readonly maxBodyWidth: number;
|
|
1746
|
+
readonly name: string;
|
|
1747
|
+
readonly renderOpacity?: number;
|
|
1748
|
+
readonly style: ChartFinancialSeriesStyle;
|
|
1749
|
+
readonly type: "candlestick";
|
|
1750
|
+
readonly wickWidth: number;
|
|
1751
|
+
readonly xAxisId: string;
|
|
1752
|
+
readonly yAxisId: string;
|
|
1753
|
+
}
|
|
1754
|
+
interface ChartOhlcSeriesScene {
|
|
1755
|
+
readonly bodyWidth: number;
|
|
1756
|
+
readonly id: string;
|
|
1757
|
+
readonly marks: readonly SceneOhlcMark[];
|
|
1758
|
+
readonly maxBodyWidth: number;
|
|
1759
|
+
readonly name: string;
|
|
1760
|
+
readonly renderOpacity?: number;
|
|
1761
|
+
readonly style: ChartFinancialSeriesStyle;
|
|
1762
|
+
readonly tickWidth: number;
|
|
1763
|
+
readonly type: "ohlc";
|
|
1764
|
+
readonly wickWidth: number;
|
|
1765
|
+
readonly xAxisId: string;
|
|
1766
|
+
readonly yAxisId: string;
|
|
1767
|
+
}
|
|
1768
|
+
type ChartSeriesScene = ChartAreaSeriesScene | ChartBarSeriesScene | ChartBubbleSeriesScene | ChartCandlestickSeriesScene | ChartLineSeriesScene | ChartOhlcSeriesScene | ChartRangeAreaSeriesScene | ChartRangeBarSeriesScene | ChartScatterSeriesScene;
|
|
1769
|
+
|
|
1770
1770
|
interface ResolvedCartesianAxisDescriptor<D extends "x" | "y" = "x" | "y"> {
|
|
1771
1771
|
readonly axisId: string;
|
|
1772
1772
|
readonly axisLine: boolean;
|
|
@@ -4488,8 +4488,8 @@ declare class ChartComponent implements ChartRegistrationContext, AfterContentCh
|
|
|
4488
4488
|
|
|
4489
4489
|
declare class ChartXAxisComponent implements OnInit {
|
|
4490
4490
|
#private;
|
|
4491
|
-
protected readonly labelTemplate: _angular_core.Signal<ChartAxisLabelTemplateDirective | undefined>;
|
|
4492
4491
|
get registrationId(): string;
|
|
4492
|
+
protected readonly labelTemplate: _angular_core.Signal<ChartAxisLabelTemplateDirective | undefined>;
|
|
4493
4493
|
/**
|
|
4494
4494
|
* @description Optional semantic identifier for the X axis, referenced by series `xAxisId`.
|
|
4495
4495
|
* @default undefined
|
|
@@ -4613,8 +4613,8 @@ declare class ChartXAxisComponent implements OnInit {
|
|
|
4613
4613
|
|
|
4614
4614
|
declare class ChartYAxisComponent implements OnInit {
|
|
4615
4615
|
#private;
|
|
4616
|
-
protected readonly labelTemplate: _angular_core.Signal<ChartAxisLabelTemplateDirective | undefined>;
|
|
4617
4616
|
get registrationId(): string;
|
|
4617
|
+
protected readonly labelTemplate: _angular_core.Signal<ChartAxisLabelTemplateDirective | undefined>;
|
|
4618
4618
|
/**
|
|
4619
4619
|
* @description Optional semantic identifier for the Y axis, referenced by series `yAxisId`.
|
|
4620
4620
|
* @default undefined
|