@spike-rabbit/charts-ng 49.0.0 → 49.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/README.md +17 -3
- package/cartesian/package.json +4 -0
- package/chart/package.json +4 -0
- package/circle/package.json +4 -0
- package/common/package.json +4 -0
- package/custom-legend/package.json +4 -0
- package/fesm2022/spike-rabbit-charts-ng-cartesian.mjs +383 -0
- package/fesm2022/spike-rabbit-charts-ng-cartesian.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-chart.mjs +59 -0
- package/fesm2022/spike-rabbit-charts-ng-chart.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-circle.mjs +91 -0
- package/fesm2022/spike-rabbit-charts-ng-circle.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-common.mjs +2383 -0
- package/fesm2022/spike-rabbit-charts-ng-common.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-custom-legend.mjs +62 -0
- package/fesm2022/spike-rabbit-charts-ng-custom-legend.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-gauge.mjs +371 -0
- package/fesm2022/spike-rabbit-charts-ng-gauge.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-loading-spinner.mjs +27 -0
- package/fesm2022/spike-rabbit-charts-ng-loading-spinner.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-progress-bar.mjs +170 -0
- package/fesm2022/spike-rabbit-charts-ng-progress-bar.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-progress.mjs +220 -0
- package/fesm2022/spike-rabbit-charts-ng-progress.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-sankey.mjs +52 -0
- package/fesm2022/spike-rabbit-charts-ng-sankey.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng-sunburst.mjs +52 -0
- package/fesm2022/spike-rabbit-charts-ng-sunburst.mjs.map +1 -0
- package/fesm2022/spike-rabbit-charts-ng.mjs +40 -3527
- package/fesm2022/spike-rabbit-charts-ng.mjs.map +1 -1
- package/gauge/package.json +4 -0
- package/loading-spinner/package.json +4 -0
- package/package.json +58 -12
- package/progress/package.json +4 -0
- package/progress-bar/package.json +4 -0
- package/projects/charts-ng/README.md +17 -3
- package/sankey/package.json +4 -0
- package/sunburst/package.json +4 -0
- package/types/spike-rabbit-charts-ng-cartesian.d.ts +91 -0
- package/types/spike-rabbit-charts-ng-chart.d.ts +9 -0
- package/types/spike-rabbit-charts-ng-circle.d.ts +74 -0
- package/{index.d.ts → types/spike-rabbit-charts-ng-common.d.ts} +102 -431
- package/types/spike-rabbit-charts-ng-custom-legend.d.ts +68 -0
- package/types/spike-rabbit-charts-ng-gauge.d.ts +96 -0
- package/types/spike-rabbit-charts-ng-loading-spinner.d.ts +8 -0
- package/types/spike-rabbit-charts-ng-progress-bar.d.ts +46 -0
- package/types/spike-rabbit-charts-ng-progress.d.ts +57 -0
- package/types/spike-rabbit-charts-ng-sankey.d.ts +19 -0
- package/types/spike-rabbit-charts-ng-sunburst.d.ts +19 -0
- package/types/spike-rabbit-charts-ng.d.ts +35 -0
package/package.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spike-rabbit/charts-ng",
|
|
3
3
|
"description": "Element Charts library.",
|
|
4
|
-
"version": "49.
|
|
4
|
+
"version": "49.13.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+
|
|
8
|
+
"url": "git+https://github.com/spike-rabbit/element.git"
|
|
9
9
|
},
|
|
10
10
|
"author": {
|
|
11
11
|
"name": "Siemens AG",
|
|
12
12
|
"email": "info@siemens.com"
|
|
13
13
|
},
|
|
14
|
-
"homepage": "https://github.com/
|
|
15
|
-
"bugs": "https://github.com/
|
|
14
|
+
"homepage": "https://github.com/spike-rabbit/element",
|
|
15
|
+
"bugs": "https://github.com/spike-rabbit/element/issues/new",
|
|
16
16
|
"publishConfig": {
|
|
17
|
-
"access": "public"
|
|
17
|
+
"access": "public",
|
|
18
|
+
"directory": "../../dist/@spike-rabbit/charts-ng"
|
|
18
19
|
},
|
|
19
20
|
"type": "module",
|
|
20
21
|
"peerDependencies": {
|
|
21
|
-
"@angular/common": "
|
|
22
|
-
"@angular/core": "
|
|
23
|
-
"echarts": "^
|
|
22
|
+
"@angular/common": "22",
|
|
23
|
+
"@angular/core": "22",
|
|
24
|
+
"echarts": "^6.0.0"
|
|
24
25
|
},
|
|
25
26
|
"exports": {
|
|
26
27
|
"./docs.json": {
|
|
@@ -30,14 +31,59 @@
|
|
|
30
31
|
"default": "./package.json"
|
|
31
32
|
},
|
|
32
33
|
".": {
|
|
33
|
-
"types": "./
|
|
34
|
+
"types": "./types/spike-rabbit-charts-ng.d.ts",
|
|
34
35
|
"default": "./fesm2022/spike-rabbit-charts-ng.mjs"
|
|
36
|
+
},
|
|
37
|
+
"./cartesian": {
|
|
38
|
+
"types": "./types/spike-rabbit-charts-ng-cartesian.d.ts",
|
|
39
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-cartesian.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./chart": {
|
|
42
|
+
"types": "./types/spike-rabbit-charts-ng-chart.d.ts",
|
|
43
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-chart.mjs"
|
|
44
|
+
},
|
|
45
|
+
"./circle": {
|
|
46
|
+
"types": "./types/spike-rabbit-charts-ng-circle.d.ts",
|
|
47
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-circle.mjs"
|
|
48
|
+
},
|
|
49
|
+
"./common": {
|
|
50
|
+
"types": "./types/spike-rabbit-charts-ng-common.d.ts",
|
|
51
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-common.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./custom-legend": {
|
|
54
|
+
"types": "./types/spike-rabbit-charts-ng-custom-legend.d.ts",
|
|
55
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-custom-legend.mjs"
|
|
56
|
+
},
|
|
57
|
+
"./gauge": {
|
|
58
|
+
"types": "./types/spike-rabbit-charts-ng-gauge.d.ts",
|
|
59
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-gauge.mjs"
|
|
60
|
+
},
|
|
61
|
+
"./loading-spinner": {
|
|
62
|
+
"types": "./types/spike-rabbit-charts-ng-loading-spinner.d.ts",
|
|
63
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-loading-spinner.mjs"
|
|
64
|
+
},
|
|
65
|
+
"./progress": {
|
|
66
|
+
"types": "./types/spike-rabbit-charts-ng-progress.d.ts",
|
|
67
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-progress.mjs"
|
|
68
|
+
},
|
|
69
|
+
"./progress-bar": {
|
|
70
|
+
"types": "./types/spike-rabbit-charts-ng-progress-bar.d.ts",
|
|
71
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-progress-bar.mjs"
|
|
72
|
+
},
|
|
73
|
+
"./sankey": {
|
|
74
|
+
"types": "./types/spike-rabbit-charts-ng-sankey.d.ts",
|
|
75
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-sankey.mjs"
|
|
76
|
+
},
|
|
77
|
+
"./sunburst": {
|
|
78
|
+
"types": "./types/spike-rabbit-charts-ng-sunburst.d.ts",
|
|
79
|
+
"default": "./fesm2022/spike-rabbit-charts-ng-sunburst.mjs"
|
|
35
80
|
}
|
|
36
81
|
},
|
|
37
82
|
"module": "fesm2022/spike-rabbit-charts-ng.mjs",
|
|
38
|
-
"typings": "
|
|
83
|
+
"typings": "types/spike-rabbit-charts-ng.d.ts",
|
|
39
84
|
"sideEffects": false,
|
|
40
85
|
"dependencies": {
|
|
41
86
|
"tslib": "^2.3.0"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
87
|
+
},
|
|
88
|
+
"readme": "# Element Charts\n\nThe Element chart library for Angular based on ECharts. Going through the roof. Stoinks.\n\n## Usage\n\nTo use the Element Charts Angular components in your project, add them to your dependencies\nby executing:\n\n```sh\nnpm install --save @spike-rabbit/charts-ng\n```\n\nYou also have to install the peer dependencies of Element Charts.\n\n```sh\nnpm install echarts --save\n```\n\nImport the library to your Angular `AppModule`, mostly residing in your\n`src/app/app.modules.ts` file as follows:\n\n```ts\n// [...]\n\n// Import this library\nimport { SiChartsNgModule } from '@spike-rabbit/charts-ng';\n\n@NgModule({\n declarations: [AppComponent],\n imports: [BrowserModule, SiChartsNgModule],\n providers: [],\n bootstrap: [AppComponent]\n})\nexport class AppModule {}\n```\n\nStarting with v49, Element Charts uses separate entry points for each component.\nImport components directly from their specific entry points:\n\n```ts\nimport { SiChartCartesianComponent } from '@spike-rabbit/charts-ng/cartesian';\nimport { SiChartCircleComponent } from '@spike-rabbit/charts-ng/circle';\nimport { SiChartGaugeComponent } from '@spike-rabbit/charts-ng/gauge';\n// ... and other components\n\n@Component({\n imports: [SiChartCartesianComponent, ...]\n})\nexport class AppComponent {}\n```\n\n### Running unit tests\n\nRun `pnpm run charts:test` to perform the unit tests via [Vitest](https://main.vitest.dev/).\n\n## License\n\nThe following applies for code and documentation of the git repository,\nunless explicitly mentioned.\n\nCopyright (c) Siemens 2016 - 2026\n\nMIT, see [LICENSE.md](LICENSE.md).\n"
|
|
89
|
+
}
|
|
@@ -35,16 +35,30 @@ import { SiChartsNgModule } from '@spike-rabbit/charts-ng';
|
|
|
35
35
|
export class AppModule {}
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
Starting with v49, Element Charts uses separate entry points for each component.
|
|
39
|
+
Import components directly from their specific entry points:
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import { SiChartCartesianComponent } from '@spike-rabbit/charts-ng/cartesian';
|
|
43
|
+
import { SiChartCircleComponent } from '@spike-rabbit/charts-ng/circle';
|
|
44
|
+
import { SiChartGaugeComponent } from '@spike-rabbit/charts-ng/gauge';
|
|
45
|
+
// ... and other components
|
|
46
|
+
|
|
47
|
+
@Component({
|
|
48
|
+
imports: [SiChartCartesianComponent, ...]
|
|
49
|
+
})
|
|
50
|
+
export class AppComponent {}
|
|
51
|
+
```
|
|
52
|
+
|
|
38
53
|
### Running unit tests
|
|
39
54
|
|
|
40
|
-
Run `
|
|
41
|
-
You can set a seed for running the tests in a specific using an environment variable: `SEED=71384 yarn lib:test`
|
|
55
|
+
Run `pnpm run charts:test` to perform the unit tests via [Vitest](https://main.vitest.dev/).
|
|
42
56
|
|
|
43
57
|
## License
|
|
44
58
|
|
|
45
59
|
The following applies for code and documentation of the git repository,
|
|
46
60
|
unless explicitly mentioned.
|
|
47
61
|
|
|
48
|
-
Copyright (c) Siemens 2016 -
|
|
62
|
+
Copyright (c) Siemens 2016 - 2026
|
|
49
63
|
|
|
50
64
|
MIT, see [LICENSE.md](LICENSE.md).
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as echarts from 'echarts';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
4
|
+
import { BarSeriesOption, CandlestickSeriesOption, LineSeriesOption, HeatmapSeriesOption, ScatterSeriesOption, SiSeriesOption, MarkAreaComponentOption, MarkLineComponentOption, MarkPointComponentOption, SiChartBaseComponent, ChartYAxis, ChartXAxis, DataZoomRange, SeriesUpdate } from '@spike-rabbit/charts-ng/common';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
8
|
+
* SPDX-License-Identifier: MIT
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
type LineStepType = 'start' | 'middle' | 'end';
|
|
12
|
+
type LineType = 'solid' | 'dashed' | 'dotted';
|
|
13
|
+
interface SubchartGrid {
|
|
14
|
+
categoryId?: string;
|
|
15
|
+
top?: number | string;
|
|
16
|
+
bottom?: number | string;
|
|
17
|
+
left?: number | string;
|
|
18
|
+
right?: number | string;
|
|
19
|
+
height?: number | string;
|
|
20
|
+
containLabel?: boolean;
|
|
21
|
+
}
|
|
22
|
+
interface SiLineSeriesOption extends LineSeriesOption, SiSeriesOption {
|
|
23
|
+
area?: boolean;
|
|
24
|
+
}
|
|
25
|
+
type SiBarSeriesOption = BarSeriesOption & SiSeriesOption;
|
|
26
|
+
type SiHeatmapSeriesOption = HeatmapSeriesOption & SiSeriesOption;
|
|
27
|
+
type SiScatterSeriesOption = ScatterSeriesOption & SiSeriesOption;
|
|
28
|
+
type SiCandlestickSeriesOption = CandlestickSeriesOption & SiSeriesOption;
|
|
29
|
+
type LineSeriesData = NonNullable<LineSeriesOption['data']>;
|
|
30
|
+
type BarSeriesData = NonNullable<BarSeriesOption['data']>;
|
|
31
|
+
type HeatmapSeriesData = NonNullable<HeatmapSeriesOption['data']>;
|
|
32
|
+
type ScatterSeriesData = NonNullable<Exclude<ScatterSeriesOption['data'], ArrayLike<number>>>;
|
|
33
|
+
type CandlestickSeriesData = NonNullable<CandlestickSeriesOption['data']>;
|
|
34
|
+
type CartesianDataNullable = LineSeriesData | BarSeriesData | HeatmapSeriesData | ScatterSeriesData | CandlestickSeriesData | never;
|
|
35
|
+
type CartesianChartData = NonNullable<CartesianDataNullable>;
|
|
36
|
+
type CartesianChartSeries = SiBarSeriesOption | SiLineSeriesOption | SiHeatmapSeriesOption | SiScatterSeriesOption | SiCandlestickSeriesOption | never;
|
|
37
|
+
type MarkAreaData = NonNullable<MarkAreaComponentOption['data']>;
|
|
38
|
+
type MarkPointData = NonNullable<MarkPointComponentOption['data']>;
|
|
39
|
+
type MarkLineData = NonNullable<MarkLineComponentOption['data']>;
|
|
40
|
+
|
|
41
|
+
declare class SiChartCartesianComponent extends SiChartBaseComponent implements OnChanges {
|
|
42
|
+
/** The series for the chart. */
|
|
43
|
+
readonly series: _angular_core.InputSignal<CartesianChartSeries[] | undefined>;
|
|
44
|
+
readonly subChartGrids: _angular_core.InputSignal<SubchartGrid[] | undefined>;
|
|
45
|
+
/** The y axis in cartesian(rectangular) coordinate. */
|
|
46
|
+
readonly yAxis: _angular_core.InputSignal<ChartYAxis | ChartYAxis[] | undefined>;
|
|
47
|
+
/** The x axis in cartesian(rectangular) coordinate. */
|
|
48
|
+
readonly xAxis: _angular_core.InputSignal<ChartXAxis | ChartXAxis[] | undefined>;
|
|
49
|
+
/** The content formatter of tooltip's floating layer which supports string template and callback function (see (see {@link https://echarts.apache.org/en/option.html#tooltip.formatter }). */
|
|
50
|
+
readonly tooltipFormatter: _angular_core.InputSignal<string | echarts.TooltipComponentFormatterCallback<echarts.TooltipComponentFormatterCallbackParams> | undefined>;
|
|
51
|
+
/**
|
|
52
|
+
* Used to display the chart as a stacked one.
|
|
53
|
+
*
|
|
54
|
+
* @defaultValue false
|
|
55
|
+
*/
|
|
56
|
+
readonly stacked: _angular_core.InputSignal<boolean>;
|
|
57
|
+
/** Enable or disable brush zoom mode */
|
|
58
|
+
readonly zoomMode: _angular_core.InputSignal<boolean | undefined>;
|
|
59
|
+
ngOnChanges(changes: SimpleChanges<unknown>): void;
|
|
60
|
+
private formatTooltip;
|
|
61
|
+
/**
|
|
62
|
+
* Get the series marker svg by series name.
|
|
63
|
+
*/
|
|
64
|
+
getSeriesMarkerSvg(seriesName: string): string;
|
|
65
|
+
/**
|
|
66
|
+
* Get the series marker by series name.
|
|
67
|
+
*/
|
|
68
|
+
getSeriesMarker(seriesName: string): string;
|
|
69
|
+
protected afterChartInit(skipZoom?: boolean): void;
|
|
70
|
+
protected setZoomMode(): void;
|
|
71
|
+
protected getValidXAxis(): Set<number>;
|
|
72
|
+
protected applyOptions(): void;
|
|
73
|
+
private hasDifferentMarker;
|
|
74
|
+
private getGrid;
|
|
75
|
+
refreshSeries(isLive?: boolean, dzToSet?: DataZoomRange): void;
|
|
76
|
+
protected hasData(): boolean;
|
|
77
|
+
protected handleSelectionChanged(event: any): void;
|
|
78
|
+
/**
|
|
79
|
+
* Update single chart data entry.
|
|
80
|
+
*/
|
|
81
|
+
addData(index: number, data: CartesianChartData): void;
|
|
82
|
+
/**
|
|
83
|
+
* Append charts data entries to the end of the series.
|
|
84
|
+
*/
|
|
85
|
+
addDataMulti(series: SeriesUpdate<CartesianChartData>[]): void;
|
|
86
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SiChartCartesianComponent, never>;
|
|
87
|
+
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>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export { SiChartCartesianComponent };
|
|
91
|
+
export type { BarSeriesData, CandlestickSeriesData, CartesianChartData, CartesianChartSeries, CartesianDataNullable, HeatmapSeriesData, LineSeriesData, LineStepType, LineType, MarkAreaData, MarkLineData, MarkPointData, ScatterSeriesData, SiBarSeriesOption, SiCandlestickSeriesOption, SiHeatmapSeriesOption, SiLineSeriesOption, SiScatterSeriesOption, SiBarSeriesOption as SimplBarSeriesOption, SiCandlestickSeriesOption as SimplCandlestickSeriesOption, SiHeatmapSeriesOption as SimplHeatmapSeriesOption, SiLineSeriesOption as SimplLineSeriesOption, SiScatterSeriesOption as SimplScatterSeriesOption, SubchartGrid };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SiChartBaseComponent } from '@spike-rabbit/charts-ng/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class SiChartComponent extends SiChartBaseComponent {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiChartComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiChartComponent, "si-chart", never, {}, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { SiChartComponent };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { SiChartBaseComponent } from '@spike-rabbit/charts-ng/common';
|
|
3
|
+
import { PieSeriesOption } from 'echarts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Copyright (c) Siemens 2016 - 2026
|
|
7
|
+
* SPDX-License-Identifier: MIT
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
interface CircleChartData {
|
|
11
|
+
value: number;
|
|
12
|
+
name?: string;
|
|
13
|
+
label?: {
|
|
14
|
+
color?: string;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
itemStyle?: {
|
|
18
|
+
color?: string;
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
interface CircleChartSeries {
|
|
23
|
+
name: string;
|
|
24
|
+
radius?: string[];
|
|
25
|
+
data: CircleChartData[];
|
|
26
|
+
/**
|
|
27
|
+
* The start angle from which the circle should start, the range is [0, 360].
|
|
28
|
+
* @defaultValue 90
|
|
29
|
+
*/
|
|
30
|
+
startAngle?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The end angle where the circle should end.
|
|
33
|
+
*
|
|
34
|
+
* @defaultValue 'auto' - In this case the end Angle is calculated
|
|
35
|
+
* automatically based on startAngle to ensure it is a complete circle.
|
|
36
|
+
*/
|
|
37
|
+
endAngle?: number;
|
|
38
|
+
label?: {
|
|
39
|
+
/**
|
|
40
|
+
* A custom label formatter based on echarts, some commonly used variations can be
|
|
41
|
+
* \{a\}: series name.
|
|
42
|
+
* \{b\}: the name of a data item.
|
|
43
|
+
* \{c\}: the value of a data item.
|
|
44
|
+
* \{d\}: the percent.
|
|
45
|
+
* See {@link https://echarts.apache.org/en/option.html#series-pie.label.formatter}
|
|
46
|
+
*/
|
|
47
|
+
formatter?: NonNullable<PieSeriesOption['label']>['formatter'];
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
interface CircleValueUpdate {
|
|
51
|
+
seriesIndex: number;
|
|
52
|
+
valueIndex: number;
|
|
53
|
+
value: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare class SiChartCircleComponent extends SiChartBaseComponent {
|
|
57
|
+
/** The series for the chart. */
|
|
58
|
+
readonly series: i0.InputSignal<CircleChartSeries[] | undefined>;
|
|
59
|
+
protected applyOptions(): void;
|
|
60
|
+
protected applyDataZoom(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Update single value of the circle chart.
|
|
63
|
+
*/
|
|
64
|
+
changeSingleValue(index: number, valueIndex: number, value: number): void;
|
|
65
|
+
/**
|
|
66
|
+
* Update multiple values of the circle chart.
|
|
67
|
+
*/
|
|
68
|
+
changeMultiValues(updateValues: CircleValueUpdate[]): void;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiChartCircleComponent, never>;
|
|
70
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiChartCircleComponent, "si-chart-circle", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; }, {}, never, ["[slot=timeRangeBar]"], true, never>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { SiChartCircleComponent };
|
|
74
|
+
export type { CircleChartData, CircleChartSeries, CircleValueUpdate };
|