@spike-rabbit/charts-ng 49.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +20 -0
- package/README.md +50 -0
- package/fesm2022/spike-rabbit-charts-ng.mjs +3588 -0
- package/fesm2022/spike-rabbit-charts-ng.mjs.map +1 -0
- package/index.d.ts +1635 -0
- package/package.json +43 -0
- package/projects/charts-ng/README.md +50 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,1635 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef, AfterViewInit, OnChanges, OnInit, OnDestroy, SimpleChanges } from '@angular/core';
|
|
3
|
+
import * as echarts from 'echarts/core';
|
|
4
|
+
export { echarts };
|
|
5
|
+
import * as echarts$1 from 'echarts';
|
|
6
|
+
import { LegendComponentOption, DataZoomComponentOption, GridComponentOption, BarSeriesOption, CandlestickSeriesOption, CustomSeriesOption, GaugeSeriesOption, HeatmapSeriesOption, LineSeriesOption, PieSeriesOption, ScatterSeriesOption, SankeySeriesOption, SunburstSeriesOption, MarkAreaComponentOption, MarkPointComponentOption, MarkLineComponentOption } from 'echarts';
|
|
7
|
+
export { AxisPointerComponentOption, BarSeriesOption, BrushComponentOption, CandlestickSeriesOption, CustomSeriesOption, DataZoomComponentOption, DatasetComponentOption, GaugeSeriesOption, GridComponentOption, HeatmapSeriesOption, LegendComponentOption, LineSeriesOption, MarkAreaComponentOption, MarkLineComponentOption, MarkPointComponentOption, PieSeriesOption, PolarComponentOption, SankeySeriesOption, ScatterSeriesOption, SingleAxisComponentOption, SunburstSeriesOption, TitleComponentOption, ToolboxComponentOption, TooltipComponentOption, VisualMapComponentOption } from 'echarts';
|
|
8
|
+
import * as i1 from '@angular/common';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
12
|
+
* SPDX-License-Identifier: MIT
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
type EChartSeriesOption = BarSeriesOption | CandlestickSeriesOption | CustomSeriesOption | GaugeSeriesOption | HeatmapSeriesOption | LineSeriesOption | PieSeriesOption | ScatterSeriesOption | SankeySeriesOption | SunburstSeriesOption | never;
|
|
16
|
+
type EChartSeries = EChartSeriesOption[];
|
|
17
|
+
|
|
18
|
+
interface EChartOption {
|
|
19
|
+
legend?: LegendComponentOption[];
|
|
20
|
+
dataZoom?: DataZoomComponentOption[];
|
|
21
|
+
grid?: GridComponentOption | GridComponentOption[];
|
|
22
|
+
series?: EChartSeries;
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
28
|
+
* SPDX-License-Identifier: MIT
|
|
29
|
+
*/
|
|
30
|
+
interface CustomLegend {
|
|
31
|
+
customLegends: [
|
|
32
|
+
{
|
|
33
|
+
list: CustomLegendItem[];
|
|
34
|
+
unit?: string;
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
list: CustomLegendItem[];
|
|
38
|
+
unit?: string;
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
legendAxis: string;
|
|
42
|
+
top?: number | string;
|
|
43
|
+
gridIndex?: number;
|
|
44
|
+
}
|
|
45
|
+
interface CustomLegendItem {
|
|
46
|
+
name: string;
|
|
47
|
+
alternativeNaming?: boolean;
|
|
48
|
+
displayName?: string;
|
|
49
|
+
color?: string;
|
|
50
|
+
selected: boolean;
|
|
51
|
+
tooltip?: string;
|
|
52
|
+
symbol?: string;
|
|
53
|
+
}
|
|
54
|
+
interface CustomLegendProps {
|
|
55
|
+
displayName?: string;
|
|
56
|
+
unit?: string;
|
|
57
|
+
tooltip?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class SiCustomLegendComponent {
|
|
61
|
+
/** @internal */
|
|
62
|
+
readonly customLegendContainer: _angular_core.Signal<ElementRef<any>>;
|
|
63
|
+
readonly customLegend: _angular_core.InputSignal<CustomLegend | undefined>;
|
|
64
|
+
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
65
|
+
readonly subTitle: _angular_core.InputSignal<string | undefined>;
|
|
66
|
+
readonly titleColor: _angular_core.InputSignal<string | undefined>;
|
|
67
|
+
readonly subTitleColor: _angular_core.InputSignal<string | undefined>;
|
|
68
|
+
readonly textColor: _angular_core.InputSignal<string | undefined>;
|
|
69
|
+
readonly legendIconClickEvent: _angular_core.OutputEmitterRef<CustomLegendItem>;
|
|
70
|
+
readonly legendClickEvent: _angular_core.OutputEmitterRef<CustomLegendItem>;
|
|
71
|
+
readonly legendHoverStartEvent: _angular_core.OutputEmitterRef<CustomLegendItem>;
|
|
72
|
+
readonly legendHoverEndEvent: _angular_core.OutputEmitterRef<CustomLegendItem>;
|
|
73
|
+
protected legendIconClick(legend: CustomLegendItem): void;
|
|
74
|
+
protected legendClick(legend: CustomLegendItem): void;
|
|
75
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiCustomLegendComponent, never>;
|
|
76
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiCustomLegendComponent, "si-custom-legend", never, { "customLegend": { "alias": "customLegend"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subTitle": { "alias": "subTitle"; "required": false; "isSignal": true; }; "titleColor": { "alias": "titleColor"; "required": false; "isSignal": true; }; "subTitleColor": { "alias": "subTitleColor"; "required": false; "isSignal": true; }; "textColor": { "alias": "textColor"; "required": false; "isSignal": true; }; }, { "legendIconClickEvent": "legendIconClickEvent"; "legendClickEvent": "legendClickEvent"; "legendHoverStartEvent": "legendHoverStartEvent"; "legendHoverEndEvent": "legendHoverEndEvent"; }, never, never, true, never>;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
81
|
+
* SPDX-License-Identifier: MIT
|
|
82
|
+
*/
|
|
83
|
+
type AxisType = 'value' | 'category' | 'time' | 'log';
|
|
84
|
+
type XAxisPosition = 'top' | 'bottom';
|
|
85
|
+
type YAxisPosition = 'left' | 'right';
|
|
86
|
+
type FilterMode = 'none' | 'filter' | 'weakFilter' | 'empty';
|
|
87
|
+
type AxisData = (string | number | any)[];
|
|
88
|
+
interface ChartAxis {
|
|
89
|
+
type: AxisType;
|
|
90
|
+
offset?: number;
|
|
91
|
+
name?: string;
|
|
92
|
+
data?: AxisData;
|
|
93
|
+
min?: number;
|
|
94
|
+
max?: number;
|
|
95
|
+
splitLine?: {
|
|
96
|
+
show?: boolean;
|
|
97
|
+
};
|
|
98
|
+
axisLine?: {
|
|
99
|
+
show?: boolean;
|
|
100
|
+
onZero?: boolean;
|
|
101
|
+
};
|
|
102
|
+
splitNumber?: number;
|
|
103
|
+
axisLabel?: any;
|
|
104
|
+
show?: boolean;
|
|
105
|
+
gridIndex?: number;
|
|
106
|
+
}
|
|
107
|
+
interface ChartXAxis extends ChartAxis {
|
|
108
|
+
position?: XAxisPosition;
|
|
109
|
+
[key: string]: any;
|
|
110
|
+
}
|
|
111
|
+
interface ChartYAxis extends ChartAxis {
|
|
112
|
+
position?: YAxisPosition;
|
|
113
|
+
scale?: boolean;
|
|
114
|
+
[key: string]: any;
|
|
115
|
+
}
|
|
116
|
+
interface SeriesUpdate<SeriesType> {
|
|
117
|
+
index: number;
|
|
118
|
+
data: SeriesType;
|
|
119
|
+
}
|
|
120
|
+
interface AxisPointerEvent {
|
|
121
|
+
seriesIndex?: number;
|
|
122
|
+
dataIndex?: number;
|
|
123
|
+
}
|
|
124
|
+
interface DataZoomRange {
|
|
125
|
+
startValue?: any;
|
|
126
|
+
endValue?: any;
|
|
127
|
+
visibleWidth?: any;
|
|
128
|
+
start?: any;
|
|
129
|
+
end?: any;
|
|
130
|
+
}
|
|
131
|
+
interface DataZoomEvent {
|
|
132
|
+
rangeType: AxisType;
|
|
133
|
+
rangeStart: any;
|
|
134
|
+
rangeEnd: any;
|
|
135
|
+
width?: number;
|
|
136
|
+
autoZoomUpdate?: boolean;
|
|
137
|
+
requested?: DataZoomRange;
|
|
138
|
+
source?: string;
|
|
139
|
+
}
|
|
140
|
+
interface LineColor {
|
|
141
|
+
[key: string]: {
|
|
142
|
+
color: string;
|
|
143
|
+
index: number;
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
interface SeriesSelectionState {
|
|
147
|
+
[key: string]: boolean;
|
|
148
|
+
}
|
|
149
|
+
interface SelectedLegendItem {
|
|
150
|
+
legendItemName: string;
|
|
151
|
+
}
|
|
152
|
+
interface LegendItem {
|
|
153
|
+
itemName: string;
|
|
154
|
+
dataIndex: number;
|
|
155
|
+
selected?: boolean;
|
|
156
|
+
color?: string;
|
|
157
|
+
}
|
|
158
|
+
interface GridRectCoordinate {
|
|
159
|
+
x: number;
|
|
160
|
+
y: number;
|
|
161
|
+
width: number;
|
|
162
|
+
height: number;
|
|
163
|
+
containerWidth: number;
|
|
164
|
+
containerHeight: number;
|
|
165
|
+
}
|
|
166
|
+
interface CustomLegendMultiLineInfo {
|
|
167
|
+
customLegendId: number;
|
|
168
|
+
isCustomLegendMultilined: boolean;
|
|
169
|
+
}
|
|
170
|
+
interface SiSeriesOption {
|
|
171
|
+
displayName?: string;
|
|
172
|
+
customLegendToolTip?: string;
|
|
173
|
+
visible?: boolean;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
declare class SiChartComponent implements AfterViewInit, OnChanges, OnInit, OnDestroy {
|
|
177
|
+
/**
|
|
178
|
+
* reference to the wrapper container. Used for setting scroll position, etc.
|
|
179
|
+
*
|
|
180
|
+
* @defaultValue
|
|
181
|
+
* ```
|
|
182
|
+
* viewChild.required<ElementRef>('chartContainerWrapper')
|
|
183
|
+
* ```
|
|
184
|
+
*/
|
|
185
|
+
readonly chartContainerWrapper: _angular_core.Signal<ElementRef<any>>;
|
|
186
|
+
protected readonly chartContainer: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
187
|
+
protected readonly externalZoomSliderContainer: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
188
|
+
protected readonly siCustomLegend: _angular_core.Signal<readonly SiCustomLegendComponent[]>;
|
|
189
|
+
/**
|
|
190
|
+
* See [ECharts 5.x Documentation]{@link https://echarts.apache.org/en/option.html}
|
|
191
|
+
* for all available options.
|
|
192
|
+
*/
|
|
193
|
+
readonly options: _angular_core.InputSignal<EChartOption | undefined>;
|
|
194
|
+
/** Used to override specific properties set in `options`. */
|
|
195
|
+
readonly additionalOptions: _angular_core.InputSignal<EChartOption | undefined>;
|
|
196
|
+
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
197
|
+
readonly subTitle: _angular_core.InputSignal<string | undefined>;
|
|
198
|
+
/** @defaultValue true */
|
|
199
|
+
readonly showLegend: _angular_core.ModelSignal<boolean>;
|
|
200
|
+
/** @defaultValue false */
|
|
201
|
+
readonly showCustomLegend: _angular_core.InputSignal<boolean>;
|
|
202
|
+
/**
|
|
203
|
+
* the renderer to use: canvas or svg
|
|
204
|
+
*
|
|
205
|
+
* @defaultValue 'canvas'
|
|
206
|
+
*/
|
|
207
|
+
readonly renderer: _angular_core.InputSignal<"canvas" | "svg">;
|
|
208
|
+
/**
|
|
209
|
+
* Enables the zoom slider below the chart.
|
|
210
|
+
*
|
|
211
|
+
* @defaultValue false
|
|
212
|
+
*/
|
|
213
|
+
readonly zoomSlider: _angular_core.InputSignal<boolean>;
|
|
214
|
+
/**
|
|
215
|
+
* Shows data shadow in dataZoom slider, use together with `zoomSlider`.
|
|
216
|
+
*
|
|
217
|
+
* @defaultValue true
|
|
218
|
+
*/
|
|
219
|
+
readonly zoomSliderShadow: _angular_core.InputSignal<boolean>;
|
|
220
|
+
/**
|
|
221
|
+
* realtime update mode for zoom slider
|
|
222
|
+
*
|
|
223
|
+
* @defaultValue true
|
|
224
|
+
*/
|
|
225
|
+
readonly zoomSliderRealtime: _angular_core.InputSignal<boolean>;
|
|
226
|
+
/**
|
|
227
|
+
* enable brush mode for zoom slider
|
|
228
|
+
*
|
|
229
|
+
* @defaultValue true
|
|
230
|
+
*/
|
|
231
|
+
readonly zoomSliderBrush: _angular_core.InputSignal<boolean>;
|
|
232
|
+
/**
|
|
233
|
+
* Enables zooming inside the chart with the mouse wheel/touch.
|
|
234
|
+
*
|
|
235
|
+
* @defaultValue false
|
|
236
|
+
*/
|
|
237
|
+
readonly zoomInside: _angular_core.InputSignal<boolean>;
|
|
238
|
+
/** @defaultValue 1000 */
|
|
239
|
+
readonly maxEntries: _angular_core.InputSignal<number>;
|
|
240
|
+
/**
|
|
241
|
+
* No auto dataZoom update) by default. Use together with `autoZoomSeriesIndex`.
|
|
242
|
+
*
|
|
243
|
+
* @defaultValue -1
|
|
244
|
+
*/
|
|
245
|
+
readonly visibleEntries: _angular_core.ModelSignal<number>;
|
|
246
|
+
/**
|
|
247
|
+
* No auto dataZoom update) by default. Use together with `autoZoomSeriesIndex`.
|
|
248
|
+
*
|
|
249
|
+
* @defaultValue -1
|
|
250
|
+
*/
|
|
251
|
+
readonly visibleRange: _angular_core.ModelSignal<number>;
|
|
252
|
+
/**
|
|
253
|
+
* No auto dataZoom update) by default. Use together with `visibleEntries`.
|
|
254
|
+
*
|
|
255
|
+
* @defaultValue -1
|
|
256
|
+
*/
|
|
257
|
+
readonly autoZoomSeriesIndex: _angular_core.InputSignal<number>;
|
|
258
|
+
/** The desired theme to load. */
|
|
259
|
+
readonly theme: _angular_core.InputSignal<any>;
|
|
260
|
+
/** Used to override specific options of loaded `theme`. */
|
|
261
|
+
readonly themeCustomization: _angular_core.InputSignal<any>;
|
|
262
|
+
/**
|
|
263
|
+
* The name of the color palette (if any) of the loaded `theme`.
|
|
264
|
+
*
|
|
265
|
+
* @defaultValue undefined
|
|
266
|
+
*/
|
|
267
|
+
readonly palette: _angular_core.InputSignal<string | undefined>;
|
|
268
|
+
/**
|
|
269
|
+
* Used to display `axisPointer` line either by click or mouse-move.
|
|
270
|
+
*
|
|
271
|
+
* @defaultValue false
|
|
272
|
+
*/
|
|
273
|
+
readonly axisPointer: _angular_core.InputSignal<string | boolean | undefined>;
|
|
274
|
+
readonly dataZoomRange: _angular_core.InputSignal<DataZoomRange | undefined>;
|
|
275
|
+
readonly dataZoomMinValueSpan: _angular_core.InputSignal<number | undefined>;
|
|
276
|
+
readonly dataZoomMaxValueSpan: _angular_core.InputSignal<number | undefined>;
|
|
277
|
+
/** @defaultValue 'none' */
|
|
278
|
+
readonly dataZoomFilterMode: _angular_core.InputSignal<FilterMode>;
|
|
279
|
+
readonly customLegendAction: _angular_core.InputSignal<boolean | undefined>;
|
|
280
|
+
/**
|
|
281
|
+
* @defaultValue
|
|
282
|
+
* ```
|
|
283
|
+
* { legendItemName: '' }
|
|
284
|
+
* ```
|
|
285
|
+
*/
|
|
286
|
+
readonly selectedItem: _angular_core.InputSignal<SelectedLegendItem>;
|
|
287
|
+
readonly eChartContainerHeight: _angular_core.InputSignal<string | null | undefined>;
|
|
288
|
+
/**
|
|
289
|
+
* Flag to use external zoom slider
|
|
290
|
+
*
|
|
291
|
+
* @defaultValue false
|
|
292
|
+
*/
|
|
293
|
+
readonly externalZoomSlider: _angular_core.InputSignal<boolean>;
|
|
294
|
+
/** External XAxis Formatter from consumer */
|
|
295
|
+
readonly externalXAxisFormatter: _angular_core.InputSignal<((value: any, visibleRange: number) => string) | undefined>;
|
|
296
|
+
/**
|
|
297
|
+
* If true, add consumer-provided time range bar. Use together with `zoomSlider`.
|
|
298
|
+
* @deprecated The input will be removed in future versions as the time range bar slot is deprecated.
|
|
299
|
+
*
|
|
300
|
+
* @defaultValue false
|
|
301
|
+
*/
|
|
302
|
+
readonly showTimeRangeBar: _angular_core.InputSignal<boolean>;
|
|
303
|
+
/** Event emitted when data zoom changes. */
|
|
304
|
+
readonly dataZoom: _angular_core.OutputEmitterRef<DataZoomEvent>;
|
|
305
|
+
/** Event emitted when axis pointer moves. */
|
|
306
|
+
readonly pointer: _angular_core.OutputEmitterRef<AxisPointerEvent>;
|
|
307
|
+
readonly selectionChanged: _angular_core.OutputEmitterRef<any>;
|
|
308
|
+
readonly chartSeriesClick: _angular_core.OutputEmitterRef<LegendItem>;
|
|
309
|
+
/** Event emitted when chart grid is resized. */
|
|
310
|
+
readonly chartGridResized: _angular_core.OutputEmitterRef<GridRectCoordinate>;
|
|
311
|
+
readonly customLegendMultiLineInfoEvent: _angular_core.OutputEmitterRef<CustomLegendMultiLineInfo[]>;
|
|
312
|
+
/** Emitted when datazoom changes, indicating the time range in milliseconds, 0 for full range */
|
|
313
|
+
readonly timeRangeChange: _angular_core.OutputEmitterRef<number>;
|
|
314
|
+
/** Allow to override options specific for a chart type. */
|
|
315
|
+
protected actualOptions: EChartOption;
|
|
316
|
+
protected customLegend: CustomLegend[];
|
|
317
|
+
/** @internal */
|
|
318
|
+
chart: echarts.ECharts;
|
|
319
|
+
private extZoomSliderChart;
|
|
320
|
+
private echartElement;
|
|
321
|
+
private eChartExtSliderElement;
|
|
322
|
+
protected readonly inProgress: _angular_core.WritableSignal<boolean>;
|
|
323
|
+
protected readonly backgroundColor: _angular_core.WritableSignal<string>;
|
|
324
|
+
protected readonly textColor: _angular_core.WritableSignal<string>;
|
|
325
|
+
protected readonly titleColor: _angular_core.WritableSignal<string>;
|
|
326
|
+
protected readonly subTitleColor: _angular_core.WritableSignal<string>;
|
|
327
|
+
private selectedSeriesColors;
|
|
328
|
+
private unselectedSeriesColors;
|
|
329
|
+
private seriesSelectionState;
|
|
330
|
+
protected readonly containerHeight: _angular_core.WritableSignal<number | null>;
|
|
331
|
+
protected activeTheme: any;
|
|
332
|
+
protected autoZoomUpdate: boolean;
|
|
333
|
+
private subscriptions;
|
|
334
|
+
private prevAxisPointer;
|
|
335
|
+
private lastValidDataZoom;
|
|
336
|
+
private presetDataZoomRange?;
|
|
337
|
+
private dataZoomSetupDone;
|
|
338
|
+
private requestedDataZoom?;
|
|
339
|
+
private measureCanvas?;
|
|
340
|
+
private readonly cdRef;
|
|
341
|
+
protected curWidth: number;
|
|
342
|
+
protected curHeight: number;
|
|
343
|
+
protected readonly timeBarBottom: _angular_core.WritableSignal<number>;
|
|
344
|
+
protected readonly timeBarLeft: _angular_core.WritableSignal<number>;
|
|
345
|
+
protected readonly timeBarRight: _angular_core.WritableSignal<number>;
|
|
346
|
+
protected readonly timeBarHeight: _angular_core.WritableSignal<number>;
|
|
347
|
+
private gridCoordinates;
|
|
348
|
+
private customLegendsMultiLineInfo;
|
|
349
|
+
protected extZoomSliderOptions: EChartOption;
|
|
350
|
+
private echartMouseDown;
|
|
351
|
+
private echartMouseUp;
|
|
352
|
+
private echartExtSliderMouseDown;
|
|
353
|
+
private echartExtSliderMouseUp;
|
|
354
|
+
private readonly ngZone;
|
|
355
|
+
protected readonly shapePaths: Record<string, string>;
|
|
356
|
+
/**
|
|
357
|
+
* Allow consuming applications to re-draw chart on window resizes.
|
|
358
|
+
*/
|
|
359
|
+
resize(): void;
|
|
360
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
361
|
+
ngOnInit(): void;
|
|
362
|
+
ngAfterViewInit(skipZoom?: boolean): void;
|
|
363
|
+
private calculateTextWidth;
|
|
364
|
+
private disposeChart;
|
|
365
|
+
ngOnDestroy(): void;
|
|
366
|
+
/**
|
|
367
|
+
* Re-render the whole chart.
|
|
368
|
+
*/
|
|
369
|
+
resetChart(): void;
|
|
370
|
+
protected handleLegendClick(legend: CustomLegendItem): void;
|
|
371
|
+
protected handleLegendHover(legend: CustomLegendItem, start: boolean): void;
|
|
372
|
+
/**
|
|
373
|
+
* Toggle visibility of a series.
|
|
374
|
+
*/
|
|
375
|
+
toggleSeriesVisibility(name: string, visible: boolean): void;
|
|
376
|
+
private doToggleSeriesVisibility;
|
|
377
|
+
private findCustomLegendItem;
|
|
378
|
+
protected getValidXAxis(): Set<number> | undefined;
|
|
379
|
+
protected setZoomMode(): void;
|
|
380
|
+
private applyTheme;
|
|
381
|
+
protected themeChanged(): void;
|
|
382
|
+
protected applyOptions(): void;
|
|
383
|
+
protected applyCustomLegendPosition(): void;
|
|
384
|
+
private applyAdditionalOptions;
|
|
385
|
+
private applyPalette;
|
|
386
|
+
protected applyDataZoom(): void;
|
|
387
|
+
private handleAxisPointer;
|
|
388
|
+
private handleAxisPointerSingleAxis;
|
|
389
|
+
protected hasDataZoom(): boolean;
|
|
390
|
+
protected getThemeValue(props: string[], defaultValue: any, ns?: string): any;
|
|
391
|
+
protected getThemeCustomValue(props: string[], defaultValue: any): any;
|
|
392
|
+
protected applyTitles(): void;
|
|
393
|
+
private modifyTopAlignment;
|
|
394
|
+
protected afterChartInit(skipZoom?: boolean): void;
|
|
395
|
+
protected afterChartResize(): void;
|
|
396
|
+
private getEChartInner;
|
|
397
|
+
private getEChartExternalSliderInner;
|
|
398
|
+
private handleExtChartMouseDown;
|
|
399
|
+
private handleExtChartMouseUp;
|
|
400
|
+
private handleChartMouseDown;
|
|
401
|
+
private handleChartMouseUp;
|
|
402
|
+
private setDataZoomRange;
|
|
403
|
+
private handleDataZoom;
|
|
404
|
+
private handleExtDataZoom;
|
|
405
|
+
protected handleSelectionChanged(event: any): void;
|
|
406
|
+
/**
|
|
407
|
+
* Creates two objects that stores the colors for selected and unselected series. Used only for custom legend actions.
|
|
408
|
+
*/
|
|
409
|
+
protected fetchSeriesColors(colorsToBeUSed?: any): void;
|
|
410
|
+
/**
|
|
411
|
+
* Handles legend select event in non echart native way.
|
|
412
|
+
* @param event - legend select
|
|
413
|
+
*/
|
|
414
|
+
protected handleSelectionChangedCustom(event: any): void;
|
|
415
|
+
/**
|
|
416
|
+
* Handles click on series in non echart native way.
|
|
417
|
+
* @param event - click
|
|
418
|
+
*/
|
|
419
|
+
protected handleClickOnChart(event: any, toggleVisibility: boolean): void;
|
|
420
|
+
/**
|
|
421
|
+
* Selects or unselects the series based on series state object
|
|
422
|
+
* @param seriesName - series to be selected/unselected
|
|
423
|
+
* @param emit - if true event is emitted otherwise no event is emitted
|
|
424
|
+
*/
|
|
425
|
+
protected styleSelectedSeries(seriesName: string, emit: boolean, seriesDataIndex: number): any;
|
|
426
|
+
/**
|
|
427
|
+
* Selects the series
|
|
428
|
+
* @param element - to be styled as selected
|
|
429
|
+
* @param emit - if true event is emitted otherwise no event is emitted
|
|
430
|
+
*/
|
|
431
|
+
protected selectSeries(element: any, emit: boolean, seriesDataIndex: number): any;
|
|
432
|
+
/**
|
|
433
|
+
* Unselects the series
|
|
434
|
+
* @param element - to be styled as unselected
|
|
435
|
+
* @param emit - if true event is emitted otherwise no event is emitted
|
|
436
|
+
*/
|
|
437
|
+
protected unselectSeries(element: any, emit: boolean, seriesDataIndex: number): {
|
|
438
|
+
color: any;
|
|
439
|
+
series: (EChartSeries | undefined)[];
|
|
440
|
+
};
|
|
441
|
+
private isValidDataZoomValue;
|
|
442
|
+
private saveCurrentDataZoom;
|
|
443
|
+
/**
|
|
444
|
+
* Get color by series name.
|
|
445
|
+
*/
|
|
446
|
+
getSeriesColorBySeriesName(seriesName: string): string | undefined;
|
|
447
|
+
private doGetSeriesColorBySeriesName;
|
|
448
|
+
private applyColorsToCustomLegends;
|
|
449
|
+
private handleUpdateAxisPointer;
|
|
450
|
+
/**
|
|
451
|
+
* Get current data zoom range.
|
|
452
|
+
*/
|
|
453
|
+
getVisibleRange(): DataZoomEvent | undefined;
|
|
454
|
+
protected internalGetModel(): any;
|
|
455
|
+
/**
|
|
456
|
+
* returns the current EChart options, w/o cloning anything. Be very careful
|
|
457
|
+
* not to change anything in the data structure in it.
|
|
458
|
+
*/
|
|
459
|
+
getOptionNoClone(): any;
|
|
460
|
+
protected parsePercent(percent: string | number, all: number): number;
|
|
461
|
+
private doGetVisibleRange;
|
|
462
|
+
protected updateEChart(force?: boolean, options?: EChartOption): void;
|
|
463
|
+
protected updateAxisAndDataZoom(inOptions?: EChartOption): boolean;
|
|
464
|
+
/**
|
|
465
|
+
* Send action to echart.
|
|
466
|
+
* @see https://echarts.apache.org/en/api.html#action
|
|
467
|
+
*/
|
|
468
|
+
dispatchEChartAction(action: echarts.Payload): void;
|
|
469
|
+
private getSeriesMinMax;
|
|
470
|
+
private calculateVisibleRange;
|
|
471
|
+
private getValueFromSeriesPoint;
|
|
472
|
+
private calculateZoomStartValue;
|
|
473
|
+
protected hasData(): boolean;
|
|
474
|
+
/**
|
|
475
|
+
* Re-render the chart series data. This method should be called on series data changes.
|
|
476
|
+
*/
|
|
477
|
+
refreshSeries(isLive?: boolean, dzToSet?: DataZoomRange): void;
|
|
478
|
+
private updateDataZoom;
|
|
479
|
+
private doUpdateDZ;
|
|
480
|
+
protected applyStyles(): void;
|
|
481
|
+
protected addLegendItem(name: string, visible?: boolean | null, index?: number, gridIndex?: number, customLegendProp?: CustomLegendProps, seriesSymbol?: string): void;
|
|
482
|
+
private getPath;
|
|
483
|
+
private addCustomLegend;
|
|
484
|
+
/**
|
|
485
|
+
* Show loading indicator.
|
|
486
|
+
*/
|
|
487
|
+
startProgressIndication(): void;
|
|
488
|
+
/**
|
|
489
|
+
* Hide loading indicator.
|
|
490
|
+
*/
|
|
491
|
+
stopProgressIndication(): void;
|
|
492
|
+
/**
|
|
493
|
+
* Set the data zoom range for the chart in milliseconds.
|
|
494
|
+
* As an example one hour is the value 3600000.
|
|
495
|
+
*/
|
|
496
|
+
setTimeRange(range: number): void;
|
|
497
|
+
protected addDataInternal(series: SeriesUpdate<any>[]): void;
|
|
498
|
+
private getPresetDataZoom;
|
|
499
|
+
private checkGridSizeChange;
|
|
500
|
+
private gridSizeItemChanged;
|
|
501
|
+
private setContainerHeight;
|
|
502
|
+
private updateCustomLegendMultiLineInfo;
|
|
503
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartComponent, never>;
|
|
504
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChartComponent, "si-chart", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "additionalOptions": { "alias": "additionalOptions"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subTitle": { "alias": "subTitle"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showCustomLegend": { "alias": "showCustomLegend"; "required": false; "isSignal": true; }; "renderer": { "alias": "renderer"; "required": false; "isSignal": true; }; "zoomSlider": { "alias": "zoomSlider"; "required": false; "isSignal": true; }; "zoomSliderShadow": { "alias": "zoomSliderShadow"; "required": false; "isSignal": true; }; "zoomSliderRealtime": { "alias": "zoomSliderRealtime"; "required": false; "isSignal": true; }; "zoomSliderBrush": { "alias": "zoomSliderBrush"; "required": false; "isSignal": true; }; "zoomInside": { "alias": "zoomInside"; "required": false; "isSignal": true; }; "maxEntries": { "alias": "maxEntries"; "required": false; "isSignal": true; }; "visibleEntries": { "alias": "visibleEntries"; "required": false; "isSignal": true; }; "visibleRange": { "alias": "visibleRange"; "required": false; "isSignal": true; }; "autoZoomSeriesIndex": { "alias": "autoZoomSeriesIndex"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "themeCustomization": { "alias": "themeCustomization"; "required": false; "isSignal": true; }; "palette": { "alias": "palette"; "required": false; "isSignal": true; }; "axisPointer": { "alias": "axisPointer"; "required": false; "isSignal": true; }; "dataZoomRange": { "alias": "dataZoomRange"; "required": false; "isSignal": true; }; "dataZoomMinValueSpan": { "alias": "dataZoomMinValueSpan"; "required": false; "isSignal": true; }; "dataZoomMaxValueSpan": { "alias": "dataZoomMaxValueSpan"; "required": false; "isSignal": true; }; "dataZoomFilterMode": { "alias": "dataZoomFilterMode"; "required": false; "isSignal": true; }; "customLegendAction": { "alias": "customLegendAction"; "required": false; "isSignal": true; }; "selectedItem": { "alias": "selectedItem"; "required": false; "isSignal": true; }; "eChartContainerHeight": { "alias": "eChartContainerHeight"; "required": false; "isSignal": true; }; "externalZoomSlider": { "alias": "externalZoomSlider"; "required": false; "isSignal": true; }; "externalXAxisFormatter": { "alias": "externalXAxisFormatter"; "required": false; "isSignal": true; }; "showTimeRangeBar": { "alias": "showTimeRangeBar"; "required": false; "isSignal": true; }; }, { "showLegend": "showLegendChange"; "visibleEntries": "visibleEntriesChange"; "visibleRange": "visibleRangeChange"; "dataZoom": "dataZoom"; "pointer": "pointer"; "selectionChanged": "selectionChanged"; "chartSeriesClick": "chartSeriesClick"; "chartGridResized": "chartGridResized"; "customLegendMultiLineInfoEvent": "customLegendMultiLineInfoEvent"; "timeRangeChange": "timeRangeChange"; }, never, ["[slot=timeRangeBar]"], true, never>;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
509
|
+
* SPDX-License-Identifier: MIT
|
|
510
|
+
*/
|
|
511
|
+
|
|
512
|
+
type LineStepType = 'start' | 'middle' | 'end';
|
|
513
|
+
type LineType = 'solid' | 'dashed' | 'dotted';
|
|
514
|
+
interface SubchartGrid {
|
|
515
|
+
categoryId?: string;
|
|
516
|
+
top?: number | string;
|
|
517
|
+
bottom?: number | string;
|
|
518
|
+
left?: number | string;
|
|
519
|
+
right?: number | string;
|
|
520
|
+
height?: number | string;
|
|
521
|
+
containLabel?: boolean;
|
|
522
|
+
}
|
|
523
|
+
interface SiLineSeriesOption extends LineSeriesOption, SiSeriesOption {
|
|
524
|
+
area?: boolean;
|
|
525
|
+
}
|
|
526
|
+
type SiBarSeriesOption = BarSeriesOption & SiSeriesOption;
|
|
527
|
+
type SiHeatmapSeriesOption = HeatmapSeriesOption & SiSeriesOption;
|
|
528
|
+
type SiScatterSeriesOption = ScatterSeriesOption & SiSeriesOption;
|
|
529
|
+
type SiCandlestickSeriesOption = CandlestickSeriesOption & SiSeriesOption;
|
|
530
|
+
type LineSeriesData = NonNullable<LineSeriesOption['data']>;
|
|
531
|
+
type BarSeriesData = NonNullable<BarSeriesOption['data']>;
|
|
532
|
+
type HeatmapSeriesData = NonNullable<HeatmapSeriesOption['data']>;
|
|
533
|
+
type ScatterSeriesData = NonNullable<Exclude<ScatterSeriesOption['data'], ArrayLike<number>>>;
|
|
534
|
+
type CandlestickSeriesData = NonNullable<CandlestickSeriesOption['data']>;
|
|
535
|
+
type CartesianDataNullable = LineSeriesData | BarSeriesData | HeatmapSeriesData | ScatterSeriesData | CandlestickSeriesData | never;
|
|
536
|
+
type CartesianChartData = NonNullable<CartesianDataNullable>;
|
|
537
|
+
type CartesianChartSeries = SiBarSeriesOption | SiLineSeriesOption | SiHeatmapSeriesOption | SiScatterSeriesOption | SiCandlestickSeriesOption | never;
|
|
538
|
+
type MarkAreaData = NonNullable<MarkAreaComponentOption['data']>;
|
|
539
|
+
type MarkPointData = NonNullable<MarkPointComponentOption['data']>;
|
|
540
|
+
type MarkLineData = NonNullable<MarkLineComponentOption['data']>;
|
|
541
|
+
|
|
542
|
+
declare class SiChartCartesianComponent extends SiChartComponent implements OnChanges {
|
|
543
|
+
readonly series: _angular_core.InputSignal<CartesianChartSeries[] | undefined>;
|
|
544
|
+
readonly subChartGrids: _angular_core.InputSignal<SubchartGrid[] | undefined>;
|
|
545
|
+
readonly yAxis: _angular_core.InputSignal<ChartYAxis | ChartYAxis[] | undefined>;
|
|
546
|
+
readonly xAxis: _angular_core.InputSignal<ChartXAxis | ChartXAxis[] | undefined>;
|
|
547
|
+
readonly tooltipFormatter: _angular_core.InputSignal<string | echarts$1.TooltipComponentFormatterCallback<echarts$1.TooltipComponentFormatterCallbackParams> | undefined>;
|
|
548
|
+
/**
|
|
549
|
+
* Used to display the chart as a stacked one.
|
|
550
|
+
*
|
|
551
|
+
* @defaultValue false
|
|
552
|
+
*/
|
|
553
|
+
readonly stacked: _angular_core.InputSignal<boolean>;
|
|
554
|
+
/** Enable or disable brush zoom mode */
|
|
555
|
+
readonly zoomMode: _angular_core.InputSignal<boolean | undefined>;
|
|
556
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
557
|
+
private formatTooltip;
|
|
558
|
+
/**
|
|
559
|
+
* Get the series marker svg by series name.
|
|
560
|
+
*/
|
|
561
|
+
getSeriesMarkerSvg(seriesName: string): string;
|
|
562
|
+
/**
|
|
563
|
+
* Get the series marker by series name.
|
|
564
|
+
*/
|
|
565
|
+
getSeriesMarker(seriesName: string): string;
|
|
566
|
+
protected afterChartInit(skipZoom?: boolean): void;
|
|
567
|
+
protected setZoomMode(): void;
|
|
568
|
+
protected getValidXAxis(): Set<number>;
|
|
569
|
+
protected applyOptions(): void;
|
|
570
|
+
private hasDifferentMarker;
|
|
571
|
+
private getGrid;
|
|
572
|
+
refreshSeries(isLive?: boolean, dzToSet?: DataZoomRange): void;
|
|
573
|
+
protected hasData(): boolean;
|
|
574
|
+
protected handleSelectionChanged(event: any): void;
|
|
575
|
+
/**
|
|
576
|
+
* Update single chart data entry.
|
|
577
|
+
*/
|
|
578
|
+
addData(index: number, data: CartesianChartData): void;
|
|
579
|
+
/**
|
|
580
|
+
* Append charts data entries to the end of the series.
|
|
581
|
+
*/
|
|
582
|
+
addDataMulti(series: SeriesUpdate<CartesianChartData>[]): void;
|
|
583
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartCartesianComponent, never>;
|
|
584
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChartCartesianComponent, "si-chart-cartesian", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "subChartGrids": { "alias": "subChartGrids"; "required": false; "isSignal": true; }; "yAxis": { "alias": "yAxis"; "required": false; "isSignal": true; }; "xAxis": { "alias": "xAxis"; "required": false; "isSignal": true; }; "tooltipFormatter": { "alias": "tooltipFormatter"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "zoomMode": { "alias": "zoomMode"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
589
|
+
* SPDX-License-Identifier: MIT
|
|
590
|
+
*/
|
|
591
|
+
|
|
592
|
+
interface CircleChartData {
|
|
593
|
+
value: number;
|
|
594
|
+
name?: string;
|
|
595
|
+
label?: {
|
|
596
|
+
color?: string;
|
|
597
|
+
[key: string]: any;
|
|
598
|
+
};
|
|
599
|
+
itemStyle?: {
|
|
600
|
+
color?: string;
|
|
601
|
+
[key: string]: any;
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
interface CircleChartSeries {
|
|
605
|
+
name: string;
|
|
606
|
+
radius?: string[];
|
|
607
|
+
data: CircleChartData[];
|
|
608
|
+
label?: {
|
|
609
|
+
/**
|
|
610
|
+
* A custom label formatter based on echarts, some commonly used variations can be
|
|
611
|
+
* \{a\}: series name.
|
|
612
|
+
* \{b\}: the name of a data item.
|
|
613
|
+
* \{c\}: the value of a data item.
|
|
614
|
+
* \{d\}: the percent.
|
|
615
|
+
* See {@link https://echarts.apache.org/en/option.html#series-pie.label.formatter}
|
|
616
|
+
*/
|
|
617
|
+
formatter?: NonNullable<PieSeriesOption['label']>['formatter'];
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
interface CircleValueUpdate {
|
|
621
|
+
seriesIndex: number;
|
|
622
|
+
valueIndex: number;
|
|
623
|
+
value: number;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
declare class SiChartCircleComponent extends SiChartComponent {
|
|
627
|
+
readonly series: _angular_core.InputSignal<CircleChartSeries[] | undefined>;
|
|
628
|
+
protected applyOptions(): void;
|
|
629
|
+
protected applyDataZoom(): void;
|
|
630
|
+
/**
|
|
631
|
+
* Update single value of the circle chart.
|
|
632
|
+
*/
|
|
633
|
+
changeSingleValue(index: number, valueIndex: number, value: number): void;
|
|
634
|
+
/**
|
|
635
|
+
* Update multiple values of the circle chart.
|
|
636
|
+
*/
|
|
637
|
+
changeMultiValues(updateValues: CircleValueUpdate[]): void;
|
|
638
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartCircleComponent, never>;
|
|
639
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChartCircleComponent, "si-chart-circle", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
declare class SiChartGaugeComponent extends SiChartComponent implements OnChanges {
|
|
643
|
+
/** @defaultValue 0 */
|
|
644
|
+
readonly minValue: _angular_core.InputSignal<number>;
|
|
645
|
+
/** @defaultValue 100 */
|
|
646
|
+
readonly maxValue: _angular_core.InputSignal<number>;
|
|
647
|
+
/** @defaultValue 0 */
|
|
648
|
+
readonly value: _angular_core.InputSignal<number>;
|
|
649
|
+
readonly splitSteps: _angular_core.InputSignal<number | undefined>;
|
|
650
|
+
/** @defaultValue true */
|
|
651
|
+
readonly responsiveSplitSteps: _angular_core.InputSignal<boolean>;
|
|
652
|
+
/** @defaultValue '%' */
|
|
653
|
+
readonly unit: _angular_core.InputSignal<string>;
|
|
654
|
+
/** @defaultValue false */
|
|
655
|
+
readonly unitsOnSplit: _angular_core.InputSignal<boolean>;
|
|
656
|
+
/**
|
|
657
|
+
* Custom formatter for axis labels.
|
|
658
|
+
* Takes precedence when specified, i.e. number of decimals, unit etc needs
|
|
659
|
+
* to be set by the user using this formatter.
|
|
660
|
+
*/
|
|
661
|
+
readonly labelFormatter: _angular_core.InputSignal<((val: number) => string) | undefined>;
|
|
662
|
+
/**
|
|
663
|
+
* Custom formatter for value.
|
|
664
|
+
* Takes precedence when specified, i.e. number of decimals needs
|
|
665
|
+
* to be set by the user using this formatter.
|
|
666
|
+
*/
|
|
667
|
+
readonly valueFormatter: _angular_core.InputSignal<((val: number) => string) | undefined>;
|
|
668
|
+
/**
|
|
669
|
+
* Sets the number of decimals.
|
|
670
|
+
* @deprecated Use `minNumberOfDecimals` and `maxNumberOfDecimals` instead.
|
|
671
|
+
* @defaultValue undefined */
|
|
672
|
+
readonly numberOfDecimals: _angular_core.InputSignal<number | undefined>;
|
|
673
|
+
/**
|
|
674
|
+
* Min number of decimals.
|
|
675
|
+
* @defaultValue 0
|
|
676
|
+
*/
|
|
677
|
+
readonly minNumberOfDecimals: _angular_core.InputSignal<number>;
|
|
678
|
+
/**
|
|
679
|
+
* Max number of decimals.
|
|
680
|
+
* @defaultValue 0
|
|
681
|
+
*/
|
|
682
|
+
readonly maxNumberOfDecimals: _angular_core.InputSignal<number>;
|
|
683
|
+
/**
|
|
684
|
+
* Number of decimals on the axis.
|
|
685
|
+
* @defaultValue 0
|
|
686
|
+
*/
|
|
687
|
+
readonly axisNumberOfDecimals: _angular_core.InputSignal<number>;
|
|
688
|
+
/** @defaultValue false */
|
|
689
|
+
readonly hideAxisLabels: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
690
|
+
/**
|
|
691
|
+
* Segments on the arc from 0 (implicit) to 1 (explicit)
|
|
692
|
+
* E.g. 0.2 means from 0 to 0.2 of the possible range (maxValue - minValue)
|
|
693
|
+
*
|
|
694
|
+
* @defaultValue [0.2, 0.8, 1]
|
|
695
|
+
*/
|
|
696
|
+
readonly segments: _angular_core.InputSignal<number[]>;
|
|
697
|
+
/**
|
|
698
|
+
* Colors for the defined segments.
|
|
699
|
+
* If there are less colors then segments, the colors will be repeated. Defaults to the standard color palette
|
|
700
|
+
*/
|
|
701
|
+
readonly colors: _angular_core.InputSignal<string[] | undefined>;
|
|
702
|
+
private readonly locale;
|
|
703
|
+
private readonly actualMinNumberOfDecimals;
|
|
704
|
+
private readonly actualMaxNumberOfDecimals;
|
|
705
|
+
private readonly numberFormat;
|
|
706
|
+
private readonly axisNumberFormat;
|
|
707
|
+
protected afterChartInit(): void;
|
|
708
|
+
private updateColors;
|
|
709
|
+
private setAxisLineColor;
|
|
710
|
+
private getResponsiveConfig;
|
|
711
|
+
private calcValue;
|
|
712
|
+
private axisLabelFormatter;
|
|
713
|
+
protected applyOptions(): void;
|
|
714
|
+
private valueFormatterInternal;
|
|
715
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
716
|
+
protected applyDataZoom(): void;
|
|
717
|
+
protected afterChartResize(): void;
|
|
718
|
+
/**
|
|
719
|
+
* Update gauge chart value.
|
|
720
|
+
*/
|
|
721
|
+
setValue(value: number): void;
|
|
722
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartGaugeComponent, never>;
|
|
723
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChartGaugeComponent, "si-chart-gauge", never, { "minValue": { "alias": "minValue"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "splitSteps": { "alias": "splitSteps"; "required": false; "isSignal": true; }; "responsiveSplitSteps": { "alias": "responsiveSplitSteps"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "unitsOnSplit": { "alias": "unitsOnSplit"; "required": false; "isSignal": true; }; "labelFormatter": { "alias": "labelFormatter"; "required": false; "isSignal": true; }; "valueFormatter": { "alias": "valueFormatter"; "required": false; "isSignal": true; }; "numberOfDecimals": { "alias": "numberOfDecimals"; "required": false; "isSignal": true; }; "minNumberOfDecimals": { "alias": "minNumberOfDecimals"; "required": false; "isSignal": true; }; "maxNumberOfDecimals": { "alias": "maxNumberOfDecimals"; "required": false; "isSignal": true; }; "axisNumberOfDecimals": { "alias": "axisNumberOfDecimals"; "required": false; "isSignal": true; }; "hideAxisLabels": { "alias": "hideAxisLabels"; "required": false; "isSignal": true; }; "segments": { "alias": "segments"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
728
|
+
* SPDX-License-Identifier: MIT
|
|
729
|
+
*/
|
|
730
|
+
interface GaugeChartSeries {
|
|
731
|
+
data: any[];
|
|
732
|
+
min: number;
|
|
733
|
+
max: number;
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
738
|
+
* SPDX-License-Identifier: MIT
|
|
739
|
+
*/
|
|
740
|
+
interface ProgressChartSeries {
|
|
741
|
+
name: string;
|
|
742
|
+
percent: number;
|
|
743
|
+
}
|
|
744
|
+
interface ProgressValueUpdate {
|
|
745
|
+
seriesIndex: number;
|
|
746
|
+
percent: number;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
declare class SiChartProgressComponent extends SiChartComponent {
|
|
750
|
+
readonly series: _angular_core.InputSignal<ProgressChartSeries[] | undefined>;
|
|
751
|
+
/**
|
|
752
|
+
* How big the data can get in degrees.
|
|
753
|
+
*
|
|
754
|
+
* @defaultValue 220
|
|
755
|
+
*/
|
|
756
|
+
readonly dataAngle: _angular_core.InputSignal<number>;
|
|
757
|
+
private itemWidth;
|
|
758
|
+
private itemGap;
|
|
759
|
+
private baseRadius;
|
|
760
|
+
private sizeFactor;
|
|
761
|
+
private center;
|
|
762
|
+
private grey;
|
|
763
|
+
private startAngle;
|
|
764
|
+
protected afterChartInit(): void;
|
|
765
|
+
protected themeChanged(): void;
|
|
766
|
+
protected handleSelectionChanged(event: any): void;
|
|
767
|
+
protected applyOptions(): void;
|
|
768
|
+
private labelFormatter;
|
|
769
|
+
private addSeries;
|
|
770
|
+
private updateData;
|
|
771
|
+
private calculateRadius;
|
|
772
|
+
private updateRadius;
|
|
773
|
+
protected applyDataZoom(): void;
|
|
774
|
+
/**
|
|
775
|
+
* Update single value of the progress chart.
|
|
776
|
+
*/
|
|
777
|
+
changeSingleValue(index: number, percent: number): void;
|
|
778
|
+
/**
|
|
779
|
+
* Update multiple values of the progress chart.
|
|
780
|
+
*/
|
|
781
|
+
changeMultiValues(updateValues: ProgressValueUpdate[]): void;
|
|
782
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartProgressComponent, never>;
|
|
783
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChartProgressComponent, "si-chart-progress", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "dataAngle": { "alias": "dataAngle"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Copyright (c) Siemens 2016 - 2025
|
|
788
|
+
* SPDX-License-Identifier: MIT
|
|
789
|
+
*/
|
|
790
|
+
interface ProgressBarChartSeries {
|
|
791
|
+
name: string;
|
|
792
|
+
percent: number;
|
|
793
|
+
}
|
|
794
|
+
interface ProgressBarValueUpdate {
|
|
795
|
+
valueIndex: number;
|
|
796
|
+
value: number;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
declare class SiChartProgressBarComponent extends SiChartComponent {
|
|
800
|
+
readonly series: _angular_core.InputSignal<ProgressBarChartSeries[] | undefined>;
|
|
801
|
+
/** Used to display the label in inline or above the progress-bar. */
|
|
802
|
+
readonly labelPosition: _angular_core.InputSignal<string | undefined>;
|
|
803
|
+
private maxValue;
|
|
804
|
+
private xAxisConfig;
|
|
805
|
+
private yAxis;
|
|
806
|
+
private formatter;
|
|
807
|
+
private labelPositionOption;
|
|
808
|
+
private labelPositionOptionForValue;
|
|
809
|
+
private labelFormatter;
|
|
810
|
+
protected themeChanged(): void;
|
|
811
|
+
protected applyOptions(): void;
|
|
812
|
+
protected applyDataZoom(): void;
|
|
813
|
+
/**
|
|
814
|
+
* Updates single value of a single progress bar.
|
|
815
|
+
*/
|
|
816
|
+
changeSingleValue(valueIndex: number, value: number): void;
|
|
817
|
+
/**
|
|
818
|
+
* Updates multiple values of a single progress bar.
|
|
819
|
+
*/
|
|
820
|
+
changeMultiValues(updateValues: ProgressBarValueUpdate[]): void;
|
|
821
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartProgressBarComponent, never>;
|
|
822
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChartProgressBarComponent, "si-chart-progress-bar", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "labelPosition": { "alias": "labelPosition"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
declare class SiChartSankeyComponent extends SiChartComponent {
|
|
826
|
+
readonly series: _angular_core.InputSignal<SankeySeriesOption | undefined>;
|
|
827
|
+
/** @defaultValue false */
|
|
828
|
+
readonly toolTip: _angular_core.InputSignal<boolean>;
|
|
829
|
+
protected applyOptions(): void;
|
|
830
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartSankeyComponent, never>;
|
|
831
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChartSankeyComponent, "si-chart-sankey", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "toolTip": { "alias": "toolTip"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
declare class SiChartSunburstComponent extends SiChartComponent {
|
|
835
|
+
readonly series: _angular_core.InputSignal<SunburstSeriesOption | undefined>;
|
|
836
|
+
/** @defaultValue false */
|
|
837
|
+
readonly toolTip: _angular_core.InputSignal<boolean>;
|
|
838
|
+
protected applyOptions(): void;
|
|
839
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartSunburstComponent, never>;
|
|
840
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChartSunburstComponent, "si-chart-sunburst", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "toolTip": { "alias": "toolTip"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
declare const themeSupport: {
|
|
844
|
+
_defaultTheme: {
|
|
845
|
+
name: string;
|
|
846
|
+
style: () => {
|
|
847
|
+
textStyle: {
|
|
848
|
+
fontFamily: string | undefined;
|
|
849
|
+
};
|
|
850
|
+
color: string[];
|
|
851
|
+
gradientColor: string[];
|
|
852
|
+
backgroundColor: string;
|
|
853
|
+
animationDuration: number;
|
|
854
|
+
title: {
|
|
855
|
+
padding: number[];
|
|
856
|
+
textStyle: {
|
|
857
|
+
fontFamily: string | undefined;
|
|
858
|
+
lineHeight: number;
|
|
859
|
+
fontSize: number;
|
|
860
|
+
color: string;
|
|
861
|
+
};
|
|
862
|
+
subtextStyle: {
|
|
863
|
+
fontFamily: string | undefined;
|
|
864
|
+
lineHeight: number;
|
|
865
|
+
fontSize: number;
|
|
866
|
+
color: string;
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
legend: {
|
|
870
|
+
backgroundColor: string;
|
|
871
|
+
inactiveColor: string;
|
|
872
|
+
left: string;
|
|
873
|
+
right: number;
|
|
874
|
+
top: number;
|
|
875
|
+
textStyle: {
|
|
876
|
+
fontFamily: string | undefined;
|
|
877
|
+
color: string;
|
|
878
|
+
lineHeight: number;
|
|
879
|
+
fontSize: number;
|
|
880
|
+
};
|
|
881
|
+
icon: string;
|
|
882
|
+
pageTextStyle: {
|
|
883
|
+
color: string;
|
|
884
|
+
};
|
|
885
|
+
itemStyle: {
|
|
886
|
+
borderWidth: number;
|
|
887
|
+
itemGap: number;
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
tooltip: {
|
|
891
|
+
borderWidth: number;
|
|
892
|
+
backgroundColor: string;
|
|
893
|
+
textStyle: {
|
|
894
|
+
fontFamily: string | undefined;
|
|
895
|
+
color: string;
|
|
896
|
+
fontWeight: number;
|
|
897
|
+
};
|
|
898
|
+
padding: number[];
|
|
899
|
+
axisPointer: {
|
|
900
|
+
crossStyle: {
|
|
901
|
+
color: string;
|
|
902
|
+
width: number;
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
formatter: (p: object | object[]) => string;
|
|
906
|
+
};
|
|
907
|
+
axisPointer: {
|
|
908
|
+
label: {
|
|
909
|
+
fontFamily: string | undefined;
|
|
910
|
+
color: string;
|
|
911
|
+
backgroundColor: string;
|
|
912
|
+
lineHeight: number;
|
|
913
|
+
fontSize: number;
|
|
914
|
+
};
|
|
915
|
+
lineStyle: {
|
|
916
|
+
color: string;
|
|
917
|
+
width: number;
|
|
918
|
+
};
|
|
919
|
+
handle: {
|
|
920
|
+
color: string;
|
|
921
|
+
margin: number;
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
grid: {
|
|
925
|
+
top: number;
|
|
926
|
+
left: number;
|
|
927
|
+
right: number;
|
|
928
|
+
bottom: number;
|
|
929
|
+
containLabel: boolean;
|
|
930
|
+
};
|
|
931
|
+
valueAxis: {
|
|
932
|
+
nameTextStyle: {
|
|
933
|
+
fontFamily: string | undefined;
|
|
934
|
+
color: string;
|
|
935
|
+
};
|
|
936
|
+
axisLine: {
|
|
937
|
+
show: boolean;
|
|
938
|
+
lineStyle: {
|
|
939
|
+
color: string;
|
|
940
|
+
};
|
|
941
|
+
};
|
|
942
|
+
axisLabel: {
|
|
943
|
+
fontFamily: string | undefined;
|
|
944
|
+
color: string;
|
|
945
|
+
lineHeight: number;
|
|
946
|
+
fontSize: number;
|
|
947
|
+
hideOverlap: boolean;
|
|
948
|
+
};
|
|
949
|
+
axisTick: {
|
|
950
|
+
alignWithLabel: boolean;
|
|
951
|
+
};
|
|
952
|
+
splitLine: {
|
|
953
|
+
lineStyle: {
|
|
954
|
+
color: string;
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
timeAxis: {
|
|
959
|
+
inverse: boolean;
|
|
960
|
+
nameTextStyle: {
|
|
961
|
+
fontFamily: string | undefined;
|
|
962
|
+
color: string;
|
|
963
|
+
};
|
|
964
|
+
axisLine: {
|
|
965
|
+
show: boolean;
|
|
966
|
+
lineStyle: {
|
|
967
|
+
color: string;
|
|
968
|
+
};
|
|
969
|
+
};
|
|
970
|
+
axisLabel: {
|
|
971
|
+
fontFamily: string | undefined;
|
|
972
|
+
color: string;
|
|
973
|
+
lineHeight: number;
|
|
974
|
+
fontSize: number;
|
|
975
|
+
hideOverlap: boolean;
|
|
976
|
+
};
|
|
977
|
+
axisTick: {
|
|
978
|
+
alignWithLabel: boolean;
|
|
979
|
+
};
|
|
980
|
+
splitLine: {
|
|
981
|
+
lineStyle: {
|
|
982
|
+
color: string;
|
|
983
|
+
};
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
categoryAxis: {
|
|
987
|
+
inverse: boolean;
|
|
988
|
+
nameTextStyle: {
|
|
989
|
+
fontFamily: string | undefined;
|
|
990
|
+
color: string;
|
|
991
|
+
};
|
|
992
|
+
axisLine: {
|
|
993
|
+
show: boolean;
|
|
994
|
+
lineStyle: {
|
|
995
|
+
color: string;
|
|
996
|
+
};
|
|
997
|
+
};
|
|
998
|
+
axisLabel: {
|
|
999
|
+
fontFamily: string | undefined;
|
|
1000
|
+
color: string;
|
|
1001
|
+
lineHeight: number;
|
|
1002
|
+
fontSize: number;
|
|
1003
|
+
hideOverlap: boolean;
|
|
1004
|
+
};
|
|
1005
|
+
axisTick: {
|
|
1006
|
+
alignWithLabel: boolean;
|
|
1007
|
+
};
|
|
1008
|
+
splitLine: {
|
|
1009
|
+
lineStyle: {
|
|
1010
|
+
color: string;
|
|
1011
|
+
};
|
|
1012
|
+
};
|
|
1013
|
+
};
|
|
1014
|
+
dataZoom: {
|
|
1015
|
+
textStyle: {
|
|
1016
|
+
fontFamily: string | undefined;
|
|
1017
|
+
color: string;
|
|
1018
|
+
lineHeight: number;
|
|
1019
|
+
fontSize: number;
|
|
1020
|
+
};
|
|
1021
|
+
borderColor: string;
|
|
1022
|
+
fillerColor: string;
|
|
1023
|
+
handleIcon: string;
|
|
1024
|
+
handleStyle: {
|
|
1025
|
+
color: string;
|
|
1026
|
+
borderColor: string;
|
|
1027
|
+
};
|
|
1028
|
+
moveHandleStyle: {
|
|
1029
|
+
color: string;
|
|
1030
|
+
opacity: number;
|
|
1031
|
+
};
|
|
1032
|
+
brushStyle: {
|
|
1033
|
+
color: string;
|
|
1034
|
+
};
|
|
1035
|
+
dataBackground: {
|
|
1036
|
+
areaStyle: {
|
|
1037
|
+
color: string;
|
|
1038
|
+
};
|
|
1039
|
+
lineStyle: {
|
|
1040
|
+
color: string;
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
selectedDataBackground: {
|
|
1044
|
+
areaStyle: {
|
|
1045
|
+
color: string;
|
|
1046
|
+
};
|
|
1047
|
+
lineStyle: {
|
|
1048
|
+
color: string;
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1051
|
+
emphasis: {
|
|
1052
|
+
moveHandleStyle: {
|
|
1053
|
+
color: string;
|
|
1054
|
+
opacity: number;
|
|
1055
|
+
};
|
|
1056
|
+
handleStyle: {
|
|
1057
|
+
color: string;
|
|
1058
|
+
borderColor: string;
|
|
1059
|
+
};
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
1062
|
+
toolbox: {
|
|
1063
|
+
feature: {
|
|
1064
|
+
dataZoom: {
|
|
1065
|
+
brushStyle: {
|
|
1066
|
+
color: string;
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
graph: {
|
|
1072
|
+
color: string[];
|
|
1073
|
+
};
|
|
1074
|
+
bar: {
|
|
1075
|
+
barGap: number;
|
|
1076
|
+
label: {
|
|
1077
|
+
fontFamily: string | undefined;
|
|
1078
|
+
color: string;
|
|
1079
|
+
fontSize: number;
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
1082
|
+
line: {
|
|
1083
|
+
areaStyle: {
|
|
1084
|
+
opacity: number;
|
|
1085
|
+
};
|
|
1086
|
+
symbol: string;
|
|
1087
|
+
};
|
|
1088
|
+
pie: {
|
|
1089
|
+
label: {
|
|
1090
|
+
fontFamily: string | undefined;
|
|
1091
|
+
formatter: string;
|
|
1092
|
+
color: string;
|
|
1093
|
+
lineHeight: number;
|
|
1094
|
+
fontSize: number;
|
|
1095
|
+
};
|
|
1096
|
+
labelLine: {
|
|
1097
|
+
lineStyle: {
|
|
1098
|
+
color: string;
|
|
1099
|
+
};
|
|
1100
|
+
};
|
|
1101
|
+
itemStyle: {
|
|
1102
|
+
borderWidth: number;
|
|
1103
|
+
borderColor: string;
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
candlestick: {
|
|
1107
|
+
itemStyle: {
|
|
1108
|
+
color: string;
|
|
1109
|
+
color0: string;
|
|
1110
|
+
borderColor: string;
|
|
1111
|
+
borderColor0: string;
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1114
|
+
gauge: {
|
|
1115
|
+
detail: {
|
|
1116
|
+
color: string;
|
|
1117
|
+
rich: {
|
|
1118
|
+
value: {
|
|
1119
|
+
color: string;
|
|
1120
|
+
};
|
|
1121
|
+
unit: {
|
|
1122
|
+
color: string;
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
axisLabel: {
|
|
1127
|
+
fontFamily: string | undefined;
|
|
1128
|
+
color: string;
|
|
1129
|
+
};
|
|
1130
|
+
axisTick: {
|
|
1131
|
+
lineStyle: {
|
|
1132
|
+
color: string;
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
splitLine: {
|
|
1136
|
+
lineStyle: {
|
|
1137
|
+
color: string;
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
};
|
|
1141
|
+
sankey: {
|
|
1142
|
+
label: {
|
|
1143
|
+
fontFamily: string | undefined;
|
|
1144
|
+
textBorderColor: string;
|
|
1145
|
+
color: string;
|
|
1146
|
+
};
|
|
1147
|
+
};
|
|
1148
|
+
sunburst: {
|
|
1149
|
+
label: {
|
|
1150
|
+
fontFamily: string | undefined;
|
|
1151
|
+
textBorderColor: string;
|
|
1152
|
+
color: string;
|
|
1153
|
+
};
|
|
1154
|
+
};
|
|
1155
|
+
simpl: {
|
|
1156
|
+
colorPalettes: {
|
|
1157
|
+
default: string[];
|
|
1158
|
+
};
|
|
1159
|
+
dataZoom: {
|
|
1160
|
+
options: {
|
|
1161
|
+
height: number;
|
|
1162
|
+
bottom: number;
|
|
1163
|
+
};
|
|
1164
|
+
grid: {
|
|
1165
|
+
bottom: number;
|
|
1166
|
+
};
|
|
1167
|
+
};
|
|
1168
|
+
timeRangeBar: {
|
|
1169
|
+
height: number;
|
|
1170
|
+
};
|
|
1171
|
+
externalZoomSlider: {
|
|
1172
|
+
grid: {
|
|
1173
|
+
bottom: number;
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
legendLeft: {
|
|
1177
|
+
left: number;
|
|
1178
|
+
width: string;
|
|
1179
|
+
};
|
|
1180
|
+
legendRight: {
|
|
1181
|
+
right: number;
|
|
1182
|
+
width: string;
|
|
1183
|
+
};
|
|
1184
|
+
noTitle: {
|
|
1185
|
+
grid: {
|
|
1186
|
+
top: number;
|
|
1187
|
+
};
|
|
1188
|
+
legend: {
|
|
1189
|
+
top: number;
|
|
1190
|
+
};
|
|
1191
|
+
};
|
|
1192
|
+
subTitle: {
|
|
1193
|
+
grid: {
|
|
1194
|
+
top: number;
|
|
1195
|
+
};
|
|
1196
|
+
legend: {
|
|
1197
|
+
top: number;
|
|
1198
|
+
};
|
|
1199
|
+
};
|
|
1200
|
+
customLegend: {
|
|
1201
|
+
grid: {
|
|
1202
|
+
top: number;
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
progress: {
|
|
1206
|
+
itemWidth: number;
|
|
1207
|
+
itemGap: number;
|
|
1208
|
+
grey: string;
|
|
1209
|
+
};
|
|
1210
|
+
progressBar: {
|
|
1211
|
+
labelColor: string;
|
|
1212
|
+
itemWidth: number;
|
|
1213
|
+
grid: {
|
|
1214
|
+
left: number;
|
|
1215
|
+
right: number;
|
|
1216
|
+
containLabel: boolean;
|
|
1217
|
+
};
|
|
1218
|
+
};
|
|
1219
|
+
gauge: {
|
|
1220
|
+
grey: string;
|
|
1221
|
+
value: string;
|
|
1222
|
+
unit: string;
|
|
1223
|
+
defaultColor: string;
|
|
1224
|
+
};
|
|
1225
|
+
};
|
|
1226
|
+
};
|
|
1227
|
+
};
|
|
1228
|
+
_themes: {
|
|
1229
|
+
[key: string]: any;
|
|
1230
|
+
};
|
|
1231
|
+
registerTheme(theme: any): void;
|
|
1232
|
+
getThemeNames(): string[];
|
|
1233
|
+
getThemeByName(name: string): any;
|
|
1234
|
+
setDefault(theme: any): void;
|
|
1235
|
+
getDefault(): any;
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
declare const themeElement: {
|
|
1239
|
+
name: string;
|
|
1240
|
+
style: () => {
|
|
1241
|
+
textStyle: {
|
|
1242
|
+
fontFamily: string | undefined;
|
|
1243
|
+
};
|
|
1244
|
+
color: string[];
|
|
1245
|
+
gradientColor: string[];
|
|
1246
|
+
backgroundColor: string;
|
|
1247
|
+
animationDuration: number;
|
|
1248
|
+
title: {
|
|
1249
|
+
padding: number[];
|
|
1250
|
+
textStyle: {
|
|
1251
|
+
fontFamily: string | undefined;
|
|
1252
|
+
lineHeight: number;
|
|
1253
|
+
fontSize: number;
|
|
1254
|
+
color: string;
|
|
1255
|
+
};
|
|
1256
|
+
subtextStyle: {
|
|
1257
|
+
fontFamily: string | undefined;
|
|
1258
|
+
lineHeight: number;
|
|
1259
|
+
fontSize: number;
|
|
1260
|
+
color: string;
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1263
|
+
legend: {
|
|
1264
|
+
backgroundColor: string;
|
|
1265
|
+
inactiveColor: string;
|
|
1266
|
+
left: string;
|
|
1267
|
+
right: number;
|
|
1268
|
+
top: number;
|
|
1269
|
+
textStyle: {
|
|
1270
|
+
fontFamily: string | undefined;
|
|
1271
|
+
color: string;
|
|
1272
|
+
lineHeight: number;
|
|
1273
|
+
fontSize: number;
|
|
1274
|
+
};
|
|
1275
|
+
icon: string;
|
|
1276
|
+
pageTextStyle: {
|
|
1277
|
+
color: string;
|
|
1278
|
+
};
|
|
1279
|
+
itemStyle: {
|
|
1280
|
+
borderWidth: number;
|
|
1281
|
+
itemGap: number;
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
tooltip: {
|
|
1285
|
+
borderWidth: number;
|
|
1286
|
+
backgroundColor: string;
|
|
1287
|
+
textStyle: {
|
|
1288
|
+
fontFamily: string | undefined;
|
|
1289
|
+
color: string;
|
|
1290
|
+
fontWeight: number;
|
|
1291
|
+
};
|
|
1292
|
+
padding: number[];
|
|
1293
|
+
axisPointer: {
|
|
1294
|
+
crossStyle: {
|
|
1295
|
+
color: string;
|
|
1296
|
+
width: number;
|
|
1297
|
+
};
|
|
1298
|
+
};
|
|
1299
|
+
formatter: (p: object | object[]) => string;
|
|
1300
|
+
};
|
|
1301
|
+
axisPointer: {
|
|
1302
|
+
label: {
|
|
1303
|
+
fontFamily: string | undefined;
|
|
1304
|
+
color: string;
|
|
1305
|
+
backgroundColor: string;
|
|
1306
|
+
lineHeight: number;
|
|
1307
|
+
fontSize: number;
|
|
1308
|
+
};
|
|
1309
|
+
lineStyle: {
|
|
1310
|
+
color: string;
|
|
1311
|
+
width: number;
|
|
1312
|
+
};
|
|
1313
|
+
handle: {
|
|
1314
|
+
color: string;
|
|
1315
|
+
margin: number;
|
|
1316
|
+
};
|
|
1317
|
+
};
|
|
1318
|
+
grid: {
|
|
1319
|
+
top: number;
|
|
1320
|
+
left: number;
|
|
1321
|
+
right: number;
|
|
1322
|
+
bottom: number;
|
|
1323
|
+
containLabel: boolean;
|
|
1324
|
+
};
|
|
1325
|
+
valueAxis: {
|
|
1326
|
+
nameTextStyle: {
|
|
1327
|
+
fontFamily: string | undefined;
|
|
1328
|
+
color: string;
|
|
1329
|
+
};
|
|
1330
|
+
axisLine: {
|
|
1331
|
+
show: boolean;
|
|
1332
|
+
lineStyle: {
|
|
1333
|
+
color: string;
|
|
1334
|
+
};
|
|
1335
|
+
};
|
|
1336
|
+
axisLabel: {
|
|
1337
|
+
fontFamily: string | undefined;
|
|
1338
|
+
color: string;
|
|
1339
|
+
lineHeight: number;
|
|
1340
|
+
fontSize: number;
|
|
1341
|
+
hideOverlap: boolean;
|
|
1342
|
+
};
|
|
1343
|
+
axisTick: {
|
|
1344
|
+
alignWithLabel: boolean;
|
|
1345
|
+
};
|
|
1346
|
+
splitLine: {
|
|
1347
|
+
lineStyle: {
|
|
1348
|
+
color: string;
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
};
|
|
1352
|
+
timeAxis: {
|
|
1353
|
+
inverse: boolean;
|
|
1354
|
+
nameTextStyle: {
|
|
1355
|
+
fontFamily: string | undefined;
|
|
1356
|
+
color: string;
|
|
1357
|
+
};
|
|
1358
|
+
axisLine: {
|
|
1359
|
+
show: boolean;
|
|
1360
|
+
lineStyle: {
|
|
1361
|
+
color: string;
|
|
1362
|
+
};
|
|
1363
|
+
};
|
|
1364
|
+
axisLabel: {
|
|
1365
|
+
fontFamily: string | undefined;
|
|
1366
|
+
color: string;
|
|
1367
|
+
lineHeight: number;
|
|
1368
|
+
fontSize: number;
|
|
1369
|
+
hideOverlap: boolean;
|
|
1370
|
+
};
|
|
1371
|
+
axisTick: {
|
|
1372
|
+
alignWithLabel: boolean;
|
|
1373
|
+
};
|
|
1374
|
+
splitLine: {
|
|
1375
|
+
lineStyle: {
|
|
1376
|
+
color: string;
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1379
|
+
};
|
|
1380
|
+
categoryAxis: {
|
|
1381
|
+
inverse: boolean;
|
|
1382
|
+
nameTextStyle: {
|
|
1383
|
+
fontFamily: string | undefined;
|
|
1384
|
+
color: string;
|
|
1385
|
+
};
|
|
1386
|
+
axisLine: {
|
|
1387
|
+
show: boolean;
|
|
1388
|
+
lineStyle: {
|
|
1389
|
+
color: string;
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
axisLabel: {
|
|
1393
|
+
fontFamily: string | undefined;
|
|
1394
|
+
color: string;
|
|
1395
|
+
lineHeight: number;
|
|
1396
|
+
fontSize: number;
|
|
1397
|
+
hideOverlap: boolean;
|
|
1398
|
+
};
|
|
1399
|
+
axisTick: {
|
|
1400
|
+
alignWithLabel: boolean;
|
|
1401
|
+
};
|
|
1402
|
+
splitLine: {
|
|
1403
|
+
lineStyle: {
|
|
1404
|
+
color: string;
|
|
1405
|
+
};
|
|
1406
|
+
};
|
|
1407
|
+
};
|
|
1408
|
+
dataZoom: {
|
|
1409
|
+
textStyle: {
|
|
1410
|
+
fontFamily: string | undefined;
|
|
1411
|
+
color: string;
|
|
1412
|
+
lineHeight: number;
|
|
1413
|
+
fontSize: number;
|
|
1414
|
+
};
|
|
1415
|
+
borderColor: string;
|
|
1416
|
+
fillerColor: string;
|
|
1417
|
+
handleIcon: string;
|
|
1418
|
+
handleStyle: {
|
|
1419
|
+
color: string;
|
|
1420
|
+
borderColor: string;
|
|
1421
|
+
};
|
|
1422
|
+
moveHandleStyle: {
|
|
1423
|
+
color: string;
|
|
1424
|
+
opacity: number;
|
|
1425
|
+
};
|
|
1426
|
+
brushStyle: {
|
|
1427
|
+
color: string;
|
|
1428
|
+
};
|
|
1429
|
+
dataBackground: {
|
|
1430
|
+
areaStyle: {
|
|
1431
|
+
color: string;
|
|
1432
|
+
};
|
|
1433
|
+
lineStyle: {
|
|
1434
|
+
color: string;
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
selectedDataBackground: {
|
|
1438
|
+
areaStyle: {
|
|
1439
|
+
color: string;
|
|
1440
|
+
};
|
|
1441
|
+
lineStyle: {
|
|
1442
|
+
color: string;
|
|
1443
|
+
};
|
|
1444
|
+
};
|
|
1445
|
+
emphasis: {
|
|
1446
|
+
moveHandleStyle: {
|
|
1447
|
+
color: string;
|
|
1448
|
+
opacity: number;
|
|
1449
|
+
};
|
|
1450
|
+
handleStyle: {
|
|
1451
|
+
color: string;
|
|
1452
|
+
borderColor: string;
|
|
1453
|
+
};
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1456
|
+
toolbox: {
|
|
1457
|
+
feature: {
|
|
1458
|
+
dataZoom: {
|
|
1459
|
+
brushStyle: {
|
|
1460
|
+
color: string;
|
|
1461
|
+
};
|
|
1462
|
+
};
|
|
1463
|
+
};
|
|
1464
|
+
};
|
|
1465
|
+
graph: {
|
|
1466
|
+
color: string[];
|
|
1467
|
+
};
|
|
1468
|
+
bar: {
|
|
1469
|
+
barGap: number;
|
|
1470
|
+
label: {
|
|
1471
|
+
fontFamily: string | undefined;
|
|
1472
|
+
color: string;
|
|
1473
|
+
fontSize: number;
|
|
1474
|
+
};
|
|
1475
|
+
};
|
|
1476
|
+
line: {
|
|
1477
|
+
areaStyle: {
|
|
1478
|
+
opacity: number;
|
|
1479
|
+
};
|
|
1480
|
+
symbol: string;
|
|
1481
|
+
};
|
|
1482
|
+
pie: {
|
|
1483
|
+
label: {
|
|
1484
|
+
fontFamily: string | undefined;
|
|
1485
|
+
formatter: string;
|
|
1486
|
+
color: string;
|
|
1487
|
+
lineHeight: number;
|
|
1488
|
+
fontSize: number;
|
|
1489
|
+
};
|
|
1490
|
+
labelLine: {
|
|
1491
|
+
lineStyle: {
|
|
1492
|
+
color: string;
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
itemStyle: {
|
|
1496
|
+
borderWidth: number;
|
|
1497
|
+
borderColor: string;
|
|
1498
|
+
};
|
|
1499
|
+
};
|
|
1500
|
+
candlestick: {
|
|
1501
|
+
itemStyle: {
|
|
1502
|
+
color: string;
|
|
1503
|
+
color0: string;
|
|
1504
|
+
borderColor: string;
|
|
1505
|
+
borderColor0: string;
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
gauge: {
|
|
1509
|
+
detail: {
|
|
1510
|
+
color: string;
|
|
1511
|
+
rich: {
|
|
1512
|
+
value: {
|
|
1513
|
+
color: string;
|
|
1514
|
+
};
|
|
1515
|
+
unit: {
|
|
1516
|
+
color: string;
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
axisLabel: {
|
|
1521
|
+
fontFamily: string | undefined;
|
|
1522
|
+
color: string;
|
|
1523
|
+
};
|
|
1524
|
+
axisTick: {
|
|
1525
|
+
lineStyle: {
|
|
1526
|
+
color: string;
|
|
1527
|
+
};
|
|
1528
|
+
};
|
|
1529
|
+
splitLine: {
|
|
1530
|
+
lineStyle: {
|
|
1531
|
+
color: string;
|
|
1532
|
+
};
|
|
1533
|
+
};
|
|
1534
|
+
};
|
|
1535
|
+
sankey: {
|
|
1536
|
+
label: {
|
|
1537
|
+
fontFamily: string | undefined;
|
|
1538
|
+
textBorderColor: string;
|
|
1539
|
+
color: string;
|
|
1540
|
+
};
|
|
1541
|
+
};
|
|
1542
|
+
sunburst: {
|
|
1543
|
+
label: {
|
|
1544
|
+
fontFamily: string | undefined;
|
|
1545
|
+
textBorderColor: string;
|
|
1546
|
+
color: string;
|
|
1547
|
+
};
|
|
1548
|
+
};
|
|
1549
|
+
simpl: {
|
|
1550
|
+
colorPalettes: {
|
|
1551
|
+
default: string[];
|
|
1552
|
+
};
|
|
1553
|
+
dataZoom: {
|
|
1554
|
+
options: {
|
|
1555
|
+
height: number;
|
|
1556
|
+
bottom: number;
|
|
1557
|
+
};
|
|
1558
|
+
grid: {
|
|
1559
|
+
bottom: number;
|
|
1560
|
+
};
|
|
1561
|
+
};
|
|
1562
|
+
timeRangeBar: {
|
|
1563
|
+
height: number;
|
|
1564
|
+
};
|
|
1565
|
+
externalZoomSlider: {
|
|
1566
|
+
grid: {
|
|
1567
|
+
bottom: number;
|
|
1568
|
+
};
|
|
1569
|
+
};
|
|
1570
|
+
legendLeft: {
|
|
1571
|
+
left: number;
|
|
1572
|
+
width: string;
|
|
1573
|
+
};
|
|
1574
|
+
legendRight: {
|
|
1575
|
+
right: number;
|
|
1576
|
+
width: string;
|
|
1577
|
+
};
|
|
1578
|
+
noTitle: {
|
|
1579
|
+
grid: {
|
|
1580
|
+
top: number;
|
|
1581
|
+
};
|
|
1582
|
+
legend: {
|
|
1583
|
+
top: number;
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1586
|
+
subTitle: {
|
|
1587
|
+
grid: {
|
|
1588
|
+
top: number;
|
|
1589
|
+
};
|
|
1590
|
+
legend: {
|
|
1591
|
+
top: number;
|
|
1592
|
+
};
|
|
1593
|
+
};
|
|
1594
|
+
customLegend: {
|
|
1595
|
+
grid: {
|
|
1596
|
+
top: number;
|
|
1597
|
+
};
|
|
1598
|
+
};
|
|
1599
|
+
progress: {
|
|
1600
|
+
itemWidth: number;
|
|
1601
|
+
itemGap: number;
|
|
1602
|
+
grey: string;
|
|
1603
|
+
};
|
|
1604
|
+
progressBar: {
|
|
1605
|
+
labelColor: string;
|
|
1606
|
+
itemWidth: number;
|
|
1607
|
+
grid: {
|
|
1608
|
+
left: number;
|
|
1609
|
+
right: number;
|
|
1610
|
+
containLabel: boolean;
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1613
|
+
gauge: {
|
|
1614
|
+
grey: string;
|
|
1615
|
+
value: string;
|
|
1616
|
+
unit: string;
|
|
1617
|
+
defaultColor: string;
|
|
1618
|
+
};
|
|
1619
|
+
};
|
|
1620
|
+
};
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
declare class SiChartLoadingSpinnerComponent {
|
|
1624
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartLoadingSpinnerComponent, never>;
|
|
1625
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SiChartLoadingSpinnerComponent, "si-chart-loading-spinner", never, {}, {}, never, never, true, never>;
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
declare class SiChartsNgModule {
|
|
1629
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartsNgModule, never>;
|
|
1630
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<SiChartsNgModule, never, [typeof i1.CommonModule, typeof SiChartCartesianComponent, typeof SiChartCircleComponent, typeof SiChartComponent, typeof SiChartGaugeComponent, typeof SiChartLoadingSpinnerComponent, typeof SiChartProgressBarComponent, typeof SiChartProgressComponent, typeof SiChartSankeyComponent, typeof SiChartSunburstComponent, typeof SiCustomLegendComponent], [typeof SiChartCartesianComponent, typeof SiChartCircleComponent, typeof SiChartComponent, typeof SiChartGaugeComponent, typeof SiChartProgressBarComponent, typeof SiChartProgressComponent, typeof SiChartSankeyComponent, typeof SiChartSunburstComponent, typeof SiCustomLegendComponent]>;
|
|
1631
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<SiChartsNgModule>;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
export { SiChartCartesianComponent, SiChartCircleComponent, SiChartComponent, SiChartGaugeComponent, SiChartProgressBarComponent, SiChartProgressComponent, SiChartSankeyComponent, SiChartSunburstComponent, SiChartsNgModule, SiCustomLegendComponent, SiChartsNgModule as SimplChartsNgModule, themeElement, themeSupport };
|
|
1635
|
+
export type { AxisData, AxisPointerEvent, AxisType, BarSeriesData, CandlestickSeriesData, CartesianChartData, CartesianChartSeries, CartesianDataNullable, ChartXAxis, ChartYAxis, CircleChartData, CircleChartSeries, CircleValueUpdate, CustomLegend, CustomLegendItem, CustomLegendMultiLineInfo, CustomLegendProps, DataZoomEvent, DataZoomRange, EChartOption, EChartSeries, EChartSeriesOption, FilterMode, GaugeChartSeries, GridRectCoordinate, HeatmapSeriesData, LegendItem, LineColor, LineSeriesData, LineStepType, LineType, MarkAreaData, MarkLineData, MarkPointData, ProgressBarChartSeries, ProgressBarValueUpdate, ProgressChartSeries, ProgressValueUpdate, ScatterSeriesData, SelectedLegendItem, SeriesSelectionState, SeriesUpdate, SiBarSeriesOption, SiCandlestickSeriesOption, SiHeatmapSeriesOption, SiLineSeriesOption, SiScatterSeriesOption, SiSeriesOption, SiBarSeriesOption as SimplBarSeriesOption, SiCandlestickSeriesOption as SimplCandlestickSeriesOption, SiHeatmapSeriesOption as SimplHeatmapSeriesOption, SiLineSeriesOption as SimplLineSeriesOption, SiScatterSeriesOption as SimplScatterSeriesOption, SiSeriesOption as SimplSeriesOption, SubchartGrid, XAxisPosition, YAxisPosition };
|