ngx-core-components 0.3.14 → 0.3.15
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/charts/area-chart/area-chart.component.d.ts +2 -0
- package/charts/bar-chart/bar-chart.component.d.ts +23 -6
- package/charts/box-plot-chart/box-plot-chart.component.d.ts +68 -0
- package/charts/candlestick-chart/candlestick-chart.component.d.ts +58 -0
- package/charts/funnel-chart/funnel-chart.component.d.ts +3 -1
- package/charts/line-chart/line-chart.component.d.ts +15 -1
- package/charts/pie-chart/pie-chart.component.d.ts +14 -1
- package/charts/public-api.d.ts +8 -0
- package/charts/radial-bar-chart/radial-bar-chart.component.d.ts +35 -0
- package/charts/waterfall-chart/waterfall-chart.component.d.ts +62 -0
- package/fesm2022/ngx-core-components-charts.mjs +2024 -142
- package/fesm2022/ngx-core-components-charts.mjs.map +1 -1
- package/fesm2022/ngx-core-components-navigation.mjs +16 -4
- package/fesm2022/ngx-core-components-navigation.mjs.map +1 -1
- package/fesm2022/ngx-core-components.mjs +1 -1
- package/fesm2022/ngx-core-components.mjs.map +1 -1
- package/navigation/command-palette/command-palette.component.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +8 -0
|
@@ -25,8 +25,10 @@ export declare class AreaChartComponent {
|
|
|
25
25
|
color: string;
|
|
26
26
|
}[];
|
|
27
27
|
} | null>;
|
|
28
|
+
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
28
29
|
innerW: import("@angular/core").Signal<number>;
|
|
29
30
|
innerH: import("@angular/core").Signal<number>;
|
|
31
|
+
constructor();
|
|
30
32
|
private allValues;
|
|
31
33
|
private yMin;
|
|
32
34
|
private yMax;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import { ChartSeries, fmtNum } from '../shared/chart-utils';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class BarChartComponent {
|
|
@@ -12,33 +13,49 @@ export declare class BarChartComponent {
|
|
|
12
13
|
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
13
14
|
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
14
15
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
16
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
18
|
+
exportMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
19
|
+
animateState: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
activeColumnIndex: import("@angular/core").WritableSignal<number | null>;
|
|
21
|
+
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
15
22
|
tooltip: import("@angular/core").WritableSignal<{
|
|
16
23
|
x: number;
|
|
17
24
|
y: number;
|
|
18
25
|
cat: string;
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
rows: {
|
|
27
|
+
name: string;
|
|
28
|
+
value: number;
|
|
29
|
+
color: string;
|
|
30
|
+
}[];
|
|
21
31
|
} | null>;
|
|
22
32
|
chartHeight: import("@angular/core").Signal<number>;
|
|
23
|
-
private svgEl;
|
|
24
33
|
innerW: import("@angular/core").Signal<number>;
|
|
25
34
|
innerH: import("@angular/core").Signal<number>;
|
|
26
35
|
private allValues;
|
|
27
36
|
private yMin;
|
|
28
37
|
private yMax;
|
|
29
38
|
yTicks: import("@angular/core").Signal<number[]>;
|
|
39
|
+
constructor();
|
|
30
40
|
yPos(v: number): number;
|
|
31
41
|
barY(v: number): number;
|
|
32
42
|
barH(v: number): number;
|
|
33
|
-
|
|
43
|
+
groupW: import("@angular/core").Signal<number>;
|
|
34
44
|
singleBarWidth: import("@angular/core").Signal<number>;
|
|
35
45
|
catMidX(i: number): number;
|
|
36
46
|
barX(ci: number, si: number): number;
|
|
47
|
+
colStartX(i: number): number;
|
|
37
48
|
seriesColor(i: number): string;
|
|
38
49
|
barColor(si: number, s: ChartSeries): string;
|
|
39
|
-
onBarHover(event: MouseEvent, seriesName: string, cat: string, value: number): void;
|
|
40
50
|
onMouseMove(event: MouseEvent): void;
|
|
51
|
+
onMouseLeave(): void;
|
|
52
|
+
toggleExportMenu(event: MouseEvent): void;
|
|
53
|
+
closeExportMenu(): void;
|
|
54
|
+
onExport(type: 'json' | 'csv' | 'svg'): void;
|
|
55
|
+
exportToCsv(): void;
|
|
56
|
+
exportToJson(): void;
|
|
57
|
+
exportToSvg(): void;
|
|
41
58
|
readonly fmtNum: typeof fmtNum;
|
|
42
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<BarChartComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BarChartComponent, "ngx-bar-chart", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BarChartComponent, "ngx-bar-chart", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
44
61
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { fmtNum } from '../shared/chart-utils';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface BoxPlotItem {
|
|
4
|
+
label: string;
|
|
5
|
+
min: number;
|
|
6
|
+
q1: number;
|
|
7
|
+
median: number;
|
|
8
|
+
q3: number;
|
|
9
|
+
max: number;
|
|
10
|
+
outliers?: number[];
|
|
11
|
+
}
|
|
12
|
+
export declare class BoxPlotChartComponent {
|
|
13
|
+
PAD_LEFT: number;
|
|
14
|
+
PAD_TOP: number;
|
|
15
|
+
PAD_RIGHT: number;
|
|
16
|
+
PAD_BOTTOM: number;
|
|
17
|
+
data: import("@angular/core").InputSignal<BoxPlotItem[]>;
|
|
18
|
+
height: import("@angular/core").InputSignal<number>;
|
|
19
|
+
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
20
|
+
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
21
|
+
color: import("@angular/core").InputSignal<string>;
|
|
22
|
+
fillColor: import("@angular/core").InputSignal<string>;
|
|
23
|
+
outlierColor: import("@angular/core").InputSignal<string>;
|
|
24
|
+
hoveredIndex: import("@angular/core").WritableSignal<number | null>;
|
|
25
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
label: string;
|
|
29
|
+
min: number;
|
|
30
|
+
q1: number;
|
|
31
|
+
median: number;
|
|
32
|
+
q3: number;
|
|
33
|
+
max: number;
|
|
34
|
+
isOutlier: boolean;
|
|
35
|
+
outlierVal?: number;
|
|
36
|
+
} | null>;
|
|
37
|
+
private container;
|
|
38
|
+
innerW: import("@angular/core").Signal<number>;
|
|
39
|
+
innerH: import("@angular/core").Signal<number>;
|
|
40
|
+
yMin: import("@angular/core").Signal<number>;
|
|
41
|
+
yMax: import("@angular/core").Signal<number>;
|
|
42
|
+
yTicks: import("@angular/core").Signal<number[]>;
|
|
43
|
+
xPos(index: number): number;
|
|
44
|
+
yPos(y: number): number;
|
|
45
|
+
boxWidth(): number;
|
|
46
|
+
capWidth(): number;
|
|
47
|
+
computedBoxes: import("@angular/core").Signal<{
|
|
48
|
+
x: number;
|
|
49
|
+
centerX: number;
|
|
50
|
+
width: number;
|
|
51
|
+
yMin: number;
|
|
52
|
+
yQ1: number;
|
|
53
|
+
yMedian: number;
|
|
54
|
+
yQ3: number;
|
|
55
|
+
yMax: number;
|
|
56
|
+
boxHeight: number;
|
|
57
|
+
outlierPoints: {
|
|
58
|
+
value: number;
|
|
59
|
+
y: number;
|
|
60
|
+
}[];
|
|
61
|
+
raw: BoxPlotItem;
|
|
62
|
+
}[]>;
|
|
63
|
+
onBoxHover(event: MouseEvent, item: BoxPlotItem, index: number): void;
|
|
64
|
+
onOutlierHover(event: MouseEvent, label: string, outlierVal: number): void;
|
|
65
|
+
readonly fmtNum: typeof fmtNum;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BoxPlotChartComponent, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BoxPlotChartComponent, "ngx-box-plot-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "fillColor": { "alias": "fillColor"; "required": false; "isSignal": true; }; "outlierColor": { "alias": "outlierColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
68
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { fmtNum } from '../shared/chart-utils';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface CandlestickItem {
|
|
4
|
+
date: string | Date;
|
|
5
|
+
open: number;
|
|
6
|
+
high: number;
|
|
7
|
+
low: number;
|
|
8
|
+
close: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class CandlestickChartComponent {
|
|
11
|
+
PAD_LEFT: number;
|
|
12
|
+
PAD_TOP: number;
|
|
13
|
+
PAD_RIGHT: number;
|
|
14
|
+
PAD_BOTTOM: number;
|
|
15
|
+
data: import("@angular/core").InputSignal<CandlestickItem[]>;
|
|
16
|
+
height: import("@angular/core").InputSignal<number>;
|
|
17
|
+
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
19
|
+
bullishColor: import("@angular/core").InputSignal<string>;
|
|
20
|
+
bearishColor: import("@angular/core").InputSignal<string>;
|
|
21
|
+
hoveredIndex: import("@angular/core").WritableSignal<number | null>;
|
|
22
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
date: string | Date;
|
|
26
|
+
open: number;
|
|
27
|
+
high: number;
|
|
28
|
+
low: number;
|
|
29
|
+
close: number;
|
|
30
|
+
direction: "Bullish" | "Bearish";
|
|
31
|
+
changePct: string;
|
|
32
|
+
} | null>;
|
|
33
|
+
private container;
|
|
34
|
+
innerW: import("@angular/core").Signal<number>;
|
|
35
|
+
innerH: import("@angular/core").Signal<number>;
|
|
36
|
+
yMin: import("@angular/core").Signal<number>;
|
|
37
|
+
yMax: import("@angular/core").Signal<number>;
|
|
38
|
+
yTicks: import("@angular/core").Signal<number[]>;
|
|
39
|
+
xPos(index: number): number;
|
|
40
|
+
yPos(y: number): number;
|
|
41
|
+
candleWidth(): number;
|
|
42
|
+
computedCandles: import("@angular/core").Signal<{
|
|
43
|
+
x: number;
|
|
44
|
+
centerX: number;
|
|
45
|
+
width: number;
|
|
46
|
+
yHigh: number;
|
|
47
|
+
yLow: number;
|
|
48
|
+
y: number;
|
|
49
|
+
rectH: number;
|
|
50
|
+
color: string;
|
|
51
|
+
raw: CandlestickItem;
|
|
52
|
+
}[]>;
|
|
53
|
+
onCandleHover(event: MouseEvent, item: CandlestickItem, index: number): void;
|
|
54
|
+
formatDate(d: string | Date): string;
|
|
55
|
+
readonly fmtNum: typeof fmtNum;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CandlestickChartComponent, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CandlestickChartComponent, "ngx-candlestick-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "bullishColor": { "alias": "bullishColor"; "required": false; "isSignal": true; }; "bearishColor": { "alias": "bearishColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
58
|
+
}
|
|
@@ -9,9 +9,11 @@ export declare class FunnelChartComponent {
|
|
|
9
9
|
data: import("@angular/core").InputSignal<FunnelItem[]>;
|
|
10
10
|
height: import("@angular/core").InputSignal<number>;
|
|
11
11
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
12
|
+
mode: import("@angular/core").InputSignal<"funnel" | "pyramid">;
|
|
12
13
|
hoveredIndex: import("@angular/core").WritableSignal<number | null>;
|
|
13
14
|
tooltipX: import("@angular/core").WritableSignal<number>;
|
|
14
15
|
tooltipY: import("@angular/core").WritableSignal<number>;
|
|
16
|
+
totalValue: import("@angular/core").Signal<number>;
|
|
15
17
|
funnelStages: import("@angular/core").Signal<{
|
|
16
18
|
name: string;
|
|
17
19
|
value: number;
|
|
@@ -22,5 +24,5 @@ export declare class FunnelChartComponent {
|
|
|
22
24
|
onMouseMove(event: MouseEvent, index: number): void;
|
|
23
25
|
readonly fmtNum: typeof fmtNum;
|
|
24
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<FunnelChartComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FunnelChartComponent, "ngx-funnel-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FunnelChartComponent, "ngx-funnel-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
26
28
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import { ChartSeries, fmtNum } from '../shared/chart-utils';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class LineChartComponent {
|
|
@@ -13,6 +14,11 @@ export declare class LineChartComponent {
|
|
|
13
14
|
showMarkers: import("@angular/core").InputSignal<boolean>;
|
|
14
15
|
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
15
16
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
17
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
18
|
+
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
19
|
+
exportMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
+
animateState: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
16
22
|
crosshair: import("@angular/core").WritableSignal<{
|
|
17
23
|
x: number;
|
|
18
24
|
} | null>;
|
|
@@ -33,13 +39,21 @@ export declare class LineChartComponent {
|
|
|
33
39
|
private yMin;
|
|
34
40
|
private yMax;
|
|
35
41
|
yTicks: import("@angular/core").Signal<number[]>;
|
|
42
|
+
constructor();
|
|
36
43
|
yPos(v: number): number;
|
|
37
44
|
xPos(i: number): number;
|
|
38
45
|
seriesColor(i: number, s: ChartSeries): string;
|
|
39
46
|
linePath(s: ChartSeries): string;
|
|
40
47
|
areaPath(s: ChartSeries): string;
|
|
41
48
|
onMouseMove(event: MouseEvent): void;
|
|
49
|
+
onMouseLeave(): void;
|
|
50
|
+
toggleExportMenu(event: MouseEvent): void;
|
|
51
|
+
closeExportMenu(): void;
|
|
52
|
+
onExport(type: 'json' | 'csv' | 'svg'): void;
|
|
53
|
+
exportToCsv(): void;
|
|
54
|
+
exportToJson(): void;
|
|
55
|
+
exportToSvg(): void;
|
|
42
56
|
readonly fmtNum: typeof fmtNum;
|
|
43
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<LineChartComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LineChartComponent, "ngx-line-chart", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showArea": { "alias": "showArea"; "required": false; "isSignal": true; }; "showMarkers": { "alias": "showMarkers"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LineChartComponent, "ngx-line-chart", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "categories": { "alias": "categories"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showArea": { "alias": "showArea"; "required": false; "isSignal": true; }; "showMarkers": { "alias": "showMarkers"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
45
59
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import { ChartDataPoint, fmtNum } from '../shared/chart-utils';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class PieChartComponent {
|
|
@@ -9,7 +10,11 @@ export declare class PieChartComponent {
|
|
|
9
10
|
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
10
11
|
colors: import("@angular/core").InputSignal<string[]>;
|
|
11
12
|
centerTitle: import("@angular/core").InputSignal<string>;
|
|
13
|
+
centerValueOverride: import("@angular/core").InputSignal<string | null>;
|
|
14
|
+
showExport: import("@angular/core").InputSignal<boolean>;
|
|
12
15
|
colors$: import("@angular/core").InputSignal<string[]>;
|
|
16
|
+
svgEl: import("@angular/core").Signal<ElementRef<SVGElement> | undefined>;
|
|
17
|
+
exportMenuOpen: import("@angular/core").WritableSignal<boolean>;
|
|
13
18
|
hovered: import("@angular/core").WritableSignal<number>;
|
|
14
19
|
tooltip: import("@angular/core").WritableSignal<{
|
|
15
20
|
x: number;
|
|
@@ -24,6 +29,7 @@ export declare class PieChartComponent {
|
|
|
24
29
|
cy: import("@angular/core").Signal<number>;
|
|
25
30
|
radius: import("@angular/core").Signal<number>;
|
|
26
31
|
holeR: import("@angular/core").Signal<number>;
|
|
32
|
+
constructor();
|
|
27
33
|
centerValue: import("@angular/core").Signal<string>;
|
|
28
34
|
slices: import("@angular/core").Signal<{
|
|
29
35
|
index: number;
|
|
@@ -35,6 +41,7 @@ export declare class PieChartComponent {
|
|
|
35
41
|
midAngle: number;
|
|
36
42
|
}[]>;
|
|
37
43
|
private arcPath;
|
|
44
|
+
private ringPath;
|
|
38
45
|
labelX(s: {
|
|
39
46
|
midAngle: number;
|
|
40
47
|
}): number;
|
|
@@ -47,7 +54,13 @@ export declare class PieChartComponent {
|
|
|
47
54
|
pct: number;
|
|
48
55
|
color: string;
|
|
49
56
|
}): void;
|
|
57
|
+
toggleExportMenu(event: MouseEvent): void;
|
|
58
|
+
closeExportMenu(): void;
|
|
59
|
+
onExport(type: 'json' | 'csv' | 'svg'): void;
|
|
60
|
+
exportToCsv(): void;
|
|
61
|
+
exportToJson(): void;
|
|
62
|
+
exportToSvg(): void;
|
|
50
63
|
readonly fmtNum: typeof fmtNum;
|
|
51
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<PieChartComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PieChartComponent, "ngx-pie-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "donutHoleSize": { "alias": "donutHoleSize"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "centerTitle": { "alias": "centerTitle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PieChartComponent, "ngx-pie-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "donutHoleSize": { "alias": "donutHoleSize"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; "centerTitle": { "alias": "centerTitle"; "required": false; "isSignal": true; }; "centerValueOverride": { "alias": "centerValue"; "required": false; "isSignal": true; }; "showExport": { "alias": "showExport"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
53
66
|
}
|
package/charts/public-api.d.ts
CHANGED
|
@@ -23,3 +23,11 @@ export type { FunnelItem } from './funnel-chart/funnel-chart.component';
|
|
|
23
23
|
export { ComboChartComponent } from './combo-chart/combo-chart.component';
|
|
24
24
|
export { ScatterPlotComponent } from './scatter-plot/scatter-plot.component';
|
|
25
25
|
export type { ScatterPoint } from './scatter-plot/scatter-plot.component';
|
|
26
|
+
export { WaterfallChartComponent } from './waterfall-chart/waterfall-chart.component';
|
|
27
|
+
export type { WaterfallItem } from './waterfall-chart/waterfall-chart.component';
|
|
28
|
+
export { BoxPlotChartComponent } from './box-plot-chart/box-plot-chart.component';
|
|
29
|
+
export type { BoxPlotItem } from './box-plot-chart/box-plot-chart.component';
|
|
30
|
+
export { RadialBarChartComponent } from './radial-bar-chart/radial-bar-chart.component';
|
|
31
|
+
export type { RadialBarItem } from './radial-bar-chart/radial-bar-chart.component';
|
|
32
|
+
export { CandlestickChartComponent } from './candlestick-chart/candlestick-chart.component';
|
|
33
|
+
export type { CandlestickItem } from './candlestick-chart/candlestick-chart.component';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { fmtNum } from '../shared/chart-utils';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface RadialBarItem {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
max: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class RadialBarChartComponent {
|
|
10
|
+
data: import("@angular/core").InputSignal<RadialBarItem[]>;
|
|
11
|
+
height: import("@angular/core").InputSignal<number>;
|
|
12
|
+
showLegend: import("@angular/core").InputSignal<boolean>;
|
|
13
|
+
strokeWidth: import("@angular/core").InputSignal<number>;
|
|
14
|
+
ringGap: import("@angular/core").InputSignal<number>;
|
|
15
|
+
colors: import("@angular/core").InputSignal<string[]>;
|
|
16
|
+
hoveredIndex: import("@angular/core").WritableSignal<number | null>;
|
|
17
|
+
tooltip: import("@angular/core").WritableSignal<any>;
|
|
18
|
+
size: import("@angular/core").Signal<number>;
|
|
19
|
+
center: import("@angular/core").Signal<number>;
|
|
20
|
+
computedRings: import("@angular/core").Signal<{
|
|
21
|
+
r: number;
|
|
22
|
+
pct: number;
|
|
23
|
+
color: string;
|
|
24
|
+
dashArray: string;
|
|
25
|
+
label: string;
|
|
26
|
+
value: number;
|
|
27
|
+
max: number;
|
|
28
|
+
raw: RadialBarItem;
|
|
29
|
+
}[]>;
|
|
30
|
+
avgPct: import("@angular/core").Signal<number>;
|
|
31
|
+
onRingHover(event: MouseEvent, item: RadialBarItem, index: number): void;
|
|
32
|
+
readonly fmtNum: typeof fmtNum;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadialBarChartComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadialBarChartComponent, "ngx-radial-bar-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showLegend": { "alias": "showLegend"; "required": false; "isSignal": true; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; "isSignal": true; }; "ringGap": { "alias": "ringGap"; "required": false; "isSignal": true; }; "colors": { "alias": "colors"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { fmtNum } from '../shared/chart-utils';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface WaterfallItem {
|
|
4
|
+
label: string;
|
|
5
|
+
value: number;
|
|
6
|
+
isTotal?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class WaterfallChartComponent {
|
|
9
|
+
PAD_LEFT: number;
|
|
10
|
+
PAD_TOP: number;
|
|
11
|
+
PAD_RIGHT: number;
|
|
12
|
+
PAD_BOTTOM: number;
|
|
13
|
+
data: import("@angular/core").InputSignal<WaterfallItem[]>;
|
|
14
|
+
height: import("@angular/core").InputSignal<number>;
|
|
15
|
+
showGrid: import("@angular/core").InputSignal<boolean>;
|
|
16
|
+
showLabels: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
positiveColor: import("@angular/core").InputSignal<string>;
|
|
18
|
+
negativeColor: import("@angular/core").InputSignal<string>;
|
|
19
|
+
totalColor: import("@angular/core").InputSignal<string>;
|
|
20
|
+
hoveredIndex: import("@angular/core").WritableSignal<number | null>;
|
|
21
|
+
tooltip: import("@angular/core").WritableSignal<{
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
label: string;
|
|
25
|
+
value: number;
|
|
26
|
+
balance: number;
|
|
27
|
+
color: string;
|
|
28
|
+
} | null>;
|
|
29
|
+
private container;
|
|
30
|
+
innerW: import("@angular/core").Signal<number>;
|
|
31
|
+
innerH: import("@angular/core").Signal<number>;
|
|
32
|
+
processedData: import("@angular/core").Signal<{
|
|
33
|
+
label: string;
|
|
34
|
+
value: number;
|
|
35
|
+
start: number;
|
|
36
|
+
end: number;
|
|
37
|
+
isTotal: boolean;
|
|
38
|
+
runningBalance: number;
|
|
39
|
+
}[]>;
|
|
40
|
+
yMin: import("@angular/core").Signal<number>;
|
|
41
|
+
yMax: import("@angular/core").Signal<number>;
|
|
42
|
+
yTicks: import("@angular/core").Signal<number[]>;
|
|
43
|
+
xPos(index: number, count: number): number;
|
|
44
|
+
yPos(y: number): number;
|
|
45
|
+
barWidth(count: number): number;
|
|
46
|
+
computedBars: import("@angular/core").Signal<{
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
rectH: number;
|
|
50
|
+
width: number;
|
|
51
|
+
color: string;
|
|
52
|
+
connectY: number;
|
|
53
|
+
label: string;
|
|
54
|
+
value: number;
|
|
55
|
+
balance: number;
|
|
56
|
+
isTotal: boolean;
|
|
57
|
+
}[]>;
|
|
58
|
+
onBarHover(event: MouseEvent, bar: any, index: number): void;
|
|
59
|
+
readonly fmtNum: typeof fmtNum;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WaterfallChartComponent, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WaterfallChartComponent, "ngx-waterfall-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showGrid": { "alias": "showGrid"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "positiveColor": { "alias": "positiveColor"; "required": false; "isSignal": true; }; "negativeColor": { "alias": "negativeColor"; "required": false; "isSignal": true; }; "totalColor": { "alias": "totalColor"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
62
|
+
}
|