@swimlane/ngx-charts 22.0.0-alpha.0 → 22.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +79 -0
- package/fesm2022/swimlane-ngx-charts.mjs +140 -26
- package/fesm2022/swimlane-ngx-charts.mjs.map +1 -1
- package/lib/bar-chart/bar-horizontal-2d.component.d.ts +1 -0
- package/lib/bar-chart/bar-horizontal.component.d.ts +1 -0
- package/lib/bar-chart/bar-vertical-stacked.component.d.ts +1 -0
- package/lib/bar-chart/bar-vertical.component.d.ts +1 -0
- package/lib/bar-chart/series-horizontal.component.d.ts +2 -2
- package/lib/bar-chart/series-vertical.component.d.ts +1 -1
- package/lib/box-chart/box-chart.component.d.ts +1 -0
- package/lib/bubble-chart/bubble-chart.component.d.ts +1 -0
- package/lib/gauge/gauge.component.d.ts +1 -0
- package/lib/gauge/linear-gauge.component.d.ts +1 -0
- package/lib/heat-map/heat-map.component.d.ts +1 -0
- package/lib/line-chart/line-chart.component.d.ts +1 -0
- package/lib/number-card/number-card.component.d.ts +1 -0
- package/lib/pie-chart/advanced-pie-chart.component.d.ts +1 -0
- package/lib/pie-chart/pie-chart.component.d.ts +1 -0
- package/lib/pie-chart/pie-grid.component.d.ts +1 -0
- package/lib/polar-chart/polar-chart.component.d.ts +1 -0
- package/lib/sankey/sankey.component.d.ts +8 -0
- package/lib/tree-map/tree-map.component.d.ts +1 -0
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Swimlane
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# ngx-charts
|
|
2
|
+
|
|
3
|
+
[](https://gitter.im/swimlane/ngx-charts?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
|
4
|
+
[](https://www.codacy.com/app/Swimlane/ngx-charts?utm_source=github.com&utm_medium=referral&utm_content=swimlane/ngx-charts&utm_campaign=Badge_Grade)
|
|
5
|
+
[](https://badge.fury.io/js/%40swimlane%2Fngx-charts)
|
|
6
|
+
[](https://npmjs.org/@swimlane/ngx-charts)
|
|
7
|
+
|
|
8
|
+
Declarative Charting Framework for Angular!
|
|
9
|
+
|
|
10
|
+
ngx-charts is unique because we don't merely wrap d3, nor any other chart engine for that matter. It is using Angular to render and animate the SVG elements with all of its binding and speed goodness, and uses d3 for the excellent math functions, scales, axis and shape generators. By having Angular do all of the rendering it opens us up to endless possibilities the Angular platform provides such as AoT, SSR, etc.
|
|
11
|
+
|
|
12
|
+
Data visualization is a science but that doesn't mean it has to be ugly. One of the big efforts we've made while creating this project is to make the charts aesthetically pleasing. The styles are also completely customizable through CSS, so you can override them as you please.
|
|
13
|
+
|
|
14
|
+
Also, constructing custom charts is possible by leveraging the various ngx-charts components that are exposed through the ngx-charts module.
|
|
15
|
+
|
|
16
|
+
For more info, check out the [documentation](https://swimlane.gitbook.io/ngx-charts) and the [demos](https://swimlane.github.io/ngx-charts/).
|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
### Chart Types
|
|
21
|
+
|
|
22
|
+
- Horizontal & Vertical Bar Charts (Standard, Grouped, Stacked, Normalized)
|
|
23
|
+
- Line
|
|
24
|
+
- Area (Standard, Stacked, Normalized)
|
|
25
|
+
- Pie (Explodable, Grid, Custom legends)
|
|
26
|
+
- Bubble
|
|
27
|
+
- Donut
|
|
28
|
+
- Gauge (Linear & Radial)
|
|
29
|
+
- Heatmap
|
|
30
|
+
- Treemap
|
|
31
|
+
- Number Cards
|
|
32
|
+
- Sankey Diagram
|
|
33
|
+
|
|
34
|
+
### Customization
|
|
35
|
+
|
|
36
|
+
- Autoscaling
|
|
37
|
+
- Timeline Filtering
|
|
38
|
+
- Line Interpolation
|
|
39
|
+
- Configurable Axis Labels
|
|
40
|
+
- Legends (Labels & Gradient)
|
|
41
|
+
- Advanced Label Positioning
|
|
42
|
+
- Real-time data support
|
|
43
|
+
- Advanced Tooltips
|
|
44
|
+
- Data point Event Handlers
|
|
45
|
+
- Works with ngUpgrade
|
|
46
|
+
|
|
47
|
+
## Install
|
|
48
|
+
|
|
49
|
+
To use ngx-charts in your project install it via [npm](https://www.npmjs.com/package/@swimlane/ngx-charts):
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
npm i @swimlane/ngx-charts --save
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Custom Charts
|
|
56
|
+
|
|
57
|
+
To learn how to use the ngx-charts components to build custom charts and find examples, please refer to our [Custom Charts Page](https://github.com/swimlane/ngx-charts/blob/master/docs/custom-charts.md).
|
|
58
|
+
|
|
59
|
+
## Release
|
|
60
|
+
|
|
61
|
+
- Checkout master (`git checkout master`)
|
|
62
|
+
- Pull master (`git pull`)
|
|
63
|
+
- Refresh node modules (`yarn install --frozen-lockfile`)
|
|
64
|
+
- Run tests (`yarn test`)
|
|
65
|
+
- Examine log to determine next version (X.Y.Z)
|
|
66
|
+
- Run `git checkout -b release/X.Y.Z`
|
|
67
|
+
- Update version in `projects/swimlane/ngx-charts/package.json`
|
|
68
|
+
- Update changelog in `projects/docs/changelog.md`
|
|
69
|
+
- Run `git commit -am "(release): X.Y.Z"`
|
|
70
|
+
- Run `git tag X.Y.Z`
|
|
71
|
+
- Run `git push origin HEAD --tags`
|
|
72
|
+
- Run `yarn publish:lib`
|
|
73
|
+
- Submit PR
|
|
74
|
+
|
|
75
|
+
## Credits
|
|
76
|
+
|
|
77
|
+
`ngx-charts` is a [Swimlane](http://swimlane.com) open-source project; we believe in giving back to the open-source community by sharing some of the projects we build for our application. Swimlane is an automated cyber security operations and incident response platform that enables cyber security teams to leverage threat intelligence, speed up incident response and automate security operations.
|
|
78
|
+
|
|
79
|
+
[SecOps Hub](http://secopshub.com) is an open, product-agnostic, online community for security professionals to share ideas, use cases, best practices, and incident response strategies.
|
|
@@ -7333,7 +7333,7 @@ class SeriesHorizontal {
|
|
|
7333
7333
|
this.barsForDataLabels = [];
|
|
7334
7334
|
this.barOrientation = BarOrientation;
|
|
7335
7335
|
}
|
|
7336
|
-
ngOnChanges(
|
|
7336
|
+
ngOnChanges() {
|
|
7337
7337
|
this.update();
|
|
7338
7338
|
}
|
|
7339
7339
|
update() {
|
|
@@ -7679,6 +7679,9 @@ class BarHorizontalComponent extends BaseChartComponent {
|
|
|
7679
7679
|
this.yAxisWidth = 0;
|
|
7680
7680
|
this.dataLabelMaxWidth = { negative: 0, positive: 0 };
|
|
7681
7681
|
}
|
|
7682
|
+
ngOnChanges() {
|
|
7683
|
+
this.update();
|
|
7684
|
+
}
|
|
7682
7685
|
update() {
|
|
7683
7686
|
super.update();
|
|
7684
7687
|
if (!this.showDataLabel) {
|
|
@@ -7811,7 +7814,7 @@ class BarHorizontalComponent extends BaseChartComponent {
|
|
|
7811
7814
|
this.deactivate.emit({ value: item, entries: this.activeEntries });
|
|
7812
7815
|
}
|
|
7813
7816
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: BarHorizontalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7814
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BarHorizontalComponent, isStandalone: false, selector: "ngx-charts-bar-horizontal", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", tooltipDisabled: "tooltipDisabled", gradient: "gradient", showGridLines: "showGridLines", activeEntries: "activeEntries", schemeType: "schemeType", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", barPadding: "barPadding", roundDomains: "roundDomains", roundEdges: "roundEdges", xScaleMax: "xScaleMax", xScaleMin: "xScaleMin", showDataLabel: "showDataLabel", dataLabelFormatting: "dataLabelFormatting", noBarWhenZero: "noBarWhenZero", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
7817
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BarHorizontalComponent, isStandalone: false, selector: "ngx-charts-bar-horizontal", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", tooltipDisabled: "tooltipDisabled", gradient: "gradient", showGridLines: "showGridLines", activeEntries: "activeEntries", schemeType: "schemeType", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", barPadding: "barPadding", roundDomains: "roundDomains", roundEdges: "roundEdges", xScaleMax: "xScaleMax", xScaleMin: "xScaleMin", showDataLabel: "showDataLabel", dataLabelFormatting: "dataLabelFormatting", noBarWhenZero: "noBarWhenZero", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
7815
7818
|
<ngx-charts-chart
|
|
7816
7819
|
[view]="[width, height]"
|
|
7817
7820
|
[showLegend]="legend"
|
|
@@ -8059,6 +8062,9 @@ class BarHorizontal2DComponent extends BaseChartComponent {
|
|
|
8059
8062
|
this.isSSR = true;
|
|
8060
8063
|
}
|
|
8061
8064
|
}
|
|
8065
|
+
ngOnChanges() {
|
|
8066
|
+
this.update();
|
|
8067
|
+
}
|
|
8062
8068
|
update() {
|
|
8063
8069
|
super.update();
|
|
8064
8070
|
if (!this.showDataLabel) {
|
|
@@ -8232,7 +8238,7 @@ class BarHorizontal2DComponent extends BaseChartComponent {
|
|
|
8232
8238
|
this.deactivate.emit({ value: item, entries: this.activeEntries });
|
|
8233
8239
|
}
|
|
8234
8240
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: BarHorizontal2DComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
8235
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BarHorizontal2DComponent, isStandalone: false, selector: "ngx-charts-bar-horizontal-2d", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", tooltipDisabled: "tooltipDisabled", gradient: "gradient", showGridLines: "showGridLines", activeEntries: "activeEntries", schemeType: "schemeType", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", groupPadding: "groupPadding", barPadding: "barPadding", roundDomains: "roundDomains", roundEdges: "roundEdges", xScaleMax: "xScaleMax", showDataLabel: "showDataLabel", dataLabelFormatting: "dataLabelFormatting", noBarWhenZero: "noBarWhenZero", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
8241
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BarHorizontal2DComponent, isStandalone: false, selector: "ngx-charts-bar-horizontal-2d", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", tooltipDisabled: "tooltipDisabled", gradient: "gradient", showGridLines: "showGridLines", activeEntries: "activeEntries", schemeType: "schemeType", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", groupPadding: "groupPadding", barPadding: "barPadding", roundDomains: "roundDomains", roundEdges: "roundEdges", xScaleMax: "xScaleMax", showDataLabel: "showDataLabel", dataLabelFormatting: "dataLabelFormatting", noBarWhenZero: "noBarWhenZero", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
8236
8242
|
<ngx-charts-chart
|
|
8237
8243
|
[view]="[width, height]"
|
|
8238
8244
|
[showLegend]="legend"
|
|
@@ -9536,7 +9542,7 @@ class SeriesVerticalComponent {
|
|
|
9536
9542
|
this.isSSR = true;
|
|
9537
9543
|
}
|
|
9538
9544
|
}
|
|
9539
|
-
ngOnChanges(
|
|
9545
|
+
ngOnChanges() {
|
|
9540
9546
|
this.update();
|
|
9541
9547
|
}
|
|
9542
9548
|
update() {
|
|
@@ -9957,6 +9963,9 @@ class BarVerticalComponent extends BaseChartComponent {
|
|
|
9957
9963
|
this.yAxisWidth = 0;
|
|
9958
9964
|
this.dataLabelMaxHeight = { negative: 0, positive: 0 };
|
|
9959
9965
|
}
|
|
9966
|
+
ngOnChanges() {
|
|
9967
|
+
this.update();
|
|
9968
|
+
}
|
|
9960
9969
|
update() {
|
|
9961
9970
|
super.update();
|
|
9962
9971
|
if (!this.showDataLabel) {
|
|
@@ -10098,7 +10107,7 @@ class BarVerticalComponent extends BaseChartComponent {
|
|
|
10098
10107
|
this.deactivate.emit({ value: item, entries: this.activeEntries });
|
|
10099
10108
|
}
|
|
10100
10109
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: BarVerticalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
10101
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BarVerticalComponent, isStandalone: false, selector: "ngx-charts-bar-vertical", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", tooltipDisabled: "tooltipDisabled", gradient: "gradient", showGridLines: "showGridLines", activeEntries: "activeEntries", schemeType: "schemeType", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", barPadding: "barPadding", roundDomains: "roundDomains", roundEdges: "roundEdges", yScaleMax: "yScaleMax", yScaleMin: "yScaleMin", showDataLabel: "showDataLabel", dataLabelFormatting: "dataLabelFormatting", noBarWhenZero: "noBarWhenZero", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
10110
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BarVerticalComponent, isStandalone: false, selector: "ngx-charts-bar-vertical", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", tooltipDisabled: "tooltipDisabled", gradient: "gradient", showGridLines: "showGridLines", activeEntries: "activeEntries", schemeType: "schemeType", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", barPadding: "barPadding", roundDomains: "roundDomains", roundEdges: "roundEdges", yScaleMax: "yScaleMax", yScaleMin: "yScaleMin", showDataLabel: "showDataLabel", dataLabelFormatting: "dataLabelFormatting", noBarWhenZero: "noBarWhenZero", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
10102
10111
|
<ngx-charts-chart
|
|
10103
10112
|
[view]="[width, height]"
|
|
10104
10113
|
[showLegend]="legend"
|
|
@@ -11320,6 +11329,9 @@ class BarVerticalStackedComponent extends BaseChartComponent {
|
|
|
11320
11329
|
this.isSSR = true;
|
|
11321
11330
|
}
|
|
11322
11331
|
}
|
|
11332
|
+
ngOnChanges() {
|
|
11333
|
+
this.update();
|
|
11334
|
+
}
|
|
11323
11335
|
update() {
|
|
11324
11336
|
super.update();
|
|
11325
11337
|
if (!this.showDataLabel) {
|
|
@@ -11499,7 +11511,7 @@ class BarVerticalStackedComponent extends BaseChartComponent {
|
|
|
11499
11511
|
this.deactivate.emit({ value: item, entries: this.activeEntries });
|
|
11500
11512
|
}
|
|
11501
11513
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: BarVerticalStackedComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
11502
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BarVerticalStackedComponent, isStandalone: false, selector: "ngx-charts-bar-vertical-stacked", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", tooltipDisabled: "tooltipDisabled", gradient: "gradient", showGridLines: "showGridLines", activeEntries: "activeEntries", schemeType: "schemeType", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", barPadding: "barPadding", roundDomains: "roundDomains", yScaleMax: "yScaleMax", showDataLabel: "showDataLabel", dataLabelFormatting: "dataLabelFormatting", noBarWhenZero: "noBarWhenZero", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
11514
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BarVerticalStackedComponent, isStandalone: false, selector: "ngx-charts-bar-vertical-stacked", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", tooltipDisabled: "tooltipDisabled", gradient: "gradient", showGridLines: "showGridLines", activeEntries: "activeEntries", schemeType: "schemeType", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", barPadding: "barPadding", roundDomains: "roundDomains", yScaleMax: "yScaleMax", showDataLabel: "showDataLabel", dataLabelFormatting: "dataLabelFormatting", noBarWhenZero: "noBarWhenZero", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
11503
11515
|
<ngx-charts-chart
|
|
11504
11516
|
[view]="[width, height]"
|
|
11505
11517
|
[showLegend]="legend"
|
|
@@ -12511,6 +12523,9 @@ class BoxChartComponent extends BaseChartComponent {
|
|
|
12511
12523
|
/** Chart Y axis dimension. */
|
|
12512
12524
|
this.yAxisWidth = 0;
|
|
12513
12525
|
}
|
|
12526
|
+
ngOnChanges() {
|
|
12527
|
+
this.update();
|
|
12528
|
+
}
|
|
12514
12529
|
trackBy(index, item) {
|
|
12515
12530
|
return item.name;
|
|
12516
12531
|
}
|
|
@@ -12645,7 +12660,7 @@ class BoxChartComponent extends BaseChartComponent {
|
|
|
12645
12660
|
return legendOpts;
|
|
12646
12661
|
}
|
|
12647
12662
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: BoxChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
12648
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BoxChartComponent, isStandalone: false, selector: "ngx-charts-box-chart", inputs: { legend: "legend", legendPosition: "legendPosition", legendTitle: "legendTitle", legendOptionsConfig: "legendOptionsConfig", showGridLines: "showGridLines", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", roundDomains: "roundDomains", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", roundEdges: "roundEdges", strokeColor: "strokeColor", strokeWidth: "strokeWidth", tooltipDisabled: "tooltipDisabled", gradient: "gradient", wrapTicks: "wrapTicks" }, outputs: { select: "select", activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
12663
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BoxChartComponent, isStandalone: false, selector: "ngx-charts-box-chart", inputs: { legend: "legend", legendPosition: "legendPosition", legendTitle: "legendTitle", legendOptionsConfig: "legendOptionsConfig", showGridLines: "showGridLines", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", roundDomains: "roundDomains", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", roundEdges: "roundEdges", strokeColor: "strokeColor", strokeWidth: "strokeWidth", tooltipDisabled: "tooltipDisabled", gradient: "gradient", wrapTicks: "wrapTicks" }, outputs: { select: "select", activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
12649
12664
|
<ngx-charts-chart
|
|
12650
12665
|
[view]="[width, height]"
|
|
12651
12666
|
[showLegend]="legend"
|
|
@@ -13189,6 +13204,9 @@ class BubbleChartComponent extends BaseChartComponent {
|
|
|
13189
13204
|
this.isSSR = true;
|
|
13190
13205
|
}
|
|
13191
13206
|
}
|
|
13207
|
+
ngOnChanges() {
|
|
13208
|
+
this.update();
|
|
13209
|
+
}
|
|
13192
13210
|
update() {
|
|
13193
13211
|
super.update();
|
|
13194
13212
|
this.dims = calculateViewDimensions({
|
|
@@ -13367,7 +13385,7 @@ class BubbleChartComponent extends BaseChartComponent {
|
|
|
13367
13385
|
return `${item.name}`;
|
|
13368
13386
|
}
|
|
13369
13387
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: BubbleChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
13370
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BubbleChartComponent, isStandalone: false, selector: "ngx-charts-bubble-chart", inputs: { showGridLines: "showGridLines", legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", roundDomains: "roundDomains", maxRadius: "maxRadius", minRadius: "minRadius", autoScale: "autoScale", schemeType: "schemeType", tooltipDisabled: "tooltipDisabled", xScaleMin: "xScaleMin", xScaleMax: "xScaleMax", yScaleMin: "yScaleMin", yScaleMax: "yScaleMax", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, host: { listeners: { "mouseleave": "hideCircles()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
13388
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: BubbleChartComponent, isStandalone: false, selector: "ngx-charts-bubble-chart", inputs: { showGridLines: "showGridLines", legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", roundDomains: "roundDomains", maxRadius: "maxRadius", minRadius: "minRadius", autoScale: "autoScale", schemeType: "schemeType", tooltipDisabled: "tooltipDisabled", xScaleMin: "xScaleMin", xScaleMax: "xScaleMax", yScaleMin: "yScaleMin", yScaleMax: "yScaleMax", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, host: { listeners: { "mouseleave": "hideCircles()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
13371
13389
|
<ngx-charts-chart
|
|
13372
13390
|
[view]="[width, height]"
|
|
13373
13391
|
[showLegend]="legend"
|
|
@@ -13984,6 +14002,9 @@ class HeatMapComponent extends BaseChartComponent {
|
|
|
13984
14002
|
this.yAxisWidth = 0;
|
|
13985
14003
|
this.scaleType = ScaleType.Linear;
|
|
13986
14004
|
}
|
|
14005
|
+
ngOnChanges() {
|
|
14006
|
+
this.update();
|
|
14007
|
+
}
|
|
13987
14008
|
update() {
|
|
13988
14009
|
super.update();
|
|
13989
14010
|
this.formatDates();
|
|
@@ -14166,7 +14187,7 @@ class HeatMapComponent extends BaseChartComponent {
|
|
|
14166
14187
|
this.deactivate.emit({ value: item, entries: this.activeEntries });
|
|
14167
14188
|
}
|
|
14168
14189
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: HeatMapComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
14169
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: HeatMapComponent, isStandalone: false, selector: "ngx-charts-heat-map", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", gradient: "gradient", innerPadding: "innerPadding", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", tooltipDisabled: "tooltipDisabled", tooltipText: "tooltipText", min: "min", max: "max", activeEntries: "activeEntries", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
14190
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: HeatMapComponent, isStandalone: false, selector: "ngx-charts-heat-map", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", gradient: "gradient", innerPadding: "innerPadding", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", tooltipDisabled: "tooltipDisabled", tooltipText: "tooltipText", min: "min", max: "max", activeEntries: "activeEntries", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
14170
14191
|
<ngx-charts-chart
|
|
14171
14192
|
[view]="[width, height]"
|
|
14172
14193
|
[showLegend]="legend"
|
|
@@ -14774,6 +14795,9 @@ class LineChartComponent extends BaseChartComponent {
|
|
|
14774
14795
|
this.isSSR = true;
|
|
14775
14796
|
}
|
|
14776
14797
|
}
|
|
14798
|
+
ngOnChanges() {
|
|
14799
|
+
this.update();
|
|
14800
|
+
}
|
|
14777
14801
|
update() {
|
|
14778
14802
|
super.update();
|
|
14779
14803
|
this.dims = calculateViewDimensions({
|
|
@@ -14988,7 +15012,7 @@ class LineChartComponent extends BaseChartComponent {
|
|
|
14988
15012
|
this.activeEntries = [];
|
|
14989
15013
|
}
|
|
14990
15014
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: LineChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
14991
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: LineChartComponent, isStandalone: false, selector: "ngx-charts-line-chart", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", autoScale: "autoScale", timeline: "timeline", gradient: "gradient", showGridLines: "showGridLines", curve: "curve", activeEntries: "activeEntries", schemeType: "schemeType", rangeFillOpacity: "rangeFillOpacity", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", roundDomains: "roundDomains", tooltipDisabled: "tooltipDisabled", showRefLines: "showRefLines", referenceLines: "referenceLines", showRefLabels: "showRefLabels", xScaleMin: "xScaleMin", xScaleMax: "xScaleMax", yScaleMin: "yScaleMin", yScaleMax: "yScaleMax", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, host: { listeners: { "mouseleave": "hideCircles()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }, { propertyName: "seriesTooltipTemplate", first: true, predicate: ["seriesTooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
15015
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: LineChartComponent, isStandalone: false, selector: "ngx-charts-line-chart", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", autoScale: "autoScale", timeline: "timeline", gradient: "gradient", showGridLines: "showGridLines", curve: "curve", activeEntries: "activeEntries", schemeType: "schemeType", rangeFillOpacity: "rangeFillOpacity", trimXAxisTicks: "trimXAxisTicks", trimYAxisTicks: "trimYAxisTicks", rotateXAxisTicks: "rotateXAxisTicks", maxXAxisTickLength: "maxXAxisTickLength", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", xAxisTicks: "xAxisTicks", yAxisTicks: "yAxisTicks", roundDomains: "roundDomains", tooltipDisabled: "tooltipDisabled", showRefLines: "showRefLines", referenceLines: "referenceLines", showRefLabels: "showRefLabels", xScaleMin: "xScaleMin", xScaleMax: "xScaleMax", yScaleMin: "yScaleMin", yScaleMax: "yScaleMax", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, host: { listeners: { "mouseleave": "hideCircles()" } }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }, { propertyName: "seriesTooltipTemplate", first: true, predicate: ["seriesTooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
14992
15016
|
<ngx-charts-chart
|
|
14993
15017
|
[view]="[width, height]"
|
|
14994
15018
|
[showLegend]="legend"
|
|
@@ -15836,6 +15860,9 @@ class PolarChartComponent extends BaseChartComponent {
|
|
|
15836
15860
|
this.isSSR = true;
|
|
15837
15861
|
}
|
|
15838
15862
|
}
|
|
15863
|
+
ngOnChanges() {
|
|
15864
|
+
this.update();
|
|
15865
|
+
}
|
|
15839
15866
|
update() {
|
|
15840
15867
|
super.update();
|
|
15841
15868
|
this.setDims();
|
|
@@ -16078,7 +16105,7 @@ class PolarChartComponent extends BaseChartComponent {
|
|
|
16078
16105
|
return `${item.name}`;
|
|
16079
16106
|
}
|
|
16080
16107
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PolarChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
16081
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: PolarChartComponent, isStandalone: false, selector: "ngx-charts-polar-chart", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", autoScale: "autoScale", showGridLines: "showGridLines", curve: "curve", activeEntries: "activeEntries", schemeType: "schemeType", rangeFillOpacity: "rangeFillOpacity", trimYAxisTicks: "trimYAxisTicks", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", roundDomains: "roundDomains", tooltipDisabled: "tooltipDisabled", showSeriesOnHover: "showSeriesOnHover", gradient: "gradient", yAxisMinScale: "yAxisMinScale", labelTrim: "labelTrim", labelTrimSize: "labelTrimSize", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
16108
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: PolarChartComponent, isStandalone: false, selector: "ngx-charts-polar-chart", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", xAxis: "xAxis", yAxis: "yAxis", showXAxisLabel: "showXAxisLabel", showYAxisLabel: "showYAxisLabel", xAxisLabel: "xAxisLabel", yAxisLabel: "yAxisLabel", autoScale: "autoScale", showGridLines: "showGridLines", curve: "curve", activeEntries: "activeEntries", schemeType: "schemeType", rangeFillOpacity: "rangeFillOpacity", trimYAxisTicks: "trimYAxisTicks", maxYAxisTickLength: "maxYAxisTickLength", xAxisTickFormatting: "xAxisTickFormatting", yAxisTickFormatting: "yAxisTickFormatting", roundDomains: "roundDomains", tooltipDisabled: "tooltipDisabled", showSeriesOnHover: "showSeriesOnHover", gradient: "gradient", yAxisMinScale: "yAxisMinScale", labelTrim: "labelTrim", labelTrimSize: "labelTrimSize", wrapTicks: "wrapTicks" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
16082
16109
|
<ngx-charts-chart
|
|
16083
16110
|
[view]="[width, height]"
|
|
16084
16111
|
[showLegend]="legend"
|
|
@@ -16838,6 +16865,9 @@ class AdvancedPieChartComponent extends BaseChartComponent {
|
|
|
16838
16865
|
this.deactivate = new EventEmitter();
|
|
16839
16866
|
this.margin = [20, 20, 20, 20];
|
|
16840
16867
|
}
|
|
16868
|
+
ngOnChanges() {
|
|
16869
|
+
this.update();
|
|
16870
|
+
}
|
|
16841
16871
|
update() {
|
|
16842
16872
|
super.update();
|
|
16843
16873
|
this.dims = calculateViewDimensions({
|
|
@@ -16899,7 +16929,7 @@ class AdvancedPieChartComponent extends BaseChartComponent {
|
|
|
16899
16929
|
this.deactivate.emit({ value: item, entries: this.activeEntries });
|
|
16900
16930
|
}
|
|
16901
16931
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AdvancedPieChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
16902
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: AdvancedPieChartComponent, isStandalone: false, selector: "ngx-charts-advanced-pie-chart", inputs: { gradient: "gradient", activeEntries: "activeEntries", tooltipDisabled: "tooltipDisabled", tooltipText: "tooltipText", label: "label", valueFormatting: "valueFormatting", nameFormatting: "nameFormatting", percentageFormatting: "percentageFormatting" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
16932
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: AdvancedPieChartComponent, isStandalone: false, selector: "ngx-charts-advanced-pie-chart", inputs: { gradient: "gradient", activeEntries: "activeEntries", tooltipDisabled: "tooltipDisabled", tooltipText: "tooltipText", label: "label", valueFormatting: "valueFormatting", nameFormatting: "nameFormatting", percentageFormatting: "percentageFormatting" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
16903
16933
|
<div [style.width.px]="width" [style.height.px]="height">
|
|
16904
16934
|
<div class="advanced-pie chart" [style.width.px]="dims.width" [style.height.px]="dims.height">
|
|
16905
16935
|
<ngx-charts-chart [view]="[width, height]" [showLegend]="false" [animations]="animations">
|
|
@@ -17030,6 +17060,9 @@ class PieChartComponent extends BaseChartComponent {
|
|
|
17030
17060
|
this.activate = new EventEmitter();
|
|
17031
17061
|
this.deactivate = new EventEmitter();
|
|
17032
17062
|
}
|
|
17063
|
+
ngOnChanges() {
|
|
17064
|
+
this.update();
|
|
17065
|
+
}
|
|
17033
17066
|
update() {
|
|
17034
17067
|
super.update();
|
|
17035
17068
|
if (this.labels && this.hasNoOptionalMarginsSet()) {
|
|
@@ -17126,7 +17159,7 @@ class PieChartComponent extends BaseChartComponent {
|
|
|
17126
17159
|
return !this.margins || this.margins.length <= 0;
|
|
17127
17160
|
}
|
|
17128
17161
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PieChartComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
17129
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: PieChartComponent, isStandalone: false, selector: "ngx-charts-pie-chart", inputs: { labels: "labels", legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", explodeSlices: "explodeSlices", doughnut: "doughnut", arcWidth: "arcWidth", gradient: "gradient", activeEntries: "activeEntries", tooltipDisabled: "tooltipDisabled", labelFormatting: "labelFormatting", trimLabels: "trimLabels", maxLabelLength: "maxLabelLength", tooltipText: "tooltipText", margins: "margins" }, outputs: { dblclick: "dblclick", select: "select", activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
17162
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: PieChartComponent, isStandalone: false, selector: "ngx-charts-pie-chart", inputs: { labels: "labels", legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", explodeSlices: "explodeSlices", doughnut: "doughnut", arcWidth: "arcWidth", gradient: "gradient", activeEntries: "activeEntries", tooltipDisabled: "tooltipDisabled", labelFormatting: "labelFormatting", trimLabels: "trimLabels", maxLabelLength: "maxLabelLength", tooltipText: "tooltipText", margins: "margins" }, outputs: { dblclick: "dblclick", select: "select", activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
17130
17163
|
<ngx-charts-chart
|
|
17131
17164
|
[view]="[width, height]"
|
|
17132
17165
|
[showLegend]="legend"
|
|
@@ -17435,6 +17468,9 @@ class PieGridComponent extends BaseChartComponent {
|
|
|
17435
17468
|
this.placementTypes = PlacementTypes;
|
|
17436
17469
|
this.styleTypes = StyleTypes;
|
|
17437
17470
|
}
|
|
17471
|
+
ngOnChanges() {
|
|
17472
|
+
this.update();
|
|
17473
|
+
}
|
|
17438
17474
|
update() {
|
|
17439
17475
|
super.update();
|
|
17440
17476
|
this.dims = calculateViewDimensions({
|
|
@@ -17550,7 +17586,7 @@ class PieGridComponent extends BaseChartComponent {
|
|
|
17550
17586
|
this.deactivate.emit({ value: item, entries: this.activeEntries });
|
|
17551
17587
|
}
|
|
17552
17588
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: PieGridComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
17553
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: PieGridComponent, isStandalone: false, selector: "ngx-charts-pie-grid", inputs: { designatedTotal: "designatedTotal", tooltipDisabled: "tooltipDisabled", tooltipText: "tooltipText", label: "label", minWidth: "minWidth", activeEntries: "activeEntries" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
17589
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: PieGridComponent, isStandalone: false, selector: "ngx-charts-pie-grid", inputs: { designatedTotal: "designatedTotal", tooltipDisabled: "tooltipDisabled", tooltipText: "tooltipText", label: "label", minWidth: "minWidth", activeEntries: "activeEntries" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
17554
17590
|
<ngx-charts-chart [view]="[width, height]" [showLegend]="false" [animations]="animations">
|
|
17555
17591
|
<svg:g [attr.transform]="transform" class="pie-grid chart">
|
|
17556
17592
|
<svg:g *ngFor="let series of series" class="pie-grid-item" [attr.transform]="series.transform">
|
|
@@ -18319,6 +18355,9 @@ class NumberCardComponent extends BaseChartComponent {
|
|
|
18319
18355
|
this.innerPadding = 15;
|
|
18320
18356
|
this.margin = [10, 10, 10, 10];
|
|
18321
18357
|
}
|
|
18358
|
+
ngOnChanges() {
|
|
18359
|
+
this.update();
|
|
18360
|
+
}
|
|
18322
18361
|
get clickable() {
|
|
18323
18362
|
return !!this.select.observers.length;
|
|
18324
18363
|
}
|
|
@@ -18351,7 +18390,7 @@ class NumberCardComponent extends BaseChartComponent {
|
|
|
18351
18390
|
this.colors = new ColorHelper(this.scheme, ScaleType.Ordinal, this.domain, this.customColors);
|
|
18352
18391
|
}
|
|
18353
18392
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NumberCardComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
18354
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: NumberCardComponent, isStandalone: false, selector: "ngx-charts-number-card", inputs: { cardColor: "cardColor", bandColor: "bandColor", emptyColor: "emptyColor", innerPadding: "innerPadding", textColor: "textColor", valueFormatting: "valueFormatting", labelFormatting: "labelFormatting", designatedTotal: "designatedTotal" }, usesInheritance: true, ngImport: i0, template: `
|
|
18393
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: NumberCardComponent, isStandalone: false, selector: "ngx-charts-number-card", inputs: { cardColor: "cardColor", bandColor: "bandColor", emptyColor: "emptyColor", innerPadding: "innerPadding", textColor: "textColor", valueFormatting: "valueFormatting", labelFormatting: "labelFormatting", designatedTotal: "designatedTotal" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
18355
18394
|
<ngx-charts-chart [view]="[width, height]" [showLegend]="false" [animations]="animations">
|
|
18356
18395
|
<svg:g [attr.transform]="transform" class="number-card chart" [class.clickable]="clickable">
|
|
18357
18396
|
<svg:g
|
|
@@ -18767,6 +18806,9 @@ class TreeMapComponent extends BaseChartComponent {
|
|
|
18767
18806
|
this.select = new EventEmitter();
|
|
18768
18807
|
this.margin = [10, 10, 10, 10];
|
|
18769
18808
|
}
|
|
18809
|
+
ngOnChanges() {
|
|
18810
|
+
this.update();
|
|
18811
|
+
}
|
|
18770
18812
|
update() {
|
|
18771
18813
|
super.update();
|
|
18772
18814
|
this.dims = calculateViewDimensions({
|
|
@@ -18808,7 +18850,7 @@ class TreeMapComponent extends BaseChartComponent {
|
|
|
18808
18850
|
this.colors = new ColorHelper(this.scheme, ScaleType.Ordinal, this.domain, this.customColors);
|
|
18809
18851
|
}
|
|
18810
18852
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: TreeMapComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
18811
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: TreeMapComponent, isStandalone: false, selector: "ngx-charts-tree-map", inputs: { results: "results", tooltipDisabled: "tooltipDisabled", valueFormatting: "valueFormatting", labelFormatting: "labelFormatting", gradient: "gradient" }, outputs: { select: "select" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
18853
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: TreeMapComponent, isStandalone: false, selector: "ngx-charts-tree-map", inputs: { results: "results", tooltipDisabled: "tooltipDisabled", valueFormatting: "valueFormatting", labelFormatting: "labelFormatting", gradient: "gradient" }, outputs: { select: "select" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
18812
18854
|
<ngx-charts-chart [view]="[width, height]" [showLegend]="false" [animations]="animations">
|
|
18813
18855
|
<svg:g [attr.transform]="transform" class="tree-map chart">
|
|
18814
18856
|
<svg:g
|
|
@@ -18907,6 +18949,9 @@ class LinearGaugeComponent extends BaseChartComponent {
|
|
|
18907
18949
|
this.scaleText(ElementType.Units);
|
|
18908
18950
|
});
|
|
18909
18951
|
}
|
|
18952
|
+
ngOnChanges() {
|
|
18953
|
+
this.update();
|
|
18954
|
+
}
|
|
18910
18955
|
update() {
|
|
18911
18956
|
super.update();
|
|
18912
18957
|
this.hasPreviousValue = this.previousValue !== undefined;
|
|
@@ -19019,7 +19064,7 @@ class LinearGaugeComponent extends BaseChartComponent {
|
|
|
19019
19064
|
this.colors = new ColorHelper(this.scheme, ScaleType.Ordinal, [this.value], this.customColors);
|
|
19020
19065
|
}
|
|
19021
19066
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: LinearGaugeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
19022
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: LinearGaugeComponent, isStandalone: false, selector: "ngx-charts-linear-gauge", inputs: { min: "min", max: "max", value: "value", units: "units", previousValue: "previousValue", valueFormatting: "valueFormatting" }, viewQueries: [{ propertyName: "valueTextEl", first: true, predicate: ["valueTextEl"], descendants: true }, { propertyName: "unitsTextEl", first: true, predicate: ["unitsTextEl"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
19067
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: LinearGaugeComponent, isStandalone: false, selector: "ngx-charts-linear-gauge", inputs: { min: "min", max: "max", value: "value", units: "units", previousValue: "previousValue", valueFormatting: "valueFormatting" }, viewQueries: [{ propertyName: "valueTextEl", first: true, predicate: ["valueTextEl"], descendants: true }, { propertyName: "unitsTextEl", first: true, predicate: ["unitsTextEl"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
19023
19068
|
<ngx-charts-chart [view]="[width, height]" [showLegend]="false" [animations]="animations" (click)="onClick()">
|
|
19024
19069
|
<svg:g class="linear-gauge chart">
|
|
19025
19070
|
<svg:g
|
|
@@ -19502,6 +19547,9 @@ class GaugeComponent extends BaseChartComponent {
|
|
|
19502
19547
|
this.textTransform = 'scale(1, 1)';
|
|
19503
19548
|
this.cornerRadius = 10;
|
|
19504
19549
|
}
|
|
19550
|
+
ngOnChanges() {
|
|
19551
|
+
this.update();
|
|
19552
|
+
}
|
|
19505
19553
|
ngAfterViewInit() {
|
|
19506
19554
|
super.ngAfterViewInit();
|
|
19507
19555
|
setTimeout(() => this.scaleText());
|
|
@@ -19682,7 +19730,7 @@ class GaugeComponent extends BaseChartComponent {
|
|
|
19682
19730
|
return item.valueArc.data.name;
|
|
19683
19731
|
}
|
|
19684
19732
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: GaugeComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
19685
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: GaugeComponent, isStandalone: false, selector: "ngx-charts-gauge", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", min: "min", max: "max", textValue: "textValue", units: "units", bigSegments: "bigSegments", smallSegments: "smallSegments", results: "results", showAxis: "showAxis", startAngle: "startAngle", angleSpan: "angleSpan", activeEntries: "activeEntries", axisTickFormatting: "axisTickFormatting", tooltipDisabled: "tooltipDisabled", valueFormatting: "valueFormatting", showText: "showText", margin: "margin" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], viewQueries: [{ propertyName: "textEl", first: true, predicate: ["textEl"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
19733
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: GaugeComponent, isStandalone: false, selector: "ngx-charts-gauge", inputs: { legend: "legend", legendTitle: "legendTitle", legendPosition: "legendPosition", min: "min", max: "max", textValue: "textValue", units: "units", bigSegments: "bigSegments", smallSegments: "smallSegments", results: "results", showAxis: "showAxis", startAngle: "startAngle", angleSpan: "angleSpan", activeEntries: "activeEntries", axisTickFormatting: "axisTickFormatting", tooltipDisabled: "tooltipDisabled", valueFormatting: "valueFormatting", showText: "showText", margin: "margin" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], viewQueries: [{ propertyName: "textEl", first: true, predicate: ["textEl"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
19686
19734
|
<ngx-charts-chart
|
|
19687
19735
|
[view]="[width, height]"
|
|
19688
19736
|
[showLegend]="legend"
|
|
@@ -20180,6 +20228,10 @@ class SankeyComponent extends BaseChartComponent {
|
|
|
20180
20228
|
this.margin = [10, 10, 10, 10];
|
|
20181
20229
|
this.scaleType = ScaleType.Ordinal;
|
|
20182
20230
|
this.styleTypes = StyleTypes;
|
|
20231
|
+
this.chartHasActive = false;
|
|
20232
|
+
}
|
|
20233
|
+
ngOnChanges() {
|
|
20234
|
+
this.update();
|
|
20183
20235
|
}
|
|
20184
20236
|
update() {
|
|
20185
20237
|
super.update();
|
|
@@ -20281,13 +20333,67 @@ class SankeyComponent extends BaseChartComponent {
|
|
|
20281
20333
|
this.select.emit(data);
|
|
20282
20334
|
}
|
|
20283
20335
|
setColors() {
|
|
20284
|
-
this.colors = new ColorHelper(this.scheme, this.scaleType, this.valueDomain);
|
|
20336
|
+
this.colors = new ColorHelper(this.scheme, this.scaleType, this.valueDomain, this.customColors);
|
|
20285
20337
|
}
|
|
20286
20338
|
getValueDomain(nodes) {
|
|
20287
20339
|
return nodes.map(n => n.name);
|
|
20288
20340
|
}
|
|
20341
|
+
activateLink(link) {
|
|
20342
|
+
this.linkPaths.forEach(l => {
|
|
20343
|
+
l.active = false;
|
|
20344
|
+
});
|
|
20345
|
+
this.nodeRects.forEach(r => {
|
|
20346
|
+
if (r.data.name === link.source.name || r.data.name === link.target.name) {
|
|
20347
|
+
r.active = true;
|
|
20348
|
+
}
|
|
20349
|
+
else {
|
|
20350
|
+
r.active = false;
|
|
20351
|
+
}
|
|
20352
|
+
});
|
|
20353
|
+
link.active = true;
|
|
20354
|
+
this.activate.emit(link.data);
|
|
20355
|
+
}
|
|
20356
|
+
deactivateLink(link) {
|
|
20357
|
+
link.active = false;
|
|
20358
|
+
this.nodeRects.forEach(r => {
|
|
20359
|
+
r.active = false;
|
|
20360
|
+
});
|
|
20361
|
+
this.deactivate.emit(link.data);
|
|
20362
|
+
}
|
|
20363
|
+
activateRect(rect) {
|
|
20364
|
+
const links = this.linkPaths.filter(l => l.source.name === rect.data.name || l.target.name === rect.data.name);
|
|
20365
|
+
this.nodeRects.forEach(r => {
|
|
20366
|
+
if (links.some(l => l.source.name === r.data.name || l.target.name === r.data.name)) {
|
|
20367
|
+
r.active = true;
|
|
20368
|
+
}
|
|
20369
|
+
else {
|
|
20370
|
+
r.active = false;
|
|
20371
|
+
}
|
|
20372
|
+
});
|
|
20373
|
+
this.linkPaths.forEach(l => {
|
|
20374
|
+
if (l.source.name === rect.data.name || l.target.name === rect.data.name) {
|
|
20375
|
+
l.active = true;
|
|
20376
|
+
}
|
|
20377
|
+
else {
|
|
20378
|
+
l.active = false;
|
|
20379
|
+
}
|
|
20380
|
+
});
|
|
20381
|
+
this.activate.emit(rect.data);
|
|
20382
|
+
}
|
|
20383
|
+
deactivateRect(rect) {
|
|
20384
|
+
this.nodeRects.forEach(r => {
|
|
20385
|
+
r.active = false;
|
|
20386
|
+
});
|
|
20387
|
+
this.linkPaths.forEach(l => {
|
|
20388
|
+
l.active = false;
|
|
20389
|
+
});
|
|
20390
|
+
this.deactivate.emit(rect.data);
|
|
20391
|
+
}
|
|
20392
|
+
get hasActive() {
|
|
20393
|
+
return this.linkPaths.some(l => l.active) || this.nodeRects.some(r => r.active);
|
|
20394
|
+
}
|
|
20289
20395
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: SankeyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
20290
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: SankeyComponent, isStandalone: false, selector: "ngx-charts-sankey", inputs: { showLabels: "showLabels", gradient: "gradient", tooltipDisabled: "tooltipDisabled", activeEntries: "activeEntries", labelFormatting: "labelFormatting" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
20396
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.4", type: SankeyComponent, isStandalone: false, selector: "ngx-charts-sankey", inputs: { showLabels: "showLabels", gradient: "gradient", tooltipDisabled: "tooltipDisabled", activeEntries: "activeEntries", labelFormatting: "labelFormatting" }, outputs: { activate: "activate", deactivate: "deactivate" }, queries: [{ propertyName: "tooltipTemplate", first: true, predicate: ["tooltipTemplate"], descendants: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
20291
20397
|
<ngx-charts-chart [view]="[width, height]" [animations]="animations">
|
|
20292
20398
|
<svg:g [attr.transform]="transform" class="sankey chart">
|
|
20293
20399
|
<svg:g
|
|
@@ -20316,10 +20422,11 @@ class SankeyComponent extends BaseChartComponent {
|
|
|
20316
20422
|
[attr.d]="link.path"
|
|
20317
20423
|
[attr.stroke]="link.gradientFill"
|
|
20318
20424
|
[attr.stroke-width]="link.strokeWidth"
|
|
20319
|
-
stroke-opacity="0.5"
|
|
20425
|
+
[attr.stroke-opacity]="link.active ? 0.5 : hasActive ? 0.1 : 0.5"
|
|
20320
20426
|
fill="none"
|
|
20321
20427
|
(click)="select.emit(link.data)"
|
|
20322
|
-
(mouseenter)="
|
|
20428
|
+
(mouseenter)="activateLink(link)"
|
|
20429
|
+
(mouseleave)="deactivateLink(link)"
|
|
20323
20430
|
></svg:path>
|
|
20324
20431
|
</svg:g>
|
|
20325
20432
|
|
|
@@ -20330,6 +20437,7 @@ class SankeyComponent extends BaseChartComponent {
|
|
|
20330
20437
|
[attr.width]="rect.width"
|
|
20331
20438
|
[attr.height]="rect.height"
|
|
20332
20439
|
[attr.fill]="rect.fill"
|
|
20440
|
+
[attr.fill-opacity]="rect.active ? 1 : hasActive ? 0.3 : 1"
|
|
20333
20441
|
ngx-tooltip
|
|
20334
20442
|
[tooltipDisabled]="tooltipDisabled"
|
|
20335
20443
|
[tooltipType]="styleTypes.tooltip"
|
|
@@ -20338,7 +20446,8 @@ class SankeyComponent extends BaseChartComponent {
|
|
|
20338
20446
|
[tooltipTemplate]="tooltipTemplate"
|
|
20339
20447
|
[tooltipContext]="rect.data"
|
|
20340
20448
|
(click)="select.emit(rect.data)"
|
|
20341
|
-
(mouseenter)="
|
|
20449
|
+
(mouseenter)="activateRect(rect)"
|
|
20450
|
+
(mouseleave)="deactivateRect(rect)"
|
|
20342
20451
|
></svg:rect>
|
|
20343
20452
|
</svg:g>
|
|
20344
20453
|
|
|
@@ -20348,6 +20457,7 @@ class SankeyComponent extends BaseChartComponent {
|
|
|
20348
20457
|
class="label"
|
|
20349
20458
|
[attr.x]="rect.width + 5"
|
|
20350
20459
|
[attr.y]="rect.height / 2"
|
|
20460
|
+
[attr.fill-opacity]="rect.active ? 1 : hasActive ? 0.3 : 1"
|
|
20351
20461
|
[attr.text-anchor]="rect.labelAnchor"
|
|
20352
20462
|
dy="0.35em"
|
|
20353
20463
|
[attr.dx]="rect.labelAnchor === 'end' ? -25 : 0"
|
|
@@ -20390,10 +20500,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
20390
20500
|
[attr.d]="link.path"
|
|
20391
20501
|
[attr.stroke]="link.gradientFill"
|
|
20392
20502
|
[attr.stroke-width]="link.strokeWidth"
|
|
20393
|
-
stroke-opacity="0.5"
|
|
20503
|
+
[attr.stroke-opacity]="link.active ? 0.5 : hasActive ? 0.1 : 0.5"
|
|
20394
20504
|
fill="none"
|
|
20395
20505
|
(click)="select.emit(link.data)"
|
|
20396
|
-
(mouseenter)="
|
|
20506
|
+
(mouseenter)="activateLink(link)"
|
|
20507
|
+
(mouseleave)="deactivateLink(link)"
|
|
20397
20508
|
></svg:path>
|
|
20398
20509
|
</svg:g>
|
|
20399
20510
|
|
|
@@ -20404,6 +20515,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
20404
20515
|
[attr.width]="rect.width"
|
|
20405
20516
|
[attr.height]="rect.height"
|
|
20406
20517
|
[attr.fill]="rect.fill"
|
|
20518
|
+
[attr.fill-opacity]="rect.active ? 1 : hasActive ? 0.3 : 1"
|
|
20407
20519
|
ngx-tooltip
|
|
20408
20520
|
[tooltipDisabled]="tooltipDisabled"
|
|
20409
20521
|
[tooltipType]="styleTypes.tooltip"
|
|
@@ -20412,7 +20524,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
20412
20524
|
[tooltipTemplate]="tooltipTemplate"
|
|
20413
20525
|
[tooltipContext]="rect.data"
|
|
20414
20526
|
(click)="select.emit(rect.data)"
|
|
20415
|
-
(mouseenter)="
|
|
20527
|
+
(mouseenter)="activateRect(rect)"
|
|
20528
|
+
(mouseleave)="deactivateRect(rect)"
|
|
20416
20529
|
></svg:rect>
|
|
20417
20530
|
</svg:g>
|
|
20418
20531
|
|
|
@@ -20422,6 +20535,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
|
|
|
20422
20535
|
class="label"
|
|
20423
20536
|
[attr.x]="rect.width + 5"
|
|
20424
20537
|
[attr.y]="rect.height / 2"
|
|
20538
|
+
[attr.fill-opacity]="rect.active ? 1 : hasActive ? 0.3 : 1"
|
|
20425
20539
|
[attr.text-anchor]="rect.labelAnchor"
|
|
20426
20540
|
dy="0.35em"
|
|
20427
20541
|
[attr.dx]="rect.labelAnchor === 'end' ? -25 : 0"
|