@tectra-ng/charts 0.1.9 → 0.2.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/README.md +21 -1
- package/bar-list/README.md +30 -0
- package/boxplot/README.md +62 -0
- package/bullet/README.md +53 -0
- package/candlestick/README.md +57 -0
- package/column/README.md +4 -2
- package/combo/README.md +83 -0
- package/core/README.md +3 -1
- package/fesm2022/tectra-ng-charts-bar-list.mjs +299 -0
- package/fesm2022/tectra-ng-charts-bar-list.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-boxplot.mjs +887 -0
- package/fesm2022/tectra-ng-charts-boxplot.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-bullet.mjs +666 -0
- package/fesm2022/tectra-ng-charts-bullet.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-candlestick.mjs +778 -0
- package/fesm2022/tectra-ng-charts-candlestick.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-column.mjs +149 -66
- package/fesm2022/tectra-ng-charts-column.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-combo.mjs +1218 -0
- package/fesm2022/tectra-ng-charts-combo.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-core.mjs +1334 -49
- package/fesm2022/tectra-ng-charts-core.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-funnel.mjs +694 -0
- package/fesm2022/tectra-ng-charts-funnel.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-gantt.mjs +947 -0
- package/fesm2022/tectra-ng-charts-gantt.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-gauge.mjs +693 -0
- package/fesm2022/tectra-ng-charts-gauge.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-heatmap.mjs +935 -0
- package/fesm2022/tectra-ng-charts-heatmap.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-line.mjs +527 -67
- package/fesm2022/tectra-ng-charts-line.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-org-chart.mjs +2341 -0
- package/fesm2022/tectra-ng-charts-org-chart.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-pie.mjs +47 -86
- package/fesm2022/tectra-ng-charts-pie.mjs.map +1 -1
- package/fesm2022/tectra-ng-charts-radar.mjs +924 -0
- package/fesm2022/tectra-ng-charts-radar.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-radial-bar.mjs +802 -0
- package/fesm2022/tectra-ng-charts-radial-bar.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-range-area.mjs +933 -0
- package/fesm2022/tectra-ng-charts-range-area.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-rank-line.mjs +660 -0
- package/fesm2022/tectra-ng-charts-rank-line.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-sankey.mjs +837 -0
- package/fesm2022/tectra-ng-charts-sankey.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-scatter.mjs +1174 -0
- package/fesm2022/tectra-ng-charts-scatter.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs +328 -0
- package/fesm2022/tectra-ng-charts-segmented-bar.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-sunburst.mjs +733 -0
- package/fesm2022/tectra-ng-charts-sunburst.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-treemap.mjs +674 -0
- package/fesm2022/tectra-ng-charts-treemap.mjs.map +1 -0
- package/fesm2022/tectra-ng-charts-waterfall.mjs +809 -0
- package/fesm2022/tectra-ng-charts-waterfall.mjs.map +1 -0
- package/funnel/README.md +53 -0
- package/gantt/README.md +53 -0
- package/gauge/README.md +41 -0
- package/heatmap/README.md +47 -0
- package/line/README.md +13 -2
- package/org-chart/README.md +57 -0
- package/package.json +114 -6
- package/pie/README.md +1 -0
- package/radar/README.md +64 -0
- package/radial-bar/README.md +62 -0
- package/range-area/README.md +66 -0
- package/rank-line/README.md +51 -0
- package/sankey/README.md +52 -0
- package/scatter/README.md +71 -0
- package/segmented-bar/README.md +35 -0
- package/sunburst/README.md +55 -0
- package/treemap/README.md +47 -0
- package/types/tectra-ng-charts-bar-list.d.ts +724 -0
- package/types/tectra-ng-charts-bar-list.d.ts.map +1 -0
- package/types/tectra-ng-charts-boxplot.d.ts +882 -0
- package/types/tectra-ng-charts-boxplot.d.ts.map +1 -0
- package/types/tectra-ng-charts-bullet.d.ts +833 -0
- package/types/tectra-ng-charts-bullet.d.ts.map +1 -0
- package/types/tectra-ng-charts-candlestick.d.ts +854 -0
- package/types/tectra-ng-charts-candlestick.d.ts.map +1 -0
- package/types/tectra-ng-charts-column.d.ts +486 -3
- package/types/tectra-ng-charts-column.d.ts.map +1 -1
- package/types/tectra-ng-charts-combo.d.ts +987 -0
- package/types/tectra-ng-charts-combo.d.ts.map +1 -0
- package/types/tectra-ng-charts-core.d.ts +266 -5
- package/types/tectra-ng-charts-core.d.ts.map +1 -1
- package/types/tectra-ng-charts-funnel.d.ts +857 -0
- package/types/tectra-ng-charts-funnel.d.ts.map +1 -0
- package/types/tectra-ng-charts-gantt.d.ts +884 -0
- package/types/tectra-ng-charts-gantt.d.ts.map +1 -0
- package/types/tectra-ng-charts-gauge.d.ts +859 -0
- package/types/tectra-ng-charts-gauge.d.ts.map +1 -0
- package/types/tectra-ng-charts-heatmap.d.ts +914 -0
- package/types/tectra-ng-charts-heatmap.d.ts.map +1 -0
- package/types/tectra-ng-charts-line.d.ts +556 -2
- package/types/tectra-ng-charts-line.d.ts.map +1 -1
- package/types/tectra-ng-charts-org-chart.d.ts +1017 -0
- package/types/tectra-ng-charts-org-chart.d.ts.map +1 -0
- package/types/tectra-ng-charts-pie.d.ts +477 -14
- package/types/tectra-ng-charts-pie.d.ts.map +1 -1
- package/types/tectra-ng-charts-radar.d.ts +903 -0
- package/types/tectra-ng-charts-radar.d.ts.map +1 -0
- package/types/tectra-ng-charts-radial-bar.d.ts +886 -0
- package/types/tectra-ng-charts-radial-bar.d.ts.map +1 -0
- package/types/tectra-ng-charts-range-area.d.ts +897 -0
- package/types/tectra-ng-charts-range-area.d.ts.map +1 -0
- package/types/tectra-ng-charts-rank-line.d.ts +839 -0
- package/types/tectra-ng-charts-rank-line.d.ts.map +1 -0
- package/types/tectra-ng-charts-sankey.d.ts +866 -0
- package/types/tectra-ng-charts-sankey.d.ts.map +1 -0
- package/types/tectra-ng-charts-scatter.d.ts +987 -0
- package/types/tectra-ng-charts-scatter.d.ts.map +1 -0
- package/types/tectra-ng-charts-segmented-bar.d.ts +751 -0
- package/types/tectra-ng-charts-segmented-bar.d.ts.map +1 -0
- package/types/tectra-ng-charts-sunburst.d.ts +864 -0
- package/types/tectra-ng-charts-sunburst.d.ts.map +1 -0
- package/types/tectra-ng-charts-treemap.d.ts +847 -0
- package/types/tectra-ng-charts-treemap.d.ts.map +1 -0
- package/types/tectra-ng-charts-waterfall.d.ts +869 -0
- package/types/tectra-ng-charts-waterfall.d.ts.map +1 -0
- package/waterfall/README.md +60 -0
|
@@ -0,0 +1,924 @@
|
|
|
1
|
+
import { TX_FULL_CIRCLE, TxChartFrame, TxChartLegendTemplate, TxChartTooltipTemplate, chartNumberFormatter, chartSummary, chartTable, cycleIndex, extent, hasChartData, initialChartSize, injectChartEntrance, linearTicks, niceDomain, normalizeSeries, polar, readTokenNumber, seriesColor, stepIndex, textWidth, tickFormatter, toggleKey } from "@tectra-ng/charts/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, ElementRef, afterNextRender, afterRenderEffect, booleanAttribute, computed, contentChild, inject, input, linkedSignal, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { injectPassThrough, injectUnstyled } from "@tectra-ng/core/config";
|
|
5
|
+
import { TxLocaleService, formatMessage, injectTranslations } from "@tectra-ng/core/i18n";
|
|
6
|
+
import { optionalBoolean } from "@tectra-ng/core/utils";
|
|
7
|
+
import { toStyleObject } from "@tectra-ng/themes";
|
|
8
|
+
const round = (value) => Math.round(value * 100) / 100;
|
|
9
|
+
function radarAngle(index, count) {
|
|
10
|
+
return count > 0 ? index / count * TX_FULL_CIRCLE : 0;
|
|
11
|
+
}
|
|
12
|
+
function radarFit(width, height, labels, fontSize, gap) {
|
|
13
|
+
const count = labels.length;
|
|
14
|
+
const line = fontSize * 1.3;
|
|
15
|
+
let radius = Math.min(width, height) / 2 - 4;
|
|
16
|
+
labels.forEach((label, index) => {
|
|
17
|
+
const angle = radarAngle(index, count);
|
|
18
|
+
const sin = Math.abs(Math.sin(angle));
|
|
19
|
+
const cos = Math.abs(Math.cos(angle));
|
|
20
|
+
const labelWidth = textWidth(label, fontSize);
|
|
21
|
+
const across = sin > .1 ? labelWidth : labelWidth / 2;
|
|
22
|
+
const up = cos > .1 ? line : line / 2;
|
|
23
|
+
if (sin > 1e-6) radius = Math.min(radius, (width / 2 - 2 - across) / sin - gap);
|
|
24
|
+
if (cos > 1e-6) radius = Math.min(radius, (height / 2 - 2 - up) / cos - gap);
|
|
25
|
+
});
|
|
26
|
+
return {
|
|
27
|
+
cx: width / 2,
|
|
28
|
+
cy: height / 2,
|
|
29
|
+
radius: Math.max(10, radius)
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function radarAxes(labels, fit, gap) {
|
|
33
|
+
return labels.map((label, index) => {
|
|
34
|
+
const angle = radarAngle(index, labels.length);
|
|
35
|
+
const end = polar(fit.cx, fit.cy, fit.radius, angle);
|
|
36
|
+
const text = polar(fit.cx, fit.cy, fit.radius + gap, angle);
|
|
37
|
+
const sin = Math.sin(angle);
|
|
38
|
+
const cos = Math.cos(angle);
|
|
39
|
+
return {
|
|
40
|
+
index,
|
|
41
|
+
label,
|
|
42
|
+
angle,
|
|
43
|
+
x: round(end.x),
|
|
44
|
+
y: round(end.y),
|
|
45
|
+
labelX: round(text.x),
|
|
46
|
+
labelY: round(text.y),
|
|
47
|
+
anchor: sin > .1 ? "start" : sin < -.1 ? "end" : "middle",
|
|
48
|
+
baseline: cos > .1 ? "auto" : cos < -.1 ? "hanging" : "middle"
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function radarRadius(value, domain, radius) {
|
|
53
|
+
const span = domain[1] - domain[0] || 1;
|
|
54
|
+
return Math.max(0, Math.min(1, (value - domain[0]) / span)) * radius;
|
|
55
|
+
}
|
|
56
|
+
function radarShapePath(fit, radius, count, shape) {
|
|
57
|
+
if (radius <= 0) return "";
|
|
58
|
+
if (shape === "circle" || count < 3) {
|
|
59
|
+
const r = round(radius);
|
|
60
|
+
return `M${round(fit.cx - radius)},${round(fit.cy)}a${r},${r} 0 1 0 ${round(radius * 2)},0a${r},${r} 0 1 0 ${round(-radius * 2)},0Z`;
|
|
61
|
+
}
|
|
62
|
+
return Array.from({ length: count }, (_, index) => {
|
|
63
|
+
const point = polar(fit.cx, fit.cy, radius, radarAngle(index, count));
|
|
64
|
+
return `${index ? "L" : "M"}${round(point.x)},${round(point.y)}`;
|
|
65
|
+
}).join("") + "Z";
|
|
66
|
+
}
|
|
67
|
+
function radarPoints(values, domain, fit) {
|
|
68
|
+
return values.map((value, index) => {
|
|
69
|
+
if (value === null || value === void 0 || !Number.isFinite(value)) return null;
|
|
70
|
+
const point = polar(fit.cx, fit.cy, radarRadius(value, domain, fit.radius), radarAngle(index, values.length));
|
|
71
|
+
return {
|
|
72
|
+
index,
|
|
73
|
+
x: round(point.x),
|
|
74
|
+
y: round(point.y)
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function radarPolygonPath(points, fit) {
|
|
79
|
+
const drawn = points.map((point) => point ?? {
|
|
80
|
+
x: fit.cx,
|
|
81
|
+
y: fit.cy
|
|
82
|
+
});
|
|
83
|
+
if (!drawn.length) return "";
|
|
84
|
+
return drawn.map((point, index) => `${index ? "L" : "M"}${point.x},${point.y}`).join("") + "Z";
|
|
85
|
+
}
|
|
86
|
+
function radarAxisAt(x, y, fit, count, reach) {
|
|
87
|
+
const dx = x - fit.cx;
|
|
88
|
+
const dy = y - fit.cy;
|
|
89
|
+
if (!count || Math.hypot(dx, dy) > fit.radius + reach) return -1;
|
|
90
|
+
let angle = Math.atan2(dx, -dy);
|
|
91
|
+
if (angle < 0) angle += TX_FULL_CIRCLE;
|
|
92
|
+
return Math.round(angle / (TX_FULL_CIRCLE / count)) % count;
|
|
93
|
+
}
|
|
94
|
+
const DEFAULT_LABEL = {
|
|
95
|
+
fontSize: 11.5,
|
|
96
|
+
gap: 10
|
|
97
|
+
};
|
|
98
|
+
const TICK_GAP = 4;
|
|
99
|
+
var TxRadarChart = class TxRadarChart {
|
|
100
|
+
locale = inject(TxLocaleService);
|
|
101
|
+
host = inject(ElementRef);
|
|
102
|
+
translations = injectTranslations();
|
|
103
|
+
series = input([], ...ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []);
|
|
104
|
+
categories = input([], ...ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []);
|
|
105
|
+
height = input(350, ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
106
|
+
shape = input("polygon", ...ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []);
|
|
107
|
+
min = input(void 0, ...ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []);
|
|
108
|
+
max = input(void 0, ...ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []);
|
|
109
|
+
rings = input(4, ...ngDevMode ? [{ debugName: "rings" }] : /* istanbul ignore next */ []);
|
|
110
|
+
fill = input(true, {
|
|
111
|
+
...ngDevMode ? { debugName: "fill" } : /* istanbul ignore next */ {},
|
|
112
|
+
transform: booleanAttribute
|
|
113
|
+
});
|
|
114
|
+
markers = input(true, {
|
|
115
|
+
...ngDevMode ? { debugName: "markers" } : /* istanbul ignore next */ {},
|
|
116
|
+
transform: booleanAttribute
|
|
117
|
+
});
|
|
118
|
+
showTicks = input(true, {
|
|
119
|
+
...ngDevMode ? { debugName: "showTicks" } : /* istanbul ignore next */ {},
|
|
120
|
+
transform: booleanAttribute
|
|
121
|
+
});
|
|
122
|
+
showLegend = input(true, {
|
|
123
|
+
...ngDevMode ? { debugName: "showLegend" } : /* istanbul ignore next */ {},
|
|
124
|
+
transform: booleanAttribute
|
|
125
|
+
});
|
|
126
|
+
legendPosition = input("top", ...ngDevMode ? [{ debugName: "legendPosition" }] : /* istanbul ignore next */ []);
|
|
127
|
+
legendAlign = input("start", ...ngDevMode ? [{ debugName: "legendAlign" }] : /* istanbul ignore next */ []);
|
|
128
|
+
legendVariant = input("dot", ...ngDevMode ? [{ debugName: "legendVariant" }] : /* istanbul ignore next */ []);
|
|
129
|
+
showTooltip = input(true, {
|
|
130
|
+
...ngDevMode ? { debugName: "showTooltip" } : /* istanbul ignore next */ {},
|
|
131
|
+
transform: booleanAttribute
|
|
132
|
+
});
|
|
133
|
+
tooltipFormatter = input(null, ...ngDevMode ? [{ debugName: "tooltipFormatter" }] : /* istanbul ignore next */ []);
|
|
134
|
+
valueFormat = input("number", ...ngDevMode ? [{ debugName: "valueFormat" }] : /* istanbul ignore next */ []);
|
|
135
|
+
toolbar = input(true, {
|
|
136
|
+
...ngDevMode ? { debugName: "toolbar" } : /* istanbul ignore next */ {},
|
|
137
|
+
transform: booleanAttribute
|
|
138
|
+
});
|
|
139
|
+
loading = input(false, {
|
|
140
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
141
|
+
transform: booleanAttribute
|
|
142
|
+
});
|
|
143
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
144
|
+
dt = input(void 0, ...ngDevMode ? [{ debugName: "dt" }] : /* istanbul ignore next */ []);
|
|
145
|
+
pt = input(void 0, ...ngDevMode ? [{ debugName: "pt" }] : /* istanbul ignore next */ []);
|
|
146
|
+
ptOptions = input(void 0, ...ngDevMode ? [{ debugName: "ptOptions" }] : /* istanbul ignore next */ []);
|
|
147
|
+
unstyled = input(void 0, {
|
|
148
|
+
...ngDevMode ? { debugName: "unstyled" } : /* istanbul ignore next */ {},
|
|
149
|
+
transform: optionalBoolean
|
|
150
|
+
});
|
|
151
|
+
seriesToggle = output();
|
|
152
|
+
pointClick = output();
|
|
153
|
+
legendTemplate = contentChild(TxChartLegendTemplate, ...ngDevMode ? [{ debugName: "legendTemplate" }] : /* istanbul ignore next */ []);
|
|
154
|
+
tooltipTemplate = contentChild(TxChartTooltipTemplate, ...ngDevMode ? [{ debugName: "tooltipTemplate" }] : /* istanbul ignore next */ []);
|
|
155
|
+
frame = viewChild(TxChartFrame, ...ngDevMode ? [{ debugName: "frame" }] : /* istanbul ignore next */ []);
|
|
156
|
+
isUnstyled = injectUnstyled(this.unstyled);
|
|
157
|
+
passThrough = injectPassThrough("radarChart", this, this.pt, this.ptOptions);
|
|
158
|
+
tokenStyle = computed(() => toStyleObject(this.dt(), "--tx-chart"), ...ngDevMode ? [{ debugName: "tokenStyle" }] : /* istanbul ignore next */ []);
|
|
159
|
+
hostStyle = computed(() => ({
|
|
160
|
+
...this.tokenStyle(),
|
|
161
|
+
...this.passThrough().root?.style
|
|
162
|
+
}), ...ngDevMode ? [{ debugName: "hostStyle" }] : /* istanbul ignore next */ []);
|
|
163
|
+
entrance = injectChartEntrance();
|
|
164
|
+
morph = signal(false, ...ngDevMode ? [{ debugName: "morph" }] : /* istanbul ignore next */ []);
|
|
165
|
+
hidden = signal(/* @__PURE__ */ new Set(), ...ngDevMode ? [{ debugName: "hidden" }] : /* istanbul ignore next */ []);
|
|
166
|
+
focusedSeries = signal(null, ...ngDevMode ? [{ debugName: "focusedSeries" }] : /* istanbul ignore next */ []);
|
|
167
|
+
active = signal(null, ...ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []);
|
|
168
|
+
label = signal(DEFAULT_LABEL, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
169
|
+
intl = computed(() => this.locale.locale().intl, ...ngDevMode ? [{ debugName: "intl" }] : /* istanbul ignore next */ []);
|
|
170
|
+
list = computed(() => this.series() ?? [], ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
|
|
171
|
+
table = computed(() => normalizeSeries(this.list(), this.categories() ?? [], "category"), ...ngDevMode ? [{ debugName: "table" }] : /* istanbul ignore next */ []);
|
|
172
|
+
keys = computed(() => this.list().map((item, index) => `${index}:${item.name}`), ...ngDevMode ? [{ debugName: "keys" }] : /* istanbul ignore next */ []);
|
|
173
|
+
visibleIndexes = computed(() => this.keys().flatMap((key, index) => this.hidden().has(key) ? [] : [index]), ...ngDevMode ? [{ debugName: "visibleIndexes" }] : /* istanbul ignore next */ []);
|
|
174
|
+
isEmpty = computed(() => !this.list().length || !this.table().labels.length || !hasChartData(this.table().values), ...ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []);
|
|
175
|
+
legendShown = computed(() => this.showLegend() && this.list().length > 1, ...ngDevMode ? [{ debugName: "legendShown" }] : /* istanbul ignore next */ []);
|
|
176
|
+
size = linkedSignal(() => initialChartSize(this.height(), this.legendShown() ? this.legendPosition() : null, void 0, this.toolbar()), ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
177
|
+
domain = computed(() => {
|
|
178
|
+
const values = this.visibleIndexes().flatMap((index) => this.table().values[index]);
|
|
179
|
+
const [low, high] = extent(values) ?? [0, 1];
|
|
180
|
+
const nice = niceDomain(Math.min(0, low), Math.max(high, Math.min(0, low) + 1e-9), Math.max(1, this.rings()));
|
|
181
|
+
return [this.min() ?? nice[0], this.max() ?? nice[1]];
|
|
182
|
+
}, ...ngDevMode ? [{ debugName: "domain" }] : /* istanbul ignore next */ []);
|
|
183
|
+
fit = computed(() => {
|
|
184
|
+
const { width, height } = this.size();
|
|
185
|
+
const { fontSize, gap } = this.label();
|
|
186
|
+
return radarFit(width, height, this.table().labels, fontSize, gap);
|
|
187
|
+
}, ...ngDevMode ? [{ debugName: "fit" }] : /* istanbul ignore next */ []);
|
|
188
|
+
axes = computed(() => radarAxes(this.table().labels, this.fit(), this.label().gap), ...ngDevMode ? [{ debugName: "axes" }] : /* istanbul ignore next */ []);
|
|
189
|
+
ringShapes = computed(() => {
|
|
190
|
+
const domain = this.domain();
|
|
191
|
+
const fit = this.fit();
|
|
192
|
+
const count = this.table().labels.length;
|
|
193
|
+
const ticks = linearTicks(domain[0], domain[1], Math.max(1, this.rings())).filter((tick) => tick > domain[0] && tick <= domain[1]);
|
|
194
|
+
const format = tickFormatter(this.intl(), ticks, this.valueFormat());
|
|
195
|
+
return ticks.map((tick) => {
|
|
196
|
+
const radius = radarRadius(tick, domain, fit.radius);
|
|
197
|
+
const at = polar(fit.cx, fit.cy, radius, 0);
|
|
198
|
+
return {
|
|
199
|
+
value: tick,
|
|
200
|
+
radius,
|
|
201
|
+
path: radarShapePath(fit, radius, count, this.shape()),
|
|
202
|
+
label: format(tick),
|
|
203
|
+
labelX: at.x + TICK_GAP,
|
|
204
|
+
labelY: at.y
|
|
205
|
+
};
|
|
206
|
+
});
|
|
207
|
+
}, ...ngDevMode ? [{ debugName: "ringShapes" }] : /* istanbul ignore next */ []);
|
|
208
|
+
polygons = computed(() => {
|
|
209
|
+
const domain = this.domain();
|
|
210
|
+
const fit = this.fit();
|
|
211
|
+
return this.visibleIndexes().map((seriesIndex) => {
|
|
212
|
+
const points = radarPoints(this.table().values[seriesIndex], domain, fit);
|
|
213
|
+
return {
|
|
214
|
+
index: seriesIndex,
|
|
215
|
+
key: this.keys()[seriesIndex],
|
|
216
|
+
color: seriesColor(this.list()[seriesIndex].color, seriesIndex),
|
|
217
|
+
path: radarPolygonPath(points, fit),
|
|
218
|
+
points
|
|
219
|
+
};
|
|
220
|
+
});
|
|
221
|
+
}, ...ngDevMode ? [{ debugName: "polygons" }] : /* istanbul ignore next */ []);
|
|
222
|
+
activePoints = computed(() => {
|
|
223
|
+
const active = this.active();
|
|
224
|
+
if (!active) return [];
|
|
225
|
+
return this.polygons().flatMap((polygon) => {
|
|
226
|
+
const point = polygon.points[active.index];
|
|
227
|
+
return point ? [{
|
|
228
|
+
...point,
|
|
229
|
+
series: polygon.index,
|
|
230
|
+
color: polygon.color,
|
|
231
|
+
current: polygon.index === active.series
|
|
232
|
+
}] : [];
|
|
233
|
+
});
|
|
234
|
+
}, ...ngDevMode ? [{ debugName: "activePoints" }] : /* istanbul ignore next */ []);
|
|
235
|
+
valueFormatter = computed(() => chartNumberFormatter(this.intl(), this.valueFormat()), ...ngDevMode ? [{ debugName: "valueFormatter" }] : /* istanbul ignore next */ []);
|
|
236
|
+
formatValue = computed(() => {
|
|
237
|
+
const custom = this.tooltipFormatter();
|
|
238
|
+
const format = this.valueFormatter();
|
|
239
|
+
return (value, seriesIndex, dataPointIndex) => custom ? custom(value, {
|
|
240
|
+
seriesIndex,
|
|
241
|
+
dataPointIndex
|
|
242
|
+
}) : format(value);
|
|
243
|
+
}, ...ngDevMode ? [{ debugName: "formatValue" }] : /* istanbul ignore next */ []);
|
|
244
|
+
legendItems = computed(() => {
|
|
245
|
+
const stat = this.legendVariant() === "stat";
|
|
246
|
+
const active = this.active();
|
|
247
|
+
const format = this.formatValue();
|
|
248
|
+
return this.list().map((item, index) => {
|
|
249
|
+
const values = this.table().values[index] ?? [];
|
|
250
|
+
const known = values.filter((value) => value !== null);
|
|
251
|
+
const raw = active ? values[active.index] : known.length ? known.reduce((sum, value) => sum + value, 0) / known.length : null;
|
|
252
|
+
return {
|
|
253
|
+
key: this.keys()[index],
|
|
254
|
+
label: item.name,
|
|
255
|
+
color: seriesColor(item.color, index),
|
|
256
|
+
hidden: this.hidden().has(this.keys()[index]),
|
|
257
|
+
...stat ? {
|
|
258
|
+
value: raw === null || raw === void 0 ? "—" : format(raw, index, active?.index ?? -1),
|
|
259
|
+
caption: active ? this.table().labels[active.index] : this.translations().chartAverage
|
|
260
|
+
} : {}
|
|
261
|
+
};
|
|
262
|
+
});
|
|
263
|
+
}, ...ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []);
|
|
264
|
+
tooltip = computed(() => {
|
|
265
|
+
const active = this.active();
|
|
266
|
+
if (!active || !this.showTooltip() || this.isEmpty() || this.legendVariant() === "stat") return null;
|
|
267
|
+
const format = this.formatValue();
|
|
268
|
+
const rows = this.visibleIndexes().flatMap((seriesIndex) => {
|
|
269
|
+
const raw = this.table().values[seriesIndex][active.index];
|
|
270
|
+
if (raw === null) return [];
|
|
271
|
+
return [{
|
|
272
|
+
label: this.list()[seriesIndex].name,
|
|
273
|
+
value: format(raw, seriesIndex, active.index),
|
|
274
|
+
color: seriesColor(this.list()[seriesIndex].color, seriesIndex),
|
|
275
|
+
raw,
|
|
276
|
+
seriesIndex,
|
|
277
|
+
active: seriesIndex === active.series
|
|
278
|
+
}];
|
|
279
|
+
});
|
|
280
|
+
if (!rows.length) return null;
|
|
281
|
+
const fit = this.fit();
|
|
282
|
+
const angle = radarAngle(active.index, this.table().labels.length);
|
|
283
|
+
const reach = Math.max(...this.activePoints().map((point) => Math.hypot(point.x - fit.cx, point.y - fit.cy)), 0) + 6;
|
|
284
|
+
const at = polar(fit.cx, fit.cy, reach, angle);
|
|
285
|
+
const sin = Math.sin(angle);
|
|
286
|
+
const placement = Math.abs(sin) >= Math.SQRT1_2 ? sin > 0 ? "right" : "left" : Math.cos(angle) > 0 ? "top" : "bottom";
|
|
287
|
+
return {
|
|
288
|
+
title: this.table().labels[active.index] ?? "",
|
|
289
|
+
rows,
|
|
290
|
+
index: active.index,
|
|
291
|
+
x: at.x,
|
|
292
|
+
y: at.y,
|
|
293
|
+
placement
|
|
294
|
+
};
|
|
295
|
+
}, ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
296
|
+
summary = computed(() => {
|
|
297
|
+
const t = this.translations();
|
|
298
|
+
const values = this.table().values.flat().filter((value) => value !== null);
|
|
299
|
+
const range = extent(values);
|
|
300
|
+
const format = this.valueFormatter();
|
|
301
|
+
const text = chartSummary(t, this.intl(), t.chartRadar, this.list().length, this.table().labels.length, range ? [format(range[0]), format(range[1])] : null);
|
|
302
|
+
return this.ariaLabel() ? `${this.ariaLabel()}. ${text}` : text;
|
|
303
|
+
}, ...ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []);
|
|
304
|
+
dataTable = computed(() => chartTable(this.table().labels, this.list().map((item, index) => ({
|
|
305
|
+
name: item.name,
|
|
306
|
+
values: this.table().values[index]
|
|
307
|
+
})), this.valueFormatter()), ...ngDevMode ? [{ debugName: "dataTable" }] : /* istanbul ignore next */ []);
|
|
308
|
+
constructor() {
|
|
309
|
+
afterNextRender(() => setTimeout(() => this.morph.set(true), 120));
|
|
310
|
+
afterRenderEffect(() => {
|
|
311
|
+
this.dt();
|
|
312
|
+
this.readLabel();
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
onPointer(event) {
|
|
316
|
+
if (event.type === "leave") {
|
|
317
|
+
this.active.set(null);
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
const fit = this.fit();
|
|
321
|
+
const index = radarAxisAt(event.x, event.y, fit, this.table().labels.length, this.label().gap + 4);
|
|
322
|
+
if (index < 0) {
|
|
323
|
+
this.active.set(null);
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
const series = this.nearestSeries(index, Math.hypot(event.x - fit.cx, event.y - fit.cy));
|
|
327
|
+
this.active.set({
|
|
328
|
+
index,
|
|
329
|
+
series,
|
|
330
|
+
pointerY: event.y,
|
|
331
|
+
keyboard: false
|
|
332
|
+
});
|
|
333
|
+
if (event.type === "click" && series >= 0) this.pointClick.emit({
|
|
334
|
+
seriesIndex: series,
|
|
335
|
+
dataPointIndex: index,
|
|
336
|
+
value: this.table().values[series][index],
|
|
337
|
+
category: this.table().labels[index] ?? ""
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
onNavigate(event) {
|
|
341
|
+
if (event.key === "Escape") {
|
|
342
|
+
this.active.set(null);
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
const count = this.table().labels.length;
|
|
346
|
+
const current = this.active();
|
|
347
|
+
const visible = this.visibleIndexes();
|
|
348
|
+
let index = current?.index ?? -1;
|
|
349
|
+
let series = current?.series ?? visible[0] ?? -1;
|
|
350
|
+
if (event.key === "ArrowUp" || event.key === "ArrowDown") {
|
|
351
|
+
series = cycleIndex(series, event.key === "ArrowDown" ? 1 : -1, visible);
|
|
352
|
+
index = Math.max(0, index);
|
|
353
|
+
} else index = stepIndex(event.key, index, count);
|
|
354
|
+
if (index < 0 || series < 0) return;
|
|
355
|
+
this.active.set({
|
|
356
|
+
index,
|
|
357
|
+
series,
|
|
358
|
+
pointerY: null,
|
|
359
|
+
keyboard: true
|
|
360
|
+
});
|
|
361
|
+
const value = this.table().values[series][index];
|
|
362
|
+
this.frame()?.announce(formatMessage(this.translations().chartPoint, {
|
|
363
|
+
series: this.list()[series].name,
|
|
364
|
+
category: this.table().labels[index] ?? "",
|
|
365
|
+
value: value === null ? "—" : this.formatValue()(value, series, index)
|
|
366
|
+
}));
|
|
367
|
+
}
|
|
368
|
+
onLegendToggle(key) {
|
|
369
|
+
const index = this.keys().indexOf(key);
|
|
370
|
+
this.hidden.update((keys) => toggleKey(keys, key));
|
|
371
|
+
this.seriesToggle.emit({
|
|
372
|
+
seriesIndex: index,
|
|
373
|
+
name: this.list()[index]?.name ?? "",
|
|
374
|
+
hidden: this.hidden().has(key)
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
onLegendHover(key) {
|
|
378
|
+
const index = key === null ? -1 : this.keys().indexOf(key);
|
|
379
|
+
this.focusedSeries.set(index >= 0 && !this.hidden().has(key ?? "") ? index : null);
|
|
380
|
+
}
|
|
381
|
+
nearestSeries(index, distance) {
|
|
382
|
+
const fit = this.fit();
|
|
383
|
+
const domain = this.domain();
|
|
384
|
+
let best = this.visibleIndexes()[0] ?? -1;
|
|
385
|
+
let gap = Infinity;
|
|
386
|
+
for (const seriesIndex of this.visibleIndexes()) {
|
|
387
|
+
const value = this.table().values[seriesIndex][index];
|
|
388
|
+
if (value === null) continue;
|
|
389
|
+
const next = Math.abs(radarRadius(value, domain, fit.radius) - distance);
|
|
390
|
+
if (next < gap) {
|
|
391
|
+
gap = next;
|
|
392
|
+
best = seriesIndex;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
return best;
|
|
396
|
+
}
|
|
397
|
+
readLabel() {
|
|
398
|
+
const element = this.host.nativeElement;
|
|
399
|
+
const next = {
|
|
400
|
+
fontSize: readTokenNumber(element, "--tx-chart-radar-label-font-size", DEFAULT_LABEL.fontSize),
|
|
401
|
+
gap: readTokenNumber(element, "--tx-chart-radar-label-gap", DEFAULT_LABEL.gap)
|
|
402
|
+
};
|
|
403
|
+
const current = this.label();
|
|
404
|
+
if (current.fontSize !== next.fontSize || current.gap !== next.gap) this.label.set(next);
|
|
405
|
+
}
|
|
406
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
407
|
+
minVersion: "12.0.0",
|
|
408
|
+
version: "22.2.3",
|
|
409
|
+
ngImport: i0,
|
|
410
|
+
type: TxRadarChart,
|
|
411
|
+
deps: [],
|
|
412
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
413
|
+
});
|
|
414
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
415
|
+
minVersion: "17.0.0",
|
|
416
|
+
version: "22.2.3",
|
|
417
|
+
type: TxRadarChart,
|
|
418
|
+
isStandalone: true,
|
|
419
|
+
selector: "tx-radar-chart",
|
|
420
|
+
inputs: {
|
|
421
|
+
series: {
|
|
422
|
+
classPropertyName: "series",
|
|
423
|
+
publicName: "series",
|
|
424
|
+
isSignal: true,
|
|
425
|
+
isRequired: false,
|
|
426
|
+
transformFunction: null
|
|
427
|
+
},
|
|
428
|
+
categories: {
|
|
429
|
+
classPropertyName: "categories",
|
|
430
|
+
publicName: "categories",
|
|
431
|
+
isSignal: true,
|
|
432
|
+
isRequired: false,
|
|
433
|
+
transformFunction: null
|
|
434
|
+
},
|
|
435
|
+
height: {
|
|
436
|
+
classPropertyName: "height",
|
|
437
|
+
publicName: "height",
|
|
438
|
+
isSignal: true,
|
|
439
|
+
isRequired: false,
|
|
440
|
+
transformFunction: null
|
|
441
|
+
},
|
|
442
|
+
shape: {
|
|
443
|
+
classPropertyName: "shape",
|
|
444
|
+
publicName: "shape",
|
|
445
|
+
isSignal: true,
|
|
446
|
+
isRequired: false,
|
|
447
|
+
transformFunction: null
|
|
448
|
+
},
|
|
449
|
+
min: {
|
|
450
|
+
classPropertyName: "min",
|
|
451
|
+
publicName: "min",
|
|
452
|
+
isSignal: true,
|
|
453
|
+
isRequired: false,
|
|
454
|
+
transformFunction: null
|
|
455
|
+
},
|
|
456
|
+
max: {
|
|
457
|
+
classPropertyName: "max",
|
|
458
|
+
publicName: "max",
|
|
459
|
+
isSignal: true,
|
|
460
|
+
isRequired: false,
|
|
461
|
+
transformFunction: null
|
|
462
|
+
},
|
|
463
|
+
rings: {
|
|
464
|
+
classPropertyName: "rings",
|
|
465
|
+
publicName: "rings",
|
|
466
|
+
isSignal: true,
|
|
467
|
+
isRequired: false,
|
|
468
|
+
transformFunction: null
|
|
469
|
+
},
|
|
470
|
+
fill: {
|
|
471
|
+
classPropertyName: "fill",
|
|
472
|
+
publicName: "fill",
|
|
473
|
+
isSignal: true,
|
|
474
|
+
isRequired: false,
|
|
475
|
+
transformFunction: null
|
|
476
|
+
},
|
|
477
|
+
markers: {
|
|
478
|
+
classPropertyName: "markers",
|
|
479
|
+
publicName: "markers",
|
|
480
|
+
isSignal: true,
|
|
481
|
+
isRequired: false,
|
|
482
|
+
transformFunction: null
|
|
483
|
+
},
|
|
484
|
+
showTicks: {
|
|
485
|
+
classPropertyName: "showTicks",
|
|
486
|
+
publicName: "showTicks",
|
|
487
|
+
isSignal: true,
|
|
488
|
+
isRequired: false,
|
|
489
|
+
transformFunction: null
|
|
490
|
+
},
|
|
491
|
+
showLegend: {
|
|
492
|
+
classPropertyName: "showLegend",
|
|
493
|
+
publicName: "showLegend",
|
|
494
|
+
isSignal: true,
|
|
495
|
+
isRequired: false,
|
|
496
|
+
transformFunction: null
|
|
497
|
+
},
|
|
498
|
+
legendPosition: {
|
|
499
|
+
classPropertyName: "legendPosition",
|
|
500
|
+
publicName: "legendPosition",
|
|
501
|
+
isSignal: true,
|
|
502
|
+
isRequired: false,
|
|
503
|
+
transformFunction: null
|
|
504
|
+
},
|
|
505
|
+
legendAlign: {
|
|
506
|
+
classPropertyName: "legendAlign",
|
|
507
|
+
publicName: "legendAlign",
|
|
508
|
+
isSignal: true,
|
|
509
|
+
isRequired: false,
|
|
510
|
+
transformFunction: null
|
|
511
|
+
},
|
|
512
|
+
legendVariant: {
|
|
513
|
+
classPropertyName: "legendVariant",
|
|
514
|
+
publicName: "legendVariant",
|
|
515
|
+
isSignal: true,
|
|
516
|
+
isRequired: false,
|
|
517
|
+
transformFunction: null
|
|
518
|
+
},
|
|
519
|
+
showTooltip: {
|
|
520
|
+
classPropertyName: "showTooltip",
|
|
521
|
+
publicName: "showTooltip",
|
|
522
|
+
isSignal: true,
|
|
523
|
+
isRequired: false,
|
|
524
|
+
transformFunction: null
|
|
525
|
+
},
|
|
526
|
+
tooltipFormatter: {
|
|
527
|
+
classPropertyName: "tooltipFormatter",
|
|
528
|
+
publicName: "tooltipFormatter",
|
|
529
|
+
isSignal: true,
|
|
530
|
+
isRequired: false,
|
|
531
|
+
transformFunction: null
|
|
532
|
+
},
|
|
533
|
+
valueFormat: {
|
|
534
|
+
classPropertyName: "valueFormat",
|
|
535
|
+
publicName: "valueFormat",
|
|
536
|
+
isSignal: true,
|
|
537
|
+
isRequired: false,
|
|
538
|
+
transformFunction: null
|
|
539
|
+
},
|
|
540
|
+
toolbar: {
|
|
541
|
+
classPropertyName: "toolbar",
|
|
542
|
+
publicName: "toolbar",
|
|
543
|
+
isSignal: true,
|
|
544
|
+
isRequired: false,
|
|
545
|
+
transformFunction: null
|
|
546
|
+
},
|
|
547
|
+
loading: {
|
|
548
|
+
classPropertyName: "loading",
|
|
549
|
+
publicName: "loading",
|
|
550
|
+
isSignal: true,
|
|
551
|
+
isRequired: false,
|
|
552
|
+
transformFunction: null
|
|
553
|
+
},
|
|
554
|
+
ariaLabel: {
|
|
555
|
+
classPropertyName: "ariaLabel",
|
|
556
|
+
publicName: "ariaLabel",
|
|
557
|
+
isSignal: true,
|
|
558
|
+
isRequired: false,
|
|
559
|
+
transformFunction: null
|
|
560
|
+
},
|
|
561
|
+
dt: {
|
|
562
|
+
classPropertyName: "dt",
|
|
563
|
+
publicName: "dt",
|
|
564
|
+
isSignal: true,
|
|
565
|
+
isRequired: false,
|
|
566
|
+
transformFunction: null
|
|
567
|
+
},
|
|
568
|
+
pt: {
|
|
569
|
+
classPropertyName: "pt",
|
|
570
|
+
publicName: "pt",
|
|
571
|
+
isSignal: true,
|
|
572
|
+
isRequired: false,
|
|
573
|
+
transformFunction: null
|
|
574
|
+
},
|
|
575
|
+
ptOptions: {
|
|
576
|
+
classPropertyName: "ptOptions",
|
|
577
|
+
publicName: "ptOptions",
|
|
578
|
+
isSignal: true,
|
|
579
|
+
isRequired: false,
|
|
580
|
+
transformFunction: null
|
|
581
|
+
},
|
|
582
|
+
unstyled: {
|
|
583
|
+
classPropertyName: "unstyled",
|
|
584
|
+
publicName: "unstyled",
|
|
585
|
+
isSignal: true,
|
|
586
|
+
isRequired: false,
|
|
587
|
+
transformFunction: null
|
|
588
|
+
}
|
|
589
|
+
},
|
|
590
|
+
outputs: {
|
|
591
|
+
seriesToggle: "seriesToggle",
|
|
592
|
+
pointClick: "pointClick"
|
|
593
|
+
},
|
|
594
|
+
host: {
|
|
595
|
+
properties: {
|
|
596
|
+
"class": "passThrough().root?.class",
|
|
597
|
+
"style": "hostStyle()",
|
|
598
|
+
"attr.data-styled": "!isUnstyled() || null",
|
|
599
|
+
"attr.data-shape": "shape()",
|
|
600
|
+
"class.tx-radar-chart--fill": "typeof height() === \"string\"",
|
|
601
|
+
"class.tx-radar-chart--entering": "entrance.active()",
|
|
602
|
+
"class.tx-radar-chart--morph": "morph()",
|
|
603
|
+
"class.tx-radar-chart--focused": "focusedSeries() !== null",
|
|
604
|
+
"class.tx-radar-chart--active": "active() !== null"
|
|
605
|
+
},
|
|
606
|
+
classAttribute: "tx-radar-chart"
|
|
607
|
+
},
|
|
608
|
+
queries: [{
|
|
609
|
+
propertyName: "legendTemplate",
|
|
610
|
+
first: true,
|
|
611
|
+
predicate: TxChartLegendTemplate,
|
|
612
|
+
descendants: true,
|
|
613
|
+
isSignal: true
|
|
614
|
+
}, {
|
|
615
|
+
propertyName: "tooltipTemplate",
|
|
616
|
+
first: true,
|
|
617
|
+
predicate: TxChartTooltipTemplate,
|
|
618
|
+
descendants: true,
|
|
619
|
+
isSignal: true
|
|
620
|
+
}],
|
|
621
|
+
viewQueries: [{
|
|
622
|
+
propertyName: "frame",
|
|
623
|
+
first: true,
|
|
624
|
+
predicate: TxChartFrame,
|
|
625
|
+
descendants: true,
|
|
626
|
+
isSignal: true
|
|
627
|
+
}],
|
|
628
|
+
ngImport: i0,
|
|
629
|
+
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-line\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g class=\"tx-radar-chart__grid\" [class]=\"passThrough().grid?.class\" [style]=\"passThrough().grid?.style\">\n @for (ring of ringShapes(); track ring.value) {\n <svg:path class=\"tx-radar-chart__ring\" [class]=\"passThrough().ring?.class\" [style]=\"passThrough().ring?.style\" [attr.d]=\"ring.path\" />\n }\n @for (axis of axes(); track axis.index) {\n <svg:line\n class=\"tx-radar-chart__axis-line\"\n [class.tx-radar-chart__axis-line--active]=\"active()?.index === axis.index\"\n [class]=\"passThrough().axisLine?.class\"\n [style]=\"passThrough().axisLine?.style\"\n [attr.x1]=\"fit().cx\"\n [attr.y1]=\"fit().cy\"\n [attr.x2]=\"axis.x\"\n [attr.y2]=\"axis.y\"\n />\n }\n </svg:g>\n @for (polygon of polygons(); track polygon.key) {\n <svg:g\n class=\"tx-radar-chart__series\"\n [class.tx-radar-chart__series--focused]=\"focusedSeries() === polygon.index\"\n [class.tx-radar-chart__series--current]=\"active()?.series === polygon.index\"\n [class]=\"passThrough().series?.class\"\n [style]=\"passThrough().series?.style\"\n [style.--tx-radar-chart-color]=\"polygon.color\"\n [style.transform-origin]=\"fit().cx + 'px ' + fit().cy + 'px'\"\n [attr.data-series]=\"polygon.index\"\n >\n @if (fill()) {\n <svg:path class=\"tx-radar-chart__area\" [class]=\"passThrough().area?.class\" [style]=\"passThrough().area?.style\" [attr.d]=\"polygon.path\" />\n }\n <svg:path class=\"tx-radar-chart__line\" [class]=\"passThrough().line?.class\" [style]=\"passThrough().line?.style\" [attr.d]=\"polygon.path\" />\n @if (markers()) {\n @for (point of polygon.points; track $index) {\n @if (point) {\n <svg:circle\n class=\"tx-radar-chart__point\"\n [class]=\"passThrough().marker?.class\"\n [style]=\"passThrough().marker?.style\"\n [attr.cx]=\"point.x\"\n [attr.cy]=\"point.y\"\n />\n }\n }\n }\n </svg:g>\n }\n @for (point of activePoints(); track point.series) {\n @if (point.current) {\n <svg:circle class=\"tx-radar-chart__halo\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\" [style.fill]=\"point.color\" />\n }\n <svg:circle class=\"tx-radar-chart__marker\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\" [style.fill]=\"point.color\" />\n }\n <svg:g class=\"tx-radar-chart__labels\" aria-hidden=\"true\">\n @for (axis of axes(); track axis.index) {\n <svg:text\n class=\"tx-radar-chart__label\"\n [class.tx-radar-chart__label--active]=\"active()?.index === axis.index\"\n [class]=\"passThrough().axisLabel?.class\"\n [style]=\"passThrough().axisLabel?.style\"\n [attr.x]=\"axis.labelX\"\n [attr.y]=\"axis.labelY\"\n [attr.text-anchor]=\"axis.anchor\"\n [attr.dominant-baseline]=\"axis.baseline\"\n >\n {{ axis.label }}\n </svg:text>\n }\n @if (showTicks()) {\n @for (ring of ringShapes(); track ring.value) {\n <svg:text class=\"tx-radar-chart__tick\" [attr.x]=\"ring.labelX\" [attr.y]=\"ring.labelY\" dominant-baseline=\"middle\">{{ ring.label }}</svg:text>\n }\n }\n </svg:g>\n</tx-chart-frame>\n",
|
|
630
|
+
styles: [":host{display:block;min-width:0}:host(.tx-radar-chart--fill){height:100%}.tx-radar-chart__ring,.tx-radar-chart__line{fill:none}.tx-radar-chart__ring,.tx-radar-chart__axis-line{stroke:currentColor;stroke-opacity:.2}.tx-radar-chart__area{fill:var(--tx-radar-chart-color);fill-opacity:.2}.tx-radar-chart__line{stroke:var(--tx-radar-chart-color);stroke-linejoin:round}.tx-radar-chart__point{fill:var(--tx-radar-chart-color)}.tx-radar-chart__grid,.tx-radar-chart__labels,.tx-radar-chart__series,.tx-radar-chart__marker,.tx-radar-chart__halo{pointer-events:none}.tx-radar-chart__series{transform-box:view-box}:host([data-styled]) .tx-radar-chart__ring,:host([data-styled]) .tx-radar-chart__axis-line{stroke:var(--tx-chart-grid-color);stroke-opacity:1;stroke-width:var(--tx-chart-grid-width);stroke-dasharray:var(--tx-chart-grid-dash)}:host([data-styled]) .tx-radar-chart__axis-line{transition:stroke var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-radar-chart__axis-line--active{stroke:var(--tx-chart-crosshair-color);stroke-dasharray:var(--tx-chart-crosshair-dash)}:host([data-styled]) .tx-radar-chart__area{fill-opacity:var(--tx-chart-radar-fill-opacity);transition:fill-opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-radar-chart__series--current .tx-radar-chart__area{fill-opacity:var(--tx-chart-radar-active-fill-opacity)}:host([data-styled]) .tx-radar-chart__line{stroke-width:var(--tx-chart-radar-stroke-width)}:host([data-styled]) .tx-radar-chart__point{r:var(--tx-chart-radar-point-radius);stroke:var(--tx-chart-marker-stroke-color);stroke-width:var(--tx-chart-marker-stroke-width)}:host([data-styled]) .tx-radar-chart__marker{r:var(--tx-chart-marker-radius);stroke:var(--tx-chart-marker-stroke-color);stroke-width:var(--tx-chart-marker-stroke-width)}:host([data-styled]) .tx-radar-chart__halo{r:var(--tx-chart-marker-halo-radius);opacity:var(--tx-chart-marker-halo-opacity)}:host([data-styled]) .tx-radar-chart__label{fill:var(--tx-chart-radar-label-color);font-size:var(--tx-chart-radar-label-font-size);font-weight:var(--tx-chart-radar-label-font-weight);transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-radar-chart__label--active{fill:var(--tx-chart-radar-active-label-color)}:host([data-styled]) .tx-radar-chart__tick{fill:var(--tx-chart-radar-tick-color);font-size:var(--tx-chart-radar-tick-font-size);font-variant-numeric:tabular-nums}:host([data-styled]) .tx-radar-chart__series{transition:opacity var(--tx-chart-motion-update-duration) ease}:host(:not([data-styled])) .tx-radar-chart__point{r:3px}:host([data-styled].tx-radar-chart--focused) .tx-radar-chart__series:not(.tx-radar-chart__series--focused){opacity:var(--tx-chart-radar-dimmed-opacity)}:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__area,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__line,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__ring{transition:d var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),fill-opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__point{transition:cx var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),cy var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-radar-chart--entering) .tx-radar-chart__series{animation:tx-radar-chart-grow var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both}@keyframes tx-radar-chart-grow{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-radar-chart__series,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__area,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__line,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__ring,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__point{transition:none;animation:none}}\n"],
|
|
631
|
+
dependencies: [{
|
|
632
|
+
kind: "component",
|
|
633
|
+
type: TxChartFrame,
|
|
634
|
+
selector: "tx-chart-frame",
|
|
635
|
+
inputs: [
|
|
636
|
+
"height",
|
|
637
|
+
"size",
|
|
638
|
+
"legendItems",
|
|
639
|
+
"showLegend",
|
|
640
|
+
"legendPosition",
|
|
641
|
+
"legendAlign",
|
|
642
|
+
"legendVariant",
|
|
643
|
+
"legendToggle",
|
|
644
|
+
"legendTemplate",
|
|
645
|
+
"empty",
|
|
646
|
+
"loading",
|
|
647
|
+
"emptyIcon",
|
|
648
|
+
"summary",
|
|
649
|
+
"table",
|
|
650
|
+
"tooltip",
|
|
651
|
+
"tooltipTemplate",
|
|
652
|
+
"tooltipPlacement",
|
|
653
|
+
"panelStyle",
|
|
654
|
+
"parts",
|
|
655
|
+
"styled",
|
|
656
|
+
"interactive",
|
|
657
|
+
"actionKeys",
|
|
658
|
+
"zoomable",
|
|
659
|
+
"zoomedIn",
|
|
660
|
+
"plotHeight",
|
|
661
|
+
"toolbar",
|
|
662
|
+
"exportName"
|
|
663
|
+
],
|
|
664
|
+
outputs: [
|
|
665
|
+
"sizeChange",
|
|
666
|
+
"pointer",
|
|
667
|
+
"navigate",
|
|
668
|
+
"legendToggled",
|
|
669
|
+
"legendHovered",
|
|
670
|
+
"tooltipClosed",
|
|
671
|
+
"zoomed",
|
|
672
|
+
"panned",
|
|
673
|
+
"zoomReset"
|
|
674
|
+
]
|
|
675
|
+
}],
|
|
676
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
677
|
+
});
|
|
678
|
+
};
|
|
679
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
680
|
+
minVersion: "12.0.0",
|
|
681
|
+
version: "22.2.3",
|
|
682
|
+
ngImport: i0,
|
|
683
|
+
type: TxRadarChart,
|
|
684
|
+
decorators: [{
|
|
685
|
+
type: Component,
|
|
686
|
+
args: [{
|
|
687
|
+
selector: "tx-radar-chart",
|
|
688
|
+
imports: [TxChartFrame],
|
|
689
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
690
|
+
host: {
|
|
691
|
+
class: "tx-radar-chart",
|
|
692
|
+
"[class]": "passThrough().root?.class",
|
|
693
|
+
"[style]": "hostStyle()",
|
|
694
|
+
"[attr.data-styled]": "!isUnstyled() || null",
|
|
695
|
+
"[attr.data-shape]": "shape()",
|
|
696
|
+
"[class.tx-radar-chart--fill]": "typeof height() === \"string\"",
|
|
697
|
+
"[class.tx-radar-chart--entering]": "entrance.active()",
|
|
698
|
+
"[class.tx-radar-chart--morph]": "morph()",
|
|
699
|
+
"[class.tx-radar-chart--focused]": "focusedSeries() !== null",
|
|
700
|
+
"[class.tx-radar-chart--active]": "active() !== null"
|
|
701
|
+
},
|
|
702
|
+
template: "<tx-chart-frame\n [height]=\"height()\"\n [(size)]=\"size\"\n [legendItems]=\"legendItems()\"\n [showLegend]=\"legendShown()\"\n [legendPosition]=\"legendPosition()\"\n [legendAlign]=\"legendAlign()\"\n [legendVariant]=\"legendVariant()\"\n [legendTemplate]=\"legendTemplate()?.template\"\n [empty]=\"isEmpty()\"\n [loading]=\"loading()\"\n [toolbar]=\"toolbar()\"\n [exportName]=\"ariaLabel()\"\n emptyIcon=\"chart-line\"\n [summary]=\"summary()\"\n [table]=\"dataTable()\"\n [tooltip]=\"tooltip()\"\n [tooltipTemplate]=\"tooltipTemplate()?.template\"\n [panelStyle]=\"tokenStyle()\"\n [parts]=\"passThrough()\"\n [styled]=\"!isUnstyled()\"\n (pointer)=\"onPointer($event)\"\n (navigate)=\"onNavigate($event)\"\n (legendToggled)=\"onLegendToggle($event)\"\n (legendHovered)=\"onLegendHover($event)\"\n (tooltipClosed)=\"active.set(null)\"\n>\n <svg:g class=\"tx-radar-chart__grid\" [class]=\"passThrough().grid?.class\" [style]=\"passThrough().grid?.style\">\n @for (ring of ringShapes(); track ring.value) {\n <svg:path class=\"tx-radar-chart__ring\" [class]=\"passThrough().ring?.class\" [style]=\"passThrough().ring?.style\" [attr.d]=\"ring.path\" />\n }\n @for (axis of axes(); track axis.index) {\n <svg:line\n class=\"tx-radar-chart__axis-line\"\n [class.tx-radar-chart__axis-line--active]=\"active()?.index === axis.index\"\n [class]=\"passThrough().axisLine?.class\"\n [style]=\"passThrough().axisLine?.style\"\n [attr.x1]=\"fit().cx\"\n [attr.y1]=\"fit().cy\"\n [attr.x2]=\"axis.x\"\n [attr.y2]=\"axis.y\"\n />\n }\n </svg:g>\n @for (polygon of polygons(); track polygon.key) {\n <svg:g\n class=\"tx-radar-chart__series\"\n [class.tx-radar-chart__series--focused]=\"focusedSeries() === polygon.index\"\n [class.tx-radar-chart__series--current]=\"active()?.series === polygon.index\"\n [class]=\"passThrough().series?.class\"\n [style]=\"passThrough().series?.style\"\n [style.--tx-radar-chart-color]=\"polygon.color\"\n [style.transform-origin]=\"fit().cx + 'px ' + fit().cy + 'px'\"\n [attr.data-series]=\"polygon.index\"\n >\n @if (fill()) {\n <svg:path class=\"tx-radar-chart__area\" [class]=\"passThrough().area?.class\" [style]=\"passThrough().area?.style\" [attr.d]=\"polygon.path\" />\n }\n <svg:path class=\"tx-radar-chart__line\" [class]=\"passThrough().line?.class\" [style]=\"passThrough().line?.style\" [attr.d]=\"polygon.path\" />\n @if (markers()) {\n @for (point of polygon.points; track $index) {\n @if (point) {\n <svg:circle\n class=\"tx-radar-chart__point\"\n [class]=\"passThrough().marker?.class\"\n [style]=\"passThrough().marker?.style\"\n [attr.cx]=\"point.x\"\n [attr.cy]=\"point.y\"\n />\n }\n }\n }\n </svg:g>\n }\n @for (point of activePoints(); track point.series) {\n @if (point.current) {\n <svg:circle class=\"tx-radar-chart__halo\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\" [style.fill]=\"point.color\" />\n }\n <svg:circle class=\"tx-radar-chart__marker\" [attr.cx]=\"point.x\" [attr.cy]=\"point.y\" [style.fill]=\"point.color\" />\n }\n <svg:g class=\"tx-radar-chart__labels\" aria-hidden=\"true\">\n @for (axis of axes(); track axis.index) {\n <svg:text\n class=\"tx-radar-chart__label\"\n [class.tx-radar-chart__label--active]=\"active()?.index === axis.index\"\n [class]=\"passThrough().axisLabel?.class\"\n [style]=\"passThrough().axisLabel?.style\"\n [attr.x]=\"axis.labelX\"\n [attr.y]=\"axis.labelY\"\n [attr.text-anchor]=\"axis.anchor\"\n [attr.dominant-baseline]=\"axis.baseline\"\n >\n {{ axis.label }}\n </svg:text>\n }\n @if (showTicks()) {\n @for (ring of ringShapes(); track ring.value) {\n <svg:text class=\"tx-radar-chart__tick\" [attr.x]=\"ring.labelX\" [attr.y]=\"ring.labelY\" dominant-baseline=\"middle\">{{ ring.label }}</svg:text>\n }\n }\n </svg:g>\n</tx-chart-frame>\n",
|
|
703
|
+
styles: [":host{display:block;min-width:0}:host(.tx-radar-chart--fill){height:100%}.tx-radar-chart__ring,.tx-radar-chart__line{fill:none}.tx-radar-chart__ring,.tx-radar-chart__axis-line{stroke:currentColor;stroke-opacity:.2}.tx-radar-chart__area{fill:var(--tx-radar-chart-color);fill-opacity:.2}.tx-radar-chart__line{stroke:var(--tx-radar-chart-color);stroke-linejoin:round}.tx-radar-chart__point{fill:var(--tx-radar-chart-color)}.tx-radar-chart__grid,.tx-radar-chart__labels,.tx-radar-chart__series,.tx-radar-chart__marker,.tx-radar-chart__halo{pointer-events:none}.tx-radar-chart__series{transform-box:view-box}:host([data-styled]) .tx-radar-chart__ring,:host([data-styled]) .tx-radar-chart__axis-line{stroke:var(--tx-chart-grid-color);stroke-opacity:1;stroke-width:var(--tx-chart-grid-width);stroke-dasharray:var(--tx-chart-grid-dash)}:host([data-styled]) .tx-radar-chart__axis-line{transition:stroke var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-radar-chart__axis-line--active{stroke:var(--tx-chart-crosshair-color);stroke-dasharray:var(--tx-chart-crosshair-dash)}:host([data-styled]) .tx-radar-chart__area{fill-opacity:var(--tx-chart-radar-fill-opacity);transition:fill-opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-radar-chart__series--current .tx-radar-chart__area{fill-opacity:var(--tx-chart-radar-active-fill-opacity)}:host([data-styled]) .tx-radar-chart__line{stroke-width:var(--tx-chart-radar-stroke-width)}:host([data-styled]) .tx-radar-chart__point{r:var(--tx-chart-radar-point-radius);stroke:var(--tx-chart-marker-stroke-color);stroke-width:var(--tx-chart-marker-stroke-width)}:host([data-styled]) .tx-radar-chart__marker{r:var(--tx-chart-marker-radius);stroke:var(--tx-chart-marker-stroke-color);stroke-width:var(--tx-chart-marker-stroke-width)}:host([data-styled]) .tx-radar-chart__halo{r:var(--tx-chart-marker-halo-radius);opacity:var(--tx-chart-marker-halo-opacity)}:host([data-styled]) .tx-radar-chart__label{fill:var(--tx-chart-radar-label-color);font-size:var(--tx-chart-radar-label-font-size);font-weight:var(--tx-chart-radar-label-font-weight);transition:fill var(--tx-chart-motion-hover-duration) ease}:host([data-styled]) .tx-radar-chart__label--active{fill:var(--tx-chart-radar-active-label-color)}:host([data-styled]) .tx-radar-chart__tick{fill:var(--tx-chart-radar-tick-color);font-size:var(--tx-chart-radar-tick-font-size);font-variant-numeric:tabular-nums}:host([data-styled]) .tx-radar-chart__series{transition:opacity var(--tx-chart-motion-update-duration) ease}:host(:not([data-styled])) .tx-radar-chart__point{r:3px}:host([data-styled].tx-radar-chart--focused) .tx-radar-chart__series:not(.tx-radar-chart__series--focused){opacity:var(--tx-chart-radar-dimmed-opacity)}:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__area,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__line,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__ring{transition:d var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),fill-opacity var(--tx-chart-motion-hover-duration) ease}:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__point{transition:cx var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing),cy var(--tx-chart-motion-update-duration) var(--tx-chart-motion-easing)}:host([data-styled].tx-radar-chart--entering) .tx-radar-chart__series{animation:tx-radar-chart-grow var(--tx-chart-motion-enter-duration) var(--tx-chart-motion-easing) both}@keyframes tx-radar-chart-grow{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@media(prefers-reduced-motion:reduce){:host([data-styled]) .tx-radar-chart__series,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__area,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__line,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__ring,:host([data-styled].tx-radar-chart--morph) .tx-radar-chart__point{transition:none;animation:none}}\n"]
|
|
704
|
+
}]
|
|
705
|
+
}],
|
|
706
|
+
ctorParameters: () => [],
|
|
707
|
+
propDecorators: {
|
|
708
|
+
series: [{
|
|
709
|
+
type: i0.Input,
|
|
710
|
+
args: [{
|
|
711
|
+
isSignal: true,
|
|
712
|
+
alias: "series",
|
|
713
|
+
required: false
|
|
714
|
+
}]
|
|
715
|
+
}],
|
|
716
|
+
categories: [{
|
|
717
|
+
type: i0.Input,
|
|
718
|
+
args: [{
|
|
719
|
+
isSignal: true,
|
|
720
|
+
alias: "categories",
|
|
721
|
+
required: false
|
|
722
|
+
}]
|
|
723
|
+
}],
|
|
724
|
+
height: [{
|
|
725
|
+
type: i0.Input,
|
|
726
|
+
args: [{
|
|
727
|
+
isSignal: true,
|
|
728
|
+
alias: "height",
|
|
729
|
+
required: false
|
|
730
|
+
}]
|
|
731
|
+
}],
|
|
732
|
+
shape: [{
|
|
733
|
+
type: i0.Input,
|
|
734
|
+
args: [{
|
|
735
|
+
isSignal: true,
|
|
736
|
+
alias: "shape",
|
|
737
|
+
required: false
|
|
738
|
+
}]
|
|
739
|
+
}],
|
|
740
|
+
min: [{
|
|
741
|
+
type: i0.Input,
|
|
742
|
+
args: [{
|
|
743
|
+
isSignal: true,
|
|
744
|
+
alias: "min",
|
|
745
|
+
required: false
|
|
746
|
+
}]
|
|
747
|
+
}],
|
|
748
|
+
max: [{
|
|
749
|
+
type: i0.Input,
|
|
750
|
+
args: [{
|
|
751
|
+
isSignal: true,
|
|
752
|
+
alias: "max",
|
|
753
|
+
required: false
|
|
754
|
+
}]
|
|
755
|
+
}],
|
|
756
|
+
rings: [{
|
|
757
|
+
type: i0.Input,
|
|
758
|
+
args: [{
|
|
759
|
+
isSignal: true,
|
|
760
|
+
alias: "rings",
|
|
761
|
+
required: false
|
|
762
|
+
}]
|
|
763
|
+
}],
|
|
764
|
+
fill: [{
|
|
765
|
+
type: i0.Input,
|
|
766
|
+
args: [{
|
|
767
|
+
isSignal: true,
|
|
768
|
+
alias: "fill",
|
|
769
|
+
required: false
|
|
770
|
+
}]
|
|
771
|
+
}],
|
|
772
|
+
markers: [{
|
|
773
|
+
type: i0.Input,
|
|
774
|
+
args: [{
|
|
775
|
+
isSignal: true,
|
|
776
|
+
alias: "markers",
|
|
777
|
+
required: false
|
|
778
|
+
}]
|
|
779
|
+
}],
|
|
780
|
+
showTicks: [{
|
|
781
|
+
type: i0.Input,
|
|
782
|
+
args: [{
|
|
783
|
+
isSignal: true,
|
|
784
|
+
alias: "showTicks",
|
|
785
|
+
required: false
|
|
786
|
+
}]
|
|
787
|
+
}],
|
|
788
|
+
showLegend: [{
|
|
789
|
+
type: i0.Input,
|
|
790
|
+
args: [{
|
|
791
|
+
isSignal: true,
|
|
792
|
+
alias: "showLegend",
|
|
793
|
+
required: false
|
|
794
|
+
}]
|
|
795
|
+
}],
|
|
796
|
+
legendPosition: [{
|
|
797
|
+
type: i0.Input,
|
|
798
|
+
args: [{
|
|
799
|
+
isSignal: true,
|
|
800
|
+
alias: "legendPosition",
|
|
801
|
+
required: false
|
|
802
|
+
}]
|
|
803
|
+
}],
|
|
804
|
+
legendAlign: [{
|
|
805
|
+
type: i0.Input,
|
|
806
|
+
args: [{
|
|
807
|
+
isSignal: true,
|
|
808
|
+
alias: "legendAlign",
|
|
809
|
+
required: false
|
|
810
|
+
}]
|
|
811
|
+
}],
|
|
812
|
+
legendVariant: [{
|
|
813
|
+
type: i0.Input,
|
|
814
|
+
args: [{
|
|
815
|
+
isSignal: true,
|
|
816
|
+
alias: "legendVariant",
|
|
817
|
+
required: false
|
|
818
|
+
}]
|
|
819
|
+
}],
|
|
820
|
+
showTooltip: [{
|
|
821
|
+
type: i0.Input,
|
|
822
|
+
args: [{
|
|
823
|
+
isSignal: true,
|
|
824
|
+
alias: "showTooltip",
|
|
825
|
+
required: false
|
|
826
|
+
}]
|
|
827
|
+
}],
|
|
828
|
+
tooltipFormatter: [{
|
|
829
|
+
type: i0.Input,
|
|
830
|
+
args: [{
|
|
831
|
+
isSignal: true,
|
|
832
|
+
alias: "tooltipFormatter",
|
|
833
|
+
required: false
|
|
834
|
+
}]
|
|
835
|
+
}],
|
|
836
|
+
valueFormat: [{
|
|
837
|
+
type: i0.Input,
|
|
838
|
+
args: [{
|
|
839
|
+
isSignal: true,
|
|
840
|
+
alias: "valueFormat",
|
|
841
|
+
required: false
|
|
842
|
+
}]
|
|
843
|
+
}],
|
|
844
|
+
toolbar: [{
|
|
845
|
+
type: i0.Input,
|
|
846
|
+
args: [{
|
|
847
|
+
isSignal: true,
|
|
848
|
+
alias: "toolbar",
|
|
849
|
+
required: false
|
|
850
|
+
}]
|
|
851
|
+
}],
|
|
852
|
+
loading: [{
|
|
853
|
+
type: i0.Input,
|
|
854
|
+
args: [{
|
|
855
|
+
isSignal: true,
|
|
856
|
+
alias: "loading",
|
|
857
|
+
required: false
|
|
858
|
+
}]
|
|
859
|
+
}],
|
|
860
|
+
ariaLabel: [{
|
|
861
|
+
type: i0.Input,
|
|
862
|
+
args: [{
|
|
863
|
+
isSignal: true,
|
|
864
|
+
alias: "ariaLabel",
|
|
865
|
+
required: false
|
|
866
|
+
}]
|
|
867
|
+
}],
|
|
868
|
+
dt: [{
|
|
869
|
+
type: i0.Input,
|
|
870
|
+
args: [{
|
|
871
|
+
isSignal: true,
|
|
872
|
+
alias: "dt",
|
|
873
|
+
required: false
|
|
874
|
+
}]
|
|
875
|
+
}],
|
|
876
|
+
pt: [{
|
|
877
|
+
type: i0.Input,
|
|
878
|
+
args: [{
|
|
879
|
+
isSignal: true,
|
|
880
|
+
alias: "pt",
|
|
881
|
+
required: false
|
|
882
|
+
}]
|
|
883
|
+
}],
|
|
884
|
+
ptOptions: [{
|
|
885
|
+
type: i0.Input,
|
|
886
|
+
args: [{
|
|
887
|
+
isSignal: true,
|
|
888
|
+
alias: "ptOptions",
|
|
889
|
+
required: false
|
|
890
|
+
}]
|
|
891
|
+
}],
|
|
892
|
+
unstyled: [{
|
|
893
|
+
type: i0.Input,
|
|
894
|
+
args: [{
|
|
895
|
+
isSignal: true,
|
|
896
|
+
alias: "unstyled",
|
|
897
|
+
required: false
|
|
898
|
+
}]
|
|
899
|
+
}],
|
|
900
|
+
seriesToggle: [{
|
|
901
|
+
type: i0.Output,
|
|
902
|
+
args: ["seriesToggle"]
|
|
903
|
+
}],
|
|
904
|
+
pointClick: [{
|
|
905
|
+
type: i0.Output,
|
|
906
|
+
args: ["pointClick"]
|
|
907
|
+
}],
|
|
908
|
+
legendTemplate: [{
|
|
909
|
+
type: i0.ContentChild,
|
|
910
|
+
args: [i0.forwardRef(() => TxChartLegendTemplate), { isSignal: true }]
|
|
911
|
+
}],
|
|
912
|
+
tooltipTemplate: [{
|
|
913
|
+
type: i0.ContentChild,
|
|
914
|
+
args: [i0.forwardRef(() => TxChartTooltipTemplate), { isSignal: true }]
|
|
915
|
+
}],
|
|
916
|
+
frame: [{
|
|
917
|
+
type: i0.ViewChild,
|
|
918
|
+
args: [i0.forwardRef(() => TxChartFrame), { isSignal: true }]
|
|
919
|
+
}]
|
|
920
|
+
}
|
|
921
|
+
});
|
|
922
|
+
export { TxRadarChart, radarAngle, radarAxes, radarAxisAt, radarFit, radarPoints, radarPolygonPath, radarRadius, radarShapePath };
|
|
923
|
+
|
|
924
|
+
//# sourceMappingURL=tectra-ng-charts-radar.mjs.map
|