@nstudio/ncharts 1.0.2 → 1.1.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/CHANGELOG.md +10 -0
- package/angular/fesm2022/nstudio-ncharts-angular.mjs +14 -280
- package/angular/fesm2022/nstudio-ncharts-angular.mjs.map +1 -1
- package/angular/package.json +1 -0
- package/angular/types/nstudio-ncharts-angular.d.ts +8 -36
- package/charts/bar-chart.android.d.ts +12 -1
- package/charts/bar-chart.android.js +123 -16
- package/charts/bar-chart.android.js.map +1 -1
- package/charts/bar-chart.ios.d.ts +12 -1
- package/charts/bar-chart.ios.js +122 -26
- package/charts/bar-chart.ios.js.map +1 -1
- package/charts/bubble-chart.android.d.ts +3 -1
- package/charts/bubble-chart.android.js +11 -3
- package/charts/bubble-chart.android.js.map +1 -1
- package/charts/bubble-chart.ios.d.ts +3 -1
- package/charts/bubble-chart.ios.js +21 -15
- package/charts/bubble-chart.ios.js.map +1 -1
- package/charts/candlestick-chart.android.d.ts +3 -1
- package/charts/candlestick-chart.android.js +11 -3
- package/charts/candlestick-chart.android.js.map +1 -1
- package/charts/candlestick-chart.ios.d.ts +3 -1
- package/charts/candlestick-chart.ios.js +21 -15
- package/charts/candlestick-chart.ios.js.map +1 -1
- package/charts/chart-paging-detector/chart-paging-detector-base.d.ts +30 -0
- package/charts/chart-paging-detector/chart-paging-detector-base.js +115 -0
- package/charts/chart-paging-detector/chart-paging-detector-base.js.map +1 -0
- package/charts/chart-paging-detector/chart-paging-detector.android.d.ts +28 -0
- package/charts/chart-paging-detector/chart-paging-detector.android.js +136 -0
- package/charts/chart-paging-detector/chart-paging-detector.android.js.map +1 -0
- package/charts/chart-paging-detector/chart-paging-detector.ios.d.ts +34 -0
- package/charts/chart-paging-detector/chart-paging-detector.ios.js +88 -0
- package/charts/chart-paging-detector/chart-paging-detector.ios.js.map +1 -0
- package/charts/combined-chart.android.d.ts +13 -1
- package/charts/combined-chart.android.js +163 -13
- package/charts/combined-chart.android.js.map +1 -1
- package/charts/combined-chart.ios.d.ts +13 -1
- package/charts/combined-chart.ios.js +222 -72
- package/charts/combined-chart.ios.js.map +1 -1
- package/charts/default-marker.android.d.ts +29 -0
- package/charts/default-marker.android.js +133 -0
- package/charts/default-marker.android.js.map +1 -0
- package/charts/default-marker.ios.d.ts +21 -0
- package/charts/default-marker.ios.js +119 -0
- package/charts/default-marker.ios.js.map +1 -0
- package/charts/formatters/custom-labels-array-formatter.android.d.ts +7 -0
- package/charts/formatters/custom-labels-array-formatter.android.js +26 -0
- package/charts/formatters/custom-labels-array-formatter.android.js.map +1 -0
- package/charts/formatters/custom-labels-array-formatter.ios.d.ts +16 -0
- package/charts/formatters/custom-labels-array-formatter.ios.js +53 -0
- package/charts/formatters/custom-labels-array-formatter.ios.js.map +1 -0
- package/charts/formatters/date-formatters.android.d.ts +34 -0
- package/charts/formatters/date-formatters.android.js +74 -0
- package/charts/formatters/date-formatters.android.js.map +1 -0
- package/charts/formatters/date-formatters.ios.d.ts +33 -0
- package/charts/formatters/date-formatters.ios.js +75 -0
- package/charts/formatters/date-formatters.ios.js.map +1 -0
- package/charts/formatters/decimal-value-formatter.android.d.ts +13 -0
- package/charts/formatters/decimal-value-formatter.android.js +64 -0
- package/charts/formatters/decimal-value-formatter.android.js.map +1 -0
- package/charts/formatters/suffix-value-formatter.android.d.ts +13 -0
- package/charts/formatters/suffix-value-formatter.android.js +78 -0
- package/charts/formatters/suffix-value-formatter.android.js.map +1 -0
- package/charts/formatters/suffix-value-formatter.ios.d.ts +15 -0
- package/charts/formatters/suffix-value-formatter.ios.js +76 -0
- package/charts/formatters/suffix-value-formatter.ios.js.map +1 -0
- package/charts/formatters/value-formatter-helpers.d.ts +1 -0
- package/charts/formatters/value-formatter-helpers.js +29 -0
- package/charts/formatters/value-formatter-helpers.js.map +1 -0
- package/charts/line-chart.android.d.ts +12 -1
- package/charts/line-chart.android.js +121 -11
- package/charts/line-chart.android.js.map +1 -1
- package/charts/line-chart.ios.d.ts +12 -1
- package/charts/line-chart.ios.js +120 -21
- package/charts/line-chart.ios.js.map +1 -1
- package/charts/pie-chart.android.d.ts +23 -4
- package/charts/pie-chart.android.js +166 -55
- package/charts/pie-chart.android.js.map +1 -1
- package/charts/pie-chart.ios.d.ts +23 -4
- package/charts/pie-chart.ios.js +182 -90
- package/charts/pie-chart.ios.js.map +1 -1
- package/charts/radar-chart.android.d.ts +4 -1
- package/charts/radar-chart.android.js +16 -3
- package/charts/radar-chart.android.js.map +1 -1
- package/charts/radar-chart.ios.d.ts +4 -1
- package/charts/radar-chart.ios.js +27 -15
- package/charts/radar-chart.ios.js.map +1 -1
- package/charts/renderers/bar-chart-renderer.android.d.ts +19 -0
- package/charts/renderers/bar-chart-renderer.android.js +118 -0
- package/charts/renderers/bar-chart-renderer.android.js.map +1 -0
- package/charts/renderers/bar-chart-renderer.ios.d.ts +48 -0
- package/charts/renderers/bar-chart-renderer.ios.js +152 -0
- package/charts/renderers/bar-chart-renderer.ios.js.map +1 -0
- package/charts/renderers/combined-chart-renderer.android.d.ts +13 -0
- package/charts/renderers/combined-chart-renderer.android.js +57 -0
- package/charts/renderers/combined-chart-renderer.android.js.map +1 -0
- package/charts/renderers/combined-chart-renderer.ios.d.ts +12 -0
- package/charts/renderers/combined-chart-renderer.ios.js +66 -0
- package/charts/renderers/combined-chart-renderer.ios.js.map +1 -0
- package/charts/renderers/line-chart-plotbands-renderer.android.d.ts +13 -0
- package/charts/renderers/line-chart-plotbands-renderer.android.js +37 -0
- package/charts/renderers/line-chart-plotbands-renderer.android.js.map +1 -0
- package/charts/renderers/line-chart-plotbands-renderer.ios.d.ts +10 -0
- package/charts/renderers/line-chart-plotbands-renderer.ios.js +34 -0
- package/charts/renderers/line-chart-plotbands-renderer.ios.js.map +1 -0
- package/charts/renderers/plotband-drawer.android.d.ts +33 -0
- package/charts/renderers/plotband-drawer.android.js +200 -0
- package/charts/renderers/plotband-drawer.android.js.map +1 -0
- package/charts/renderers/plotband-drawer.ios.d.ts +15 -0
- package/charts/renderers/plotband-drawer.ios.js +183 -0
- package/charts/renderers/plotband-drawer.ios.js.map +1 -0
- package/charts/scatter-chart.android.d.ts +3 -1
- package/charts/scatter-chart.android.js +11 -3
- package/charts/scatter-chart.android.js.map +1 -1
- package/charts/scatter-chart.ios.d.ts +3 -1
- package/charts/scatter-chart.ios.js +21 -15
- package/charts/scatter-chart.ios.js.map +1 -1
- package/charts/style-helpers.android.d.ts +28 -4
- package/charts/style-helpers.android.js +190 -5
- package/charts/style-helpers.android.js.map +1 -1
- package/charts/style-helpers.ios.d.ts +28 -4
- package/charts/style-helpers.ios.js +210 -5
- package/charts/style-helpers.ios.js.map +1 -1
- package/common.d.ts +56 -2
- package/common.js +181 -14
- package/common.js.map +1 -1
- package/package.json +2 -2
- package/types/android!MPAndroidChart.d.ts +7955 -0
- package/types/objc!DGCharts.d.ts +5265 -0
- package/types.d.ts +73 -4
package/CHANGELOG.md
CHANGED
|
@@ -22,7 +22,6 @@ class ChartBaseDirective {
|
|
|
22
22
|
logEnabled = input(...(ngDevMode ? [undefined, { debugName: "logEnabled" }] : []));
|
|
23
23
|
noDataText = input(...(ngDevMode ? [undefined, { debugName: "noDataText" }] : []));
|
|
24
24
|
noDataTextColor = input(...(ngDevMode ? [undefined, { debugName: "noDataTextColor" }] : []));
|
|
25
|
-
touchEnabled = input(...(ngDevMode ? [undefined, { debugName: "touchEnabled" }] : []));
|
|
26
25
|
dragDecelerationEnabled = input(...(ngDevMode ? [undefined, { debugName: "dragDecelerationEnabled" }] : []));
|
|
27
26
|
dragDecelerationFrictionCoef = input(...(ngDevMode ? [undefined, { debugName: "dragDecelerationFrictionCoef" }] : []));
|
|
28
27
|
highlightPerTapEnabled = input(...(ngDevMode ? [undefined, { debugName: "highlightPerTapEnabled" }] : []));
|
|
@@ -76,12 +75,6 @@ class ChartBaseDirective {
|
|
|
76
75
|
this.chart.noDataTextColor = value;
|
|
77
76
|
}
|
|
78
77
|
});
|
|
79
|
-
effect(() => {
|
|
80
|
-
const value = this.touchEnabled();
|
|
81
|
-
if (this.initialized && value !== undefined) {
|
|
82
|
-
this.chart.touchEnabled = value;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
78
|
effect(() => {
|
|
86
79
|
const value = this.dragDecelerationEnabled();
|
|
87
80
|
if (this.initialized && value !== undefined) {
|
|
@@ -94,12 +87,6 @@ class ChartBaseDirective {
|
|
|
94
87
|
this.chart.dragDecelerationFrictionCoef = value;
|
|
95
88
|
}
|
|
96
89
|
});
|
|
97
|
-
effect(() => {
|
|
98
|
-
const value = this.highlightPerTapEnabled();
|
|
99
|
-
if (this.initialized && value !== undefined) {
|
|
100
|
-
this.chart.highlightPerTapEnabled = value;
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
90
|
effect(() => {
|
|
104
91
|
const value = this.chartDescription();
|
|
105
92
|
if (this.initialized && value !== undefined) {
|
|
@@ -191,18 +178,12 @@ class ChartBaseDirective {
|
|
|
191
178
|
const noDataTextColor = this.noDataTextColor();
|
|
192
179
|
if (noDataTextColor)
|
|
193
180
|
this.chart.noDataTextColor = noDataTextColor;
|
|
194
|
-
const touchEnabled = this.touchEnabled();
|
|
195
|
-
if (touchEnabled !== undefined)
|
|
196
|
-
this.chart.touchEnabled = touchEnabled;
|
|
197
181
|
const dragDecelerationEnabled = this.dragDecelerationEnabled();
|
|
198
182
|
if (dragDecelerationEnabled !== undefined)
|
|
199
183
|
this.chart.dragDecelerationEnabled = dragDecelerationEnabled;
|
|
200
184
|
const dragDecelerationFrictionCoef = this.dragDecelerationFrictionCoef();
|
|
201
185
|
if (dragDecelerationFrictionCoef !== undefined)
|
|
202
186
|
this.chart.dragDecelerationFrictionCoef = dragDecelerationFrictionCoef;
|
|
203
|
-
const highlightPerTapEnabled = this.highlightPerTapEnabled();
|
|
204
|
-
if (highlightPerTapEnabled !== undefined)
|
|
205
|
-
this.chart.highlightPerTapEnabled = highlightPerTapEnabled;
|
|
206
187
|
const chartDescription = this.chartDescription();
|
|
207
188
|
if (chartDescription)
|
|
208
189
|
this.chart.chartDescription = chartDescription;
|
|
@@ -233,11 +214,11 @@ class ChartBaseDirective {
|
|
|
233
214
|
this.chart?.invalidate();
|
|
234
215
|
}
|
|
235
216
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ChartBaseDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
236
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: ChartBaseDirective, isStandalone: true, inputs: { animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null }, chartBackgroundColor: { classPropertyName: "chartBackgroundColor", publicName: "chartBackgroundColor", isSignal: true, isRequired: false, transformFunction: null }, chartGridBackgroundColor: { classPropertyName: "chartGridBackgroundColor", publicName: "chartGridBackgroundColor", isSignal: true, isRequired: false, transformFunction: null }, logEnabled: { classPropertyName: "logEnabled", publicName: "logEnabled", isSignal: true, isRequired: false, transformFunction: null }, noDataText: { classPropertyName: "noDataText", publicName: "noDataText", isSignal: true, isRequired: false, transformFunction: null }, noDataTextColor: { classPropertyName: "noDataTextColor", publicName: "noDataTextColor", isSignal: true, isRequired: false, transformFunction: null },
|
|
217
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: ChartBaseDirective, isStandalone: true, inputs: { animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null }, chartBackgroundColor: { classPropertyName: "chartBackgroundColor", publicName: "chartBackgroundColor", isSignal: true, isRequired: false, transformFunction: null }, chartGridBackgroundColor: { classPropertyName: "chartGridBackgroundColor", publicName: "chartGridBackgroundColor", isSignal: true, isRequired: false, transformFunction: null }, logEnabled: { classPropertyName: "logEnabled", publicName: "logEnabled", isSignal: true, isRequired: false, transformFunction: null }, noDataText: { classPropertyName: "noDataText", publicName: "noDataText", isSignal: true, isRequired: false, transformFunction: null }, noDataTextColor: { classPropertyName: "noDataTextColor", publicName: "noDataTextColor", isSignal: true, isRequired: false, transformFunction: null }, dragDecelerationEnabled: { classPropertyName: "dragDecelerationEnabled", publicName: "dragDecelerationEnabled", isSignal: true, isRequired: false, transformFunction: null }, dragDecelerationFrictionCoef: { classPropertyName: "dragDecelerationFrictionCoef", publicName: "dragDecelerationFrictionCoef", isSignal: true, isRequired: false, transformFunction: null }, highlightPerTapEnabled: { classPropertyName: "highlightPerTapEnabled", publicName: "highlightPerTapEnabled", isSignal: true, isRequired: false, transformFunction: null }, chartDescription: { classPropertyName: "chartDescription", publicName: "chartDescription", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, xAxis: { classPropertyName: "xAxis", publicName: "xAxis", isSignal: true, isRequired: false, transformFunction: null }, marker: { classPropertyName: "marker", publicName: "marker", isSignal: true, isRequired: false, transformFunction: null }, highlights: { classPropertyName: "highlights", publicName: "highlights", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { select: "select", deselect: "deselect", gesture: "gesture" }, ngImport: i0 });
|
|
237
218
|
}
|
|
238
219
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: ChartBaseDirective, decorators: [{
|
|
239
220
|
type: Directive
|
|
240
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], chartBackgroundColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "chartBackgroundColor", required: false }] }], chartGridBackgroundColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "chartGridBackgroundColor", required: false }] }], logEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "logEnabled", required: false }] }], noDataText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noDataText", required: false }] }], noDataTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "noDataTextColor", required: false }] }],
|
|
221
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { animation: [{ type: i0.Input, args: [{ isSignal: true, alias: "animation", required: false }] }], chartBackgroundColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "chartBackgroundColor", required: false }] }], chartGridBackgroundColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "chartGridBackgroundColor", required: false }] }], logEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "logEnabled", required: false }] }], noDataText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noDataText", required: false }] }], noDataTextColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "noDataTextColor", required: false }] }], dragDecelerationEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragDecelerationEnabled", required: false }] }], dragDecelerationFrictionCoef: [{ type: i0.Input, args: [{ isSignal: true, alias: "dragDecelerationFrictionCoef", required: false }] }], highlightPerTapEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightPerTapEnabled", required: false }] }], chartDescription: [{ type: i0.Input, args: [{ isSignal: true, alias: "chartDescription", required: false }] }], legend: [{ type: i0.Input, args: [{ isSignal: true, alias: "legend", required: false }] }], xAxis: [{ type: i0.Input, args: [{ isSignal: true, alias: "xAxis", required: false }] }], marker: [{ type: i0.Input, args: [{ isSignal: true, alias: "marker", required: false }] }], highlights: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlights", required: false }] }], select: [{ type: i0.Output, args: ["select"] }], deselect: [{ type: i0.Output, args: ["deselect"] }], gesture: [{ type: i0.Output, args: ["gesture"] }] } });
|
|
241
222
|
// ============================================================================
|
|
242
223
|
// BarLine Chart Base Directive
|
|
243
224
|
// ============================================================================
|
|
@@ -252,12 +233,8 @@ class BarLineChartBaseDirective extends ChartBaseDirective {
|
|
|
252
233
|
maxVisibleValueCount = input(...(ngDevMode ? [undefined, { debugName: "maxVisibleValueCount" }] : []));
|
|
253
234
|
autoScaleMinMaxEnabled = input(...(ngDevMode ? [undefined, { debugName: "autoScaleMinMaxEnabled" }] : []));
|
|
254
235
|
keepPositionOnRotation = input(...(ngDevMode ? [undefined, { debugName: "keepPositionOnRotation" }] : []));
|
|
255
|
-
highlightPerDragEnabled = input(...(ngDevMode ? [undefined, { debugName: "highlightPerDragEnabled" }] : []));
|
|
256
|
-
scaleEnabled = input(...(ngDevMode ? [undefined, { debugName: "scaleEnabled" }] : []));
|
|
257
236
|
scaleXEnabled = input(...(ngDevMode ? [undefined, { debugName: "scaleXEnabled" }] : []));
|
|
258
237
|
scaleYEnabled = input(...(ngDevMode ? [undefined, { debugName: "scaleYEnabled" }] : []));
|
|
259
|
-
dragEnabled = input(...(ngDevMode ? [undefined, { debugName: "dragEnabled" }] : []));
|
|
260
|
-
pinchZoom = input(...(ngDevMode ? [undefined, { debugName: "pinchZoom" }] : []));
|
|
261
238
|
doubleTapToZoomEnabled = input(...(ngDevMode ? [undefined, { debugName: "doubleTapToZoomEnabled" }] : []));
|
|
262
239
|
yAxis = input(...(ngDevMode ? [undefined, { debugName: "yAxis" }] : []));
|
|
263
240
|
constructor(el) {
|
|
@@ -323,18 +300,6 @@ class BarLineChartBaseDirective extends ChartBaseDirective {
|
|
|
323
300
|
this.chart.keepPositionOnRotation = value;
|
|
324
301
|
}
|
|
325
302
|
});
|
|
326
|
-
effect(() => {
|
|
327
|
-
const value = this.highlightPerDragEnabled();
|
|
328
|
-
if (this.initialized && value !== undefined) {
|
|
329
|
-
this.chart.highlightPerDragEnabled = value;
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
effect(() => {
|
|
333
|
-
const value = this.scaleEnabled();
|
|
334
|
-
if (this.initialized && value !== undefined) {
|
|
335
|
-
this.chart.scaleEnabled = value;
|
|
336
|
-
}
|
|
337
|
-
});
|
|
338
303
|
effect(() => {
|
|
339
304
|
const value = this.scaleXEnabled();
|
|
340
305
|
if (this.initialized && value !== undefined) {
|
|
@@ -347,18 +312,6 @@ class BarLineChartBaseDirective extends ChartBaseDirective {
|
|
|
347
312
|
this.chart.scaleYEnabled = value;
|
|
348
313
|
}
|
|
349
314
|
});
|
|
350
|
-
effect(() => {
|
|
351
|
-
const value = this.dragEnabled();
|
|
352
|
-
if (this.initialized && value !== undefined) {
|
|
353
|
-
this.chart.dragEnabled = value;
|
|
354
|
-
}
|
|
355
|
-
});
|
|
356
|
-
effect(() => {
|
|
357
|
-
const value = this.pinchZoom();
|
|
358
|
-
if (this.initialized && value !== undefined) {
|
|
359
|
-
this.chart.pinchZoom = value;
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
315
|
effect(() => {
|
|
363
316
|
const value = this.doubleTapToZoomEnabled();
|
|
364
317
|
if (this.initialized && value !== undefined) {
|
|
@@ -406,24 +359,12 @@ class BarLineChartBaseDirective extends ChartBaseDirective {
|
|
|
406
359
|
const keepPositionOnRotation = this.keepPositionOnRotation();
|
|
407
360
|
if (keepPositionOnRotation !== undefined)
|
|
408
361
|
this.chart.keepPositionOnRotation = keepPositionOnRotation;
|
|
409
|
-
const highlightPerDragEnabled = this.highlightPerDragEnabled();
|
|
410
|
-
if (highlightPerDragEnabled !== undefined)
|
|
411
|
-
this.chart.highlightPerDragEnabled = highlightPerDragEnabled;
|
|
412
|
-
const scaleEnabled = this.scaleEnabled();
|
|
413
|
-
if (scaleEnabled !== undefined)
|
|
414
|
-
this.chart.scaleEnabled = scaleEnabled;
|
|
415
362
|
const scaleXEnabled = this.scaleXEnabled();
|
|
416
363
|
if (scaleXEnabled !== undefined)
|
|
417
364
|
this.chart.scaleXEnabled = scaleXEnabled;
|
|
418
365
|
const scaleYEnabled = this.scaleYEnabled();
|
|
419
366
|
if (scaleYEnabled !== undefined)
|
|
420
367
|
this.chart.scaleYEnabled = scaleYEnabled;
|
|
421
|
-
const dragEnabled = this.dragEnabled();
|
|
422
|
-
if (dragEnabled !== undefined)
|
|
423
|
-
this.chart.dragEnabled = dragEnabled;
|
|
424
|
-
const pinchZoom = this.pinchZoom();
|
|
425
|
-
if (pinchZoom !== undefined)
|
|
426
|
-
this.chart.pinchZoom = pinchZoom;
|
|
427
368
|
const doubleTapToZoomEnabled = this.doubleTapToZoomEnabled();
|
|
428
369
|
if (doubleTapToZoomEnabled !== undefined)
|
|
429
370
|
this.chart.doubleTapToZoomEnabled = doubleTapToZoomEnabled;
|
|
@@ -448,17 +389,16 @@ class BarLineChartBaseDirective extends ChartBaseDirective {
|
|
|
448
389
|
this.chart?.fitScreen();
|
|
449
390
|
}
|
|
450
391
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: BarLineChartBaseDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
451
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: BarLineChartBaseDirective, isStandalone: true, inputs: { maxHighlightDistance: { classPropertyName: "maxHighlightDistance", publicName: "maxHighlightDistance", isSignal: true, isRequired: false, transformFunction: null }, drawGridBackground: { classPropertyName: "drawGridBackground", publicName: "drawGridBackground", isSignal: true, isRequired: false, transformFunction: null }, gridBackgroundColor: { classPropertyName: "gridBackgroundColor", publicName: "gridBackgroundColor", isSignal: true, isRequired: false, transformFunction: null }, drawBorders: { classPropertyName: "drawBorders", publicName: "drawBorders", isSignal: true, isRequired: false, transformFunction: null }, borderColor: { classPropertyName: "borderColor", publicName: "borderColor", isSignal: true, isRequired: false, transformFunction: null }, borderWidth: { classPropertyName: "borderWidth", publicName: "borderWidth", isSignal: true, isRequired: false, transformFunction: null }, minOffset: { classPropertyName: "minOffset", publicName: "minOffset", isSignal: true, isRequired: false, transformFunction: null }, maxVisibleValueCount: { classPropertyName: "maxVisibleValueCount", publicName: "maxVisibleValueCount", isSignal: true, isRequired: false, transformFunction: null }, autoScaleMinMaxEnabled: { classPropertyName: "autoScaleMinMaxEnabled", publicName: "autoScaleMinMaxEnabled", isSignal: true, isRequired: false, transformFunction: null }, keepPositionOnRotation: { classPropertyName: "keepPositionOnRotation", publicName: "keepPositionOnRotation", isSignal: true, isRequired: false, transformFunction: null },
|
|
392
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: BarLineChartBaseDirective, isStandalone: true, inputs: { maxHighlightDistance: { classPropertyName: "maxHighlightDistance", publicName: "maxHighlightDistance", isSignal: true, isRequired: false, transformFunction: null }, drawGridBackground: { classPropertyName: "drawGridBackground", publicName: "drawGridBackground", isSignal: true, isRequired: false, transformFunction: null }, gridBackgroundColor: { classPropertyName: "gridBackgroundColor", publicName: "gridBackgroundColor", isSignal: true, isRequired: false, transformFunction: null }, drawBorders: { classPropertyName: "drawBorders", publicName: "drawBorders", isSignal: true, isRequired: false, transformFunction: null }, borderColor: { classPropertyName: "borderColor", publicName: "borderColor", isSignal: true, isRequired: false, transformFunction: null }, borderWidth: { classPropertyName: "borderWidth", publicName: "borderWidth", isSignal: true, isRequired: false, transformFunction: null }, minOffset: { classPropertyName: "minOffset", publicName: "minOffset", isSignal: true, isRequired: false, transformFunction: null }, maxVisibleValueCount: { classPropertyName: "maxVisibleValueCount", publicName: "maxVisibleValueCount", isSignal: true, isRequired: false, transformFunction: null }, autoScaleMinMaxEnabled: { classPropertyName: "autoScaleMinMaxEnabled", publicName: "autoScaleMinMaxEnabled", isSignal: true, isRequired: false, transformFunction: null }, keepPositionOnRotation: { classPropertyName: "keepPositionOnRotation", publicName: "keepPositionOnRotation", isSignal: true, isRequired: false, transformFunction: null }, scaleXEnabled: { classPropertyName: "scaleXEnabled", publicName: "scaleXEnabled", isSignal: true, isRequired: false, transformFunction: null }, scaleYEnabled: { classPropertyName: "scaleYEnabled", publicName: "scaleYEnabled", isSignal: true, isRequired: false, transformFunction: null }, doubleTapToZoomEnabled: { classPropertyName: "doubleTapToZoomEnabled", publicName: "doubleTapToZoomEnabled", isSignal: true, isRequired: false, transformFunction: null }, yAxis: { classPropertyName: "yAxis", publicName: "yAxis", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
452
393
|
}
|
|
453
394
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: BarLineChartBaseDirective, decorators: [{
|
|
454
395
|
type: Directive
|
|
455
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { maxHighlightDistance: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHighlightDistance", required: false }] }], drawGridBackground: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawGridBackground", required: false }] }], gridBackgroundColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "gridBackgroundColor", required: false }] }], drawBorders: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawBorders", required: false }] }], borderColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderColor", required: false }] }], borderWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderWidth", required: false }] }], minOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "minOffset", required: false }] }], maxVisibleValueCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleValueCount", required: false }] }], autoScaleMinMaxEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoScaleMinMaxEnabled", required: false }] }], keepPositionOnRotation: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepPositionOnRotation", required: false }] }],
|
|
396
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { maxHighlightDistance: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHighlightDistance", required: false }] }], drawGridBackground: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawGridBackground", required: false }] }], gridBackgroundColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "gridBackgroundColor", required: false }] }], drawBorders: [{ type: i0.Input, args: [{ isSignal: true, alias: "drawBorders", required: false }] }], borderColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderColor", required: false }] }], borderWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "borderWidth", required: false }] }], minOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "minOffset", required: false }] }], maxVisibleValueCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleValueCount", required: false }] }], autoScaleMinMaxEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoScaleMinMaxEnabled", required: false }] }], keepPositionOnRotation: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepPositionOnRotation", required: false }] }], scaleXEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "scaleXEnabled", required: false }] }], scaleYEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "scaleYEnabled", required: false }] }], doubleTapToZoomEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "doubleTapToZoomEnabled", required: false }] }], yAxis: [{ type: i0.Input, args: [{ isSignal: true, alias: "yAxis", required: false }] }] } });
|
|
456
397
|
// ============================================================================
|
|
457
398
|
// PieRadar Chart Base Directive
|
|
458
399
|
// ============================================================================
|
|
459
400
|
class PieRadarChartBaseDirective extends ChartBaseDirective {
|
|
460
401
|
rotationAngle = input(...(ngDevMode ? [undefined, { debugName: "rotationAngle" }] : []));
|
|
461
|
-
rotationEnabled = input(...(ngDevMode ? [undefined, { debugName: "rotationEnabled" }] : []));
|
|
462
402
|
minOffset = input(...(ngDevMode ? [undefined, { debugName: "minOffset" }] : []));
|
|
463
403
|
constructor(el) {
|
|
464
404
|
super(el);
|
|
@@ -468,12 +408,6 @@ class PieRadarChartBaseDirective extends ChartBaseDirective {
|
|
|
468
408
|
this.chart.rotationAngle = value;
|
|
469
409
|
}
|
|
470
410
|
});
|
|
471
|
-
effect(() => {
|
|
472
|
-
const value = this.rotationEnabled();
|
|
473
|
-
if (this.initialized && value !== undefined) {
|
|
474
|
-
this.chart.rotationEnabled = value;
|
|
475
|
-
}
|
|
476
|
-
});
|
|
477
411
|
effect(() => {
|
|
478
412
|
const value = this.minOffset();
|
|
479
413
|
if (this.initialized && value !== undefined) {
|
|
@@ -488,42 +422,25 @@ class PieRadarChartBaseDirective extends ChartBaseDirective {
|
|
|
488
422
|
const rotationAngle = this.rotationAngle();
|
|
489
423
|
if (rotationAngle !== undefined)
|
|
490
424
|
this.chart.rotationAngle = rotationAngle;
|
|
491
|
-
const rotationEnabled = this.rotationEnabled();
|
|
492
|
-
if (rotationEnabled !== undefined)
|
|
493
|
-
this.chart.rotationEnabled = rotationEnabled;
|
|
494
425
|
const minOffset = this.minOffset();
|
|
495
426
|
if (minOffset !== undefined)
|
|
496
427
|
this.chart.minOffset = minOffset;
|
|
497
428
|
}
|
|
498
429
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PieRadarChartBaseDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
499
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: PieRadarChartBaseDirective, isStandalone: true, inputs: { rotationAngle: { classPropertyName: "rotationAngle", publicName: "rotationAngle", isSignal: true, isRequired: false, transformFunction: null },
|
|
430
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.9", type: PieRadarChartBaseDirective, isStandalone: true, inputs: { rotationAngle: { classPropertyName: "rotationAngle", publicName: "rotationAngle", isSignal: true, isRequired: false, transformFunction: null }, minOffset: { classPropertyName: "minOffset", publicName: "minOffset", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
500
431
|
}
|
|
501
432
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PieRadarChartBaseDirective, decorators: [{
|
|
502
433
|
type: Directive
|
|
503
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { rotationAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotationAngle", required: false }] }],
|
|
434
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { rotationAngle: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotationAngle", required: false }] }], minOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "minOffset", required: false }] }] } });
|
|
504
435
|
// ============================================================================
|
|
505
436
|
// Line Chart Directive
|
|
506
437
|
// ============================================================================
|
|
507
438
|
class LineChartDirective extends BarLineChartBaseDirective {
|
|
508
|
-
data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
509
439
|
constructor(elRef) {
|
|
510
440
|
super(elRef);
|
|
511
|
-
effect(() => {
|
|
512
|
-
const value = this.data();
|
|
513
|
-
if (this.initialized && value !== undefined) {
|
|
514
|
-
this.chart.data = value;
|
|
515
|
-
}
|
|
516
|
-
});
|
|
517
|
-
}
|
|
518
|
-
applyInitialProperties() {
|
|
519
|
-
super.applyInitialProperties();
|
|
520
|
-
const data = this.data();
|
|
521
|
-
if (data && this.chart) {
|
|
522
|
-
this.chart.data = data;
|
|
523
|
-
}
|
|
524
441
|
}
|
|
525
442
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: LineChartDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
526
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
443
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.9", type: LineChartDirective, isStandalone: true, selector: "LineChart", usesInheritance: true, ngImport: i0 });
|
|
527
444
|
}
|
|
528
445
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: LineChartDirective, decorators: [{
|
|
529
446
|
type: Directive,
|
|
@@ -531,30 +448,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
531
448
|
selector: 'LineChart',
|
|
532
449
|
standalone: true,
|
|
533
450
|
}]
|
|
534
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }]
|
|
451
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
535
452
|
// ============================================================================
|
|
536
453
|
// Bar Chart Directive
|
|
537
454
|
// ============================================================================
|
|
538
455
|
class BarChartDirective extends BarLineChartBaseDirective {
|
|
539
|
-
data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
540
456
|
constructor(elRef) {
|
|
541
457
|
super(elRef);
|
|
542
|
-
effect(() => {
|
|
543
|
-
const value = this.data();
|
|
544
|
-
if (this.initialized && value !== undefined) {
|
|
545
|
-
this.chart.data = value;
|
|
546
|
-
}
|
|
547
|
-
});
|
|
548
|
-
}
|
|
549
|
-
applyInitialProperties() {
|
|
550
|
-
super.applyInitialProperties();
|
|
551
|
-
const data = this.data();
|
|
552
|
-
if (data && this.chart) {
|
|
553
|
-
this.chart.data = data;
|
|
554
|
-
}
|
|
555
458
|
}
|
|
556
459
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: BarChartDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
557
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
460
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.9", type: BarChartDirective, isStandalone: true, selector: "BarChart", usesInheritance: true, ngImport: i0 });
|
|
558
461
|
}
|
|
559
462
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: BarChartDirective, decorators: [{
|
|
560
463
|
type: Directive,
|
|
@@ -562,7 +465,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
562
465
|
selector: 'BarChart',
|
|
563
466
|
standalone: true,
|
|
564
467
|
}]
|
|
565
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }]
|
|
468
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
566
469
|
// ============================================================================
|
|
567
470
|
// Horizontal Bar Chart Directive
|
|
568
471
|
// ============================================================================
|
|
@@ -598,166 +501,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
598
501
|
// Pie Chart Directive
|
|
599
502
|
// ============================================================================
|
|
600
503
|
class PieChartDirective extends PieRadarChartBaseDirective {
|
|
601
|
-
data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
602
|
-
drawHole = input(...(ngDevMode ? [undefined, { debugName: "drawHole" }] : []));
|
|
603
|
-
holeRadius = input(...(ngDevMode ? [undefined, { debugName: "holeRadius" }] : []));
|
|
604
|
-
transparentCircleRadius = input(...(ngDevMode ? [undefined, { debugName: "transparentCircleRadius" }] : []));
|
|
605
|
-
holeColor = input(...(ngDevMode ? [undefined, { debugName: "holeColor" }] : []));
|
|
606
|
-
transparentCircleColor = input(...(ngDevMode ? [undefined, { debugName: "transparentCircleColor" }] : []));
|
|
607
|
-
drawCenterText = input(...(ngDevMode ? [undefined, { debugName: "drawCenterText" }] : []));
|
|
608
|
-
centerText = input(...(ngDevMode ? [undefined, { debugName: "centerText" }] : []));
|
|
609
|
-
centerTextColor = input(...(ngDevMode ? [undefined, { debugName: "centerTextColor" }] : []));
|
|
610
|
-
centerTextSize = input(...(ngDevMode ? [undefined, { debugName: "centerTextSize" }] : []));
|
|
611
|
-
drawSliceText = input(...(ngDevMode ? [undefined, { debugName: "drawSliceText" }] : []));
|
|
612
|
-
sliceTextSize = input(...(ngDevMode ? [undefined, { debugName: "sliceTextSize" }] : []));
|
|
613
|
-
sliceTextColor = input(...(ngDevMode ? [undefined, { debugName: "sliceTextColor" }] : []));
|
|
614
|
-
usePercentValues = input(...(ngDevMode ? [undefined, { debugName: "usePercentValues" }] : []));
|
|
615
|
-
maxAngle = input(...(ngDevMode ? [undefined, { debugName: "maxAngle" }] : []));
|
|
616
504
|
constructor(elRef) {
|
|
617
505
|
super(elRef);
|
|
618
|
-
effect(() => {
|
|
619
|
-
const value = this.data();
|
|
620
|
-
if (this.initialized && value !== undefined) {
|
|
621
|
-
this.chart.data = value;
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
effect(() => {
|
|
625
|
-
const value = this.drawHole();
|
|
626
|
-
if (this.initialized && value !== undefined) {
|
|
627
|
-
this.chart.drawHole = value;
|
|
628
|
-
}
|
|
629
|
-
});
|
|
630
|
-
effect(() => {
|
|
631
|
-
const value = this.holeRadius();
|
|
632
|
-
if (this.initialized && value !== undefined) {
|
|
633
|
-
this.chart.holeRadius = value;
|
|
634
|
-
}
|
|
635
|
-
});
|
|
636
|
-
effect(() => {
|
|
637
|
-
const value = this.transparentCircleRadius();
|
|
638
|
-
if (this.initialized && value !== undefined) {
|
|
639
|
-
this.chart.transparentCircleRadius = value;
|
|
640
|
-
}
|
|
641
|
-
});
|
|
642
|
-
effect(() => {
|
|
643
|
-
const value = this.holeColor();
|
|
644
|
-
if (this.initialized && value !== undefined) {
|
|
645
|
-
this.chart.holeColor = value;
|
|
646
|
-
}
|
|
647
|
-
});
|
|
648
|
-
effect(() => {
|
|
649
|
-
const value = this.transparentCircleColor();
|
|
650
|
-
if (this.initialized && value !== undefined) {
|
|
651
|
-
this.chart.transparentCircleColor = value;
|
|
652
|
-
}
|
|
653
|
-
});
|
|
654
|
-
effect(() => {
|
|
655
|
-
const value = this.drawCenterText();
|
|
656
|
-
if (this.initialized && value !== undefined) {
|
|
657
|
-
this.chart.drawCenterText = value;
|
|
658
|
-
}
|
|
659
|
-
});
|
|
660
|
-
effect(() => {
|
|
661
|
-
const value = this.centerText();
|
|
662
|
-
if (this.initialized && value !== undefined) {
|
|
663
|
-
this.chart.centerText = value;
|
|
664
|
-
}
|
|
665
|
-
});
|
|
666
|
-
effect(() => {
|
|
667
|
-
const value = this.centerTextColor();
|
|
668
|
-
if (this.initialized && value !== undefined) {
|
|
669
|
-
this.chart.centerTextColor = value;
|
|
670
|
-
}
|
|
671
|
-
});
|
|
672
|
-
effect(() => {
|
|
673
|
-
const value = this.centerTextSize();
|
|
674
|
-
if (this.initialized && value !== undefined) {
|
|
675
|
-
this.chart.centerTextSize = value;
|
|
676
|
-
}
|
|
677
|
-
});
|
|
678
|
-
effect(() => {
|
|
679
|
-
const value = this.drawSliceText();
|
|
680
|
-
if (this.initialized && value !== undefined) {
|
|
681
|
-
this.chart.drawSliceText = value;
|
|
682
|
-
}
|
|
683
|
-
});
|
|
684
|
-
effect(() => {
|
|
685
|
-
const value = this.sliceTextSize();
|
|
686
|
-
if (this.initialized && value !== undefined) {
|
|
687
|
-
this.chart.sliceTextSize = value;
|
|
688
|
-
}
|
|
689
|
-
});
|
|
690
|
-
effect(() => {
|
|
691
|
-
const value = this.sliceTextColor();
|
|
692
|
-
if (this.initialized && value !== undefined) {
|
|
693
|
-
this.chart.sliceTextColor = value;
|
|
694
|
-
}
|
|
695
|
-
});
|
|
696
|
-
effect(() => {
|
|
697
|
-
const value = this.usePercentValues();
|
|
698
|
-
if (this.initialized && value !== undefined) {
|
|
699
|
-
this.chart.usePercentValues = value;
|
|
700
|
-
}
|
|
701
|
-
});
|
|
702
|
-
effect(() => {
|
|
703
|
-
const value = this.maxAngle();
|
|
704
|
-
if (this.initialized && value !== undefined) {
|
|
705
|
-
this.chart.maxAngle = value;
|
|
706
|
-
}
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
applyInitialProperties() {
|
|
710
|
-
super.applyInitialProperties();
|
|
711
|
-
if (!this.chart)
|
|
712
|
-
return;
|
|
713
|
-
const data = this.data();
|
|
714
|
-
if (data)
|
|
715
|
-
this.chart.data = data;
|
|
716
|
-
const drawHole = this.drawHole();
|
|
717
|
-
if (drawHole !== undefined)
|
|
718
|
-
this.chart.drawHole = drawHole;
|
|
719
|
-
const holeRadius = this.holeRadius();
|
|
720
|
-
if (holeRadius !== undefined)
|
|
721
|
-
this.chart.holeRadius = holeRadius;
|
|
722
|
-
const transparentCircleRadius = this.transparentCircleRadius();
|
|
723
|
-
if (transparentCircleRadius !== undefined)
|
|
724
|
-
this.chart.transparentCircleRadius = transparentCircleRadius;
|
|
725
|
-
const holeColor = this.holeColor();
|
|
726
|
-
if (holeColor)
|
|
727
|
-
this.chart.holeColor = holeColor;
|
|
728
|
-
const transparentCircleColor = this.transparentCircleColor();
|
|
729
|
-
if (transparentCircleColor)
|
|
730
|
-
this.chart.transparentCircleColor = transparentCircleColor;
|
|
731
|
-
const drawCenterText = this.drawCenterText();
|
|
732
|
-
if (drawCenterText !== undefined)
|
|
733
|
-
this.chart.drawCenterText = drawCenterText;
|
|
734
|
-
const centerText = this.centerText();
|
|
735
|
-
if (centerText)
|
|
736
|
-
this.chart.centerText = centerText;
|
|
737
|
-
const centerTextColor = this.centerTextColor();
|
|
738
|
-
if (centerTextColor)
|
|
739
|
-
this.chart.centerTextColor = centerTextColor;
|
|
740
|
-
const centerTextSize = this.centerTextSize();
|
|
741
|
-
if (centerTextSize !== undefined)
|
|
742
|
-
this.chart.centerTextSize = centerTextSize;
|
|
743
|
-
const drawSliceText = this.drawSliceText();
|
|
744
|
-
if (drawSliceText !== undefined)
|
|
745
|
-
this.chart.drawSliceText = drawSliceText;
|
|
746
|
-
const sliceTextSize = this.sliceTextSize();
|
|
747
|
-
if (sliceTextSize !== undefined)
|
|
748
|
-
this.chart.sliceTextSize = sliceTextSize;
|
|
749
|
-
const sliceTextColor = this.sliceTextColor();
|
|
750
|
-
if (sliceTextColor)
|
|
751
|
-
this.chart.sliceTextColor = sliceTextColor;
|
|
752
|
-
const usePercentValues = this.usePercentValues();
|
|
753
|
-
if (usePercentValues !== undefined)
|
|
754
|
-
this.chart.usePercentValues = usePercentValues;
|
|
755
|
-
const maxAngle = this.maxAngle();
|
|
756
|
-
if (maxAngle !== undefined)
|
|
757
|
-
this.chart.maxAngle = maxAngle;
|
|
758
506
|
}
|
|
759
507
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PieChartDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
760
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
508
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.9", type: PieChartDirective, isStandalone: true, selector: "PieChart", usesInheritance: true, ngImport: i0 });
|
|
761
509
|
}
|
|
762
510
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: PieChartDirective, decorators: [{
|
|
763
511
|
type: Directive,
|
|
@@ -765,7 +513,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
765
513
|
selector: 'PieChart',
|
|
766
514
|
standalone: true,
|
|
767
515
|
}]
|
|
768
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }]
|
|
516
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
769
517
|
// ============================================================================
|
|
770
518
|
// Scatter Chart Directive
|
|
771
519
|
// ============================================================================
|
|
@@ -975,25 +723,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
975
723
|
// Combined Chart Directive
|
|
976
724
|
// ============================================================================
|
|
977
725
|
class CombinedChartDirective extends BarLineChartBaseDirective {
|
|
978
|
-
data = input(...(ngDevMode ? [undefined, { debugName: "data" }] : []));
|
|
979
726
|
constructor(elRef) {
|
|
980
727
|
super(elRef);
|
|
981
|
-
effect(() => {
|
|
982
|
-
const value = this.data();
|
|
983
|
-
if (this.initialized && value !== undefined) {
|
|
984
|
-
this.chart.data = value;
|
|
985
|
-
}
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
applyInitialProperties() {
|
|
989
|
-
super.applyInitialProperties();
|
|
990
|
-
const data = this.data();
|
|
991
|
-
if (data && this.chart) {
|
|
992
|
-
this.chart.data = data;
|
|
993
|
-
}
|
|
994
728
|
}
|
|
995
729
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: CombinedChartDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
996
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
730
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.9", type: CombinedChartDirective, isStandalone: true, selector: "CombinedChart", usesInheritance: true, ngImport: i0 });
|
|
997
731
|
}
|
|
998
732
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImport: i0, type: CombinedChartDirective, decorators: [{
|
|
999
733
|
type: Directive,
|
|
@@ -1001,7 +735,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
1001
735
|
selector: 'CombinedChart',
|
|
1002
736
|
standalone: true,
|
|
1003
737
|
}]
|
|
1004
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }]
|
|
738
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
1005
739
|
|
|
1006
740
|
/**
|
|
1007
741
|
* Register custom NativeScript chart views for Angular
|