@swimlane/ngx-charts 13.0.1 → 14.0.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/bundles/swimlane-ngx-charts.umd.js +112 -217
- package/bundles/swimlane-ngx-charts.umd.js.map +1 -1
- package/bundles/swimlane-ngx-charts.umd.min.js +1 -1
- package/bundles/swimlane-ngx-charts.umd.min.js.map +1 -1
- package/esm2015/lib/area-chart/area-chart-normalized.component.js +3 -5
- package/esm2015/lib/area-chart/area-chart-stacked.component.js +3 -5
- package/esm2015/lib/area-chart/area-chart.component.js +3 -5
- package/esm2015/lib/bar-chart/bar-horizontal-2d.component.js +4 -9
- package/esm2015/lib/bar-chart/bar-horizontal-normalized.component.js +4 -9
- package/esm2015/lib/bar-chart/bar-horizontal-stacked.component.js +4 -9
- package/esm2015/lib/bar-chart/bar-horizontal.component.js +4 -9
- package/esm2015/lib/bar-chart/bar-vertical-2d.component.js +4 -9
- package/esm2015/lib/bar-chart/bar-vertical-normalized.component.js +4 -9
- package/esm2015/lib/bar-chart/bar-vertical-stacked.component.js +4 -9
- package/esm2015/lib/bar-chart/bar-vertical.component.js +4 -9
- package/esm2015/lib/bar-chart/bar.component.js +2 -5
- package/esm2015/lib/bubble-chart/bubble-chart.component.js +3 -5
- package/esm2015/lib/bubble-chart/bubble-chart.utils.js +4 -10
- package/esm2015/lib/common/area.component.js +2 -5
- package/esm2015/lib/common/axes/x-axis-ticks.component.js +1 -1
- package/esm2015/lib/common/axes/y-axis-ticks.component.js +1 -1
- package/esm2015/lib/common/base-chart.component.js +2 -4
- package/esm2015/lib/common/color.helper.js +7 -19
- package/esm2015/lib/common/count/count.directive.js +2 -4
- package/esm2015/lib/common/legend/advanced-legend.component.js +1 -1
- package/esm2015/lib/common/legend/legend.component.js +1 -1
- package/esm2015/lib/common/legend/scale-legend.component.js +1 -1
- package/esm2015/lib/common/tick-format.helper.js +1 -1
- package/esm2015/lib/common/timeline/timeline.component.js +6 -17
- package/esm2015/lib/common/tooltip/injection.service.js +13 -7
- package/esm2015/lib/common/tooltip/tooltip.component.js +1 -1
- package/esm2015/lib/gauge/gauge.component.js +3 -6
- package/esm2015/lib/gauge/linear-gauge.component.js +3 -5
- package/esm2015/lib/heat-map/heat-map-cell.component.js +2 -5
- package/esm2015/lib/heat-map/heat-map.component.js +4 -10
- package/esm2015/lib/line-chart/line-chart.component.js +6 -15
- package/esm2015/lib/line-chart/line.component.js +2 -5
- package/esm2015/lib/number-card/number-card.component.js +1 -1
- package/esm2015/lib/pie-chart/advanced-pie-chart.component.js +1 -1
- package/esm2015/lib/pie-chart/pie-arc.component.js +2 -5
- package/esm2015/lib/pie-chart/pie-chart.component.js +1 -1
- package/esm2015/lib/pie-chart/pie-grid.component.js +1 -1
- package/esm2015/lib/pie-chart/pie-label.component.js +2 -4
- package/esm2015/lib/polar-chart/polar-chart.component.js +5 -11
- package/esm2015/lib/tree-map/tree-map-cell.component.js +3 -11
- package/esm2015/lib/utils/throttle.js +1 -1
- package/esm5/lib/area-chart/area-chart-normalized.component.js +3 -5
- package/esm5/lib/area-chart/area-chart-stacked.component.js +3 -5
- package/esm5/lib/area-chart/area-chart.component.js +3 -5
- package/esm5/lib/bar-chart/bar-horizontal-2d.component.js +4 -9
- package/esm5/lib/bar-chart/bar-horizontal-normalized.component.js +4 -9
- package/esm5/lib/bar-chart/bar-horizontal-stacked.component.js +4 -9
- package/esm5/lib/bar-chart/bar-horizontal.component.js +4 -9
- package/esm5/lib/bar-chart/bar-vertical-2d.component.js +4 -9
- package/esm5/lib/bar-chart/bar-vertical-normalized.component.js +4 -9
- package/esm5/lib/bar-chart/bar-vertical-stacked.component.js +4 -9
- package/esm5/lib/bar-chart/bar-vertical.component.js +4 -9
- package/esm5/lib/bar-chart/bar.component.js +2 -5
- package/esm5/lib/bubble-chart/bubble-chart.component.js +3 -5
- package/esm5/lib/bubble-chart/bubble-chart.utils.js +4 -10
- package/esm5/lib/common/area.component.js +2 -5
- package/esm5/lib/common/axes/x-axis-ticks.component.js +1 -1
- package/esm5/lib/common/axes/y-axis-ticks.component.js +1 -1
- package/esm5/lib/common/base-chart.component.js +2 -2
- package/esm5/lib/common/color.helper.js +7 -19
- package/esm5/lib/common/count/count.directive.js +2 -2
- package/esm5/lib/common/legend/advanced-legend.component.js +1 -1
- package/esm5/lib/common/legend/legend.component.js +1 -1
- package/esm5/lib/common/legend/scale-legend.component.js +1 -1
- package/esm5/lib/common/tick-format.helper.js +1 -1
- package/esm5/lib/common/timeline/timeline.component.js +6 -17
- package/esm5/lib/common/tooltip/injection.service.js +13 -7
- package/esm5/lib/common/tooltip/tooltip.component.js +1 -1
- package/esm5/lib/gauge/gauge.component.js +3 -6
- package/esm5/lib/gauge/linear-gauge.component.js +3 -5
- package/esm5/lib/heat-map/heat-map-cell.component.js +2 -5
- package/esm5/lib/heat-map/heat-map.component.js +4 -10
- package/esm5/lib/line-chart/line-chart.component.js +6 -15
- package/esm5/lib/line-chart/line.component.js +2 -5
- package/esm5/lib/number-card/number-card.component.js +1 -1
- package/esm5/lib/pie-chart/advanced-pie-chart.component.js +1 -1
- package/esm5/lib/pie-chart/pie-arc.component.js +2 -5
- package/esm5/lib/pie-chart/pie-chart.component.js +1 -1
- package/esm5/lib/pie-chart/pie-grid.component.js +1 -1
- package/esm5/lib/pie-chart/pie-label.component.js +2 -4
- package/esm5/lib/polar-chart/polar-chart.component.js +5 -11
- package/esm5/lib/tree-map/tree-map-cell.component.js +3 -11
- package/esm5/lib/utils/throttle.js +1 -1
- package/fesm2015/swimlane-ngx-charts.js +92 -218
- package/fesm2015/swimlane-ngx-charts.js.map +1 -1
- package/fesm5/swimlane-ngx-charts.js +92 -214
- package/fesm5/swimlane-ngx-charts.js.map +1 -1
- package/lib/bar-chart/bar.component.d.ts +1 -1
- package/lib/common/count/count.directive.d.ts +6 -3
- package/lib/common/legend/legend-entry.component.d.ts +1 -1
- package/lib/common/svg-radial-gradient.component.d.ts +2 -1
- package/lib/common/tooltip/injection.service.d.ts +2 -2
- package/lib/common/tooltip/tooltip.component.d.ts +1 -1
- package/lib/common/tooltip/tooltip.directive.d.ts +2 -2
- package/lib/number-card/number-card.component.d.ts +1 -1
- package/lib/pie-chart/pie-label.component.d.ts +5 -5
- package/package.json +8 -8
- package/swimlane-ngx-charts.metadata.json +1 -1
|
@@ -72,10 +72,11 @@
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
75
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
75
76
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
76
77
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
77
78
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
78
|
-
function step(result) { result.done ? resolve(result.value) :
|
|
79
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
79
80
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
80
81
|
});
|
|
81
82
|
}
|
|
@@ -113,14 +114,15 @@
|
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
function __values(o) {
|
|
116
|
-
var
|
|
117
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
117
118
|
if (m) return m.call(o);
|
|
118
|
-
return {
|
|
119
|
+
if (o && typeof o.length === "number") return {
|
|
119
120
|
next: function () {
|
|
120
121
|
if (o && i >= o.length) o = void 0;
|
|
121
122
|
return { value: o && o[i++], done: !o };
|
|
122
123
|
}
|
|
123
124
|
};
|
|
125
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
function __read(o, n) {
|
|
@@ -199,8 +201,26 @@
|
|
|
199
201
|
|
|
200
202
|
function __importDefault(mod) {
|
|
201
203
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function __classPrivateFieldGet(receiver, privateMap) {
|
|
207
|
+
if (!privateMap.has(receiver)) {
|
|
208
|
+
throw new TypeError("attempted to get private field on non-instance");
|
|
209
|
+
}
|
|
210
|
+
return privateMap.get(receiver);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
214
|
+
if (!privateMap.has(receiver)) {
|
|
215
|
+
throw new TypeError("attempted to set private field on non-instance");
|
|
216
|
+
}
|
|
217
|
+
privateMap.set(receiver, value);
|
|
218
|
+
return value;
|
|
202
219
|
}
|
|
203
220
|
|
|
221
|
+
function isViewContainerRef(x) {
|
|
222
|
+
return x.element;
|
|
223
|
+
}
|
|
204
224
|
/**
|
|
205
225
|
* Injection service is a helper to append components
|
|
206
226
|
* dynamically to a known location in the DOM, most
|
|
@@ -256,20 +276,23 @@
|
|
|
256
276
|
*
|
|
257
277
|
* @memberOf InjectionService
|
|
258
278
|
*/
|
|
259
|
-
InjectionService.prototype.getComponentRootNode = function (
|
|
260
|
-
if (
|
|
261
|
-
return
|
|
279
|
+
InjectionService.prototype.getComponentRootNode = function (component) {
|
|
280
|
+
if (isViewContainerRef(component)) {
|
|
281
|
+
return component.element.nativeElement;
|
|
282
|
+
}
|
|
283
|
+
if (component.hostView && component.hostView.rootNodes.length > 0) {
|
|
284
|
+
return component.hostView.rootNodes[0];
|
|
262
285
|
}
|
|
263
286
|
// the top most component root node has no `hostView`
|
|
264
|
-
return
|
|
287
|
+
return component.location.nativeElement;
|
|
265
288
|
};
|
|
266
289
|
/**
|
|
267
290
|
* Gets the root component container html element.
|
|
268
291
|
*
|
|
269
292
|
* @memberOf InjectionService
|
|
270
293
|
*/
|
|
271
|
-
InjectionService.prototype.getRootViewContainerNode = function (
|
|
272
|
-
return this.getComponentRootNode(
|
|
294
|
+
InjectionService.prototype.getRootViewContainerNode = function (component) {
|
|
295
|
+
return this.getComponentRootNode(component);
|
|
273
296
|
};
|
|
274
297
|
/**
|
|
275
298
|
* Projects the bindings onto the component
|
|
@@ -729,7 +752,7 @@
|
|
|
729
752
|
selector: 'ngx-tooltip-content',
|
|
730
753
|
template: "\n <div>\n <span #caretElm [hidden]=\"!showCaret\" class=\"tooltip-caret position-{{ this.placement }}\"> </span>\n <div class=\"tooltip-content\">\n <span *ngIf=\"!title\">\n <ng-template [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ model: context }\"> </ng-template>\n </span>\n <span *ngIf=\"title\" [innerHTML]=\"title\"> </span>\n </div>\n </div>\n ",
|
|
731
754
|
encapsulation: core.ViewEncapsulation.None,
|
|
732
|
-
styles: [".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{
|
|
755
|
+
styles: [".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate3d(0,0,0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}"]
|
|
733
756
|
})
|
|
734
757
|
], TooltipContentComponent);
|
|
735
758
|
return TooltipContentComponent;
|
|
@@ -1159,7 +1182,7 @@
|
|
|
1159
1182
|
BaseChartComponent = __decorate([
|
|
1160
1183
|
core.Component({
|
|
1161
1184
|
selector: 'base-chart',
|
|
1162
|
-
template: "
|
|
1185
|
+
template: " <div></div> "
|
|
1163
1186
|
})
|
|
1164
1187
|
], BaseChartComponent);
|
|
1165
1188
|
return BaseChartComponent;
|
|
@@ -2753,10 +2776,7 @@
|
|
|
2753
2776
|
AreaComponent.prototype.updatePathEl = function () {
|
|
2754
2777
|
var node = d3Selection.select(this.element).select('.area');
|
|
2755
2778
|
if (this.animations) {
|
|
2756
|
-
node
|
|
2757
|
-
.transition()
|
|
2758
|
-
.duration(750)
|
|
2759
|
-
.attr('d', this.path);
|
|
2779
|
+
node.transition().duration(750).attr('d', this.path);
|
|
2760
2780
|
}
|
|
2761
2781
|
else {
|
|
2762
2782
|
node.attr('d', this.path);
|
|
@@ -2997,7 +3017,7 @@
|
|
|
2997
3017
|
CountUpDirective = __decorate([
|
|
2998
3018
|
core.Component({
|
|
2999
3019
|
selector: '[ngx-charts-count-up]',
|
|
3000
|
-
template: "
|
|
3020
|
+
template: " {{ value }} "
|
|
3001
3021
|
})
|
|
3002
3022
|
], CountUpDirective);
|
|
3003
3023
|
return CountUpDirective;
|
|
@@ -3317,20 +3337,13 @@
|
|
|
3317
3337
|
Timeline.prototype.getXScale = function () {
|
|
3318
3338
|
var scale;
|
|
3319
3339
|
if (this.scaleType === 'time') {
|
|
3320
|
-
scale = d3Scale.scaleTime()
|
|
3321
|
-
.range([0, this.dims.width])
|
|
3322
|
-
.domain(this.xDomain);
|
|
3340
|
+
scale = d3Scale.scaleTime().range([0, this.dims.width]).domain(this.xDomain);
|
|
3323
3341
|
}
|
|
3324
3342
|
else if (this.scaleType === 'linear') {
|
|
3325
|
-
scale = d3Scale.scaleLinear()
|
|
3326
|
-
.range([0, this.dims.width])
|
|
3327
|
-
.domain(this.xDomain);
|
|
3343
|
+
scale = d3Scale.scaleLinear().range([0, this.dims.width]).domain(this.xDomain);
|
|
3328
3344
|
}
|
|
3329
3345
|
else if (this.scaleType === 'ordinal') {
|
|
3330
|
-
scale = d3Scale.scalePoint()
|
|
3331
|
-
.range([0, this.dims.width])
|
|
3332
|
-
.padding(0.1)
|
|
3333
|
-
.domain(this.xDomain);
|
|
3346
|
+
scale = d3Scale.scalePoint().range([0, this.dims.width]).padding(0.1).domain(this.xDomain);
|
|
3334
3347
|
}
|
|
3335
3348
|
return scale;
|
|
3336
3349
|
};
|
|
@@ -3351,9 +3364,7 @@
|
|
|
3351
3364
|
_this.onDomainChange.emit(newDomain);
|
|
3352
3365
|
_this.cd.markForCheck();
|
|
3353
3366
|
});
|
|
3354
|
-
d3Selection.select(this.element)
|
|
3355
|
-
.select('.brush')
|
|
3356
|
-
.call(this.brush);
|
|
3367
|
+
d3Selection.select(this.element).select('.brush').call(this.brush);
|
|
3357
3368
|
};
|
|
3358
3369
|
Timeline.prototype.updateBrush = function () {
|
|
3359
3370
|
if (!this.brush)
|
|
@@ -3364,9 +3375,7 @@
|
|
|
3364
3375
|
[0, 0],
|
|
3365
3376
|
[width, height]
|
|
3366
3377
|
]);
|
|
3367
|
-
d3Selection.select(this.element)
|
|
3368
|
-
.select('.brush')
|
|
3369
|
-
.call(this.brush);
|
|
3378
|
+
d3Selection.select(this.element).select('.brush').call(this.brush);
|
|
3370
3379
|
// clear hardcoded properties so they can be defined by CSS
|
|
3371
3380
|
d3Selection.select(this.element)
|
|
3372
3381
|
.select('.selection')
|
|
@@ -3539,7 +3548,7 @@
|
|
|
3539
3548
|
template: "\n <div [style.width.px]=\"width\">\n <header class=\"legend-title\" *ngIf=\"title?.length > 0\">\n <span class=\"legend-title-text\">{{ title }}</span>\n </header>\n <div class=\"legend-wrap\">\n <ul class=\"legend-labels\" [class.horizontal-legend]=\"horizontal\" [style.max-height.px]=\"height - 45\">\n <li *ngFor=\"let entry of legendEntries; trackBy: trackBy\" class=\"legend-label\">\n <ngx-charts-legend-entry\n [label]=\"entry.label\"\n [formattedLabel]=\"entry.formattedLabel\"\n [color]=\"entry.color\"\n [isActive]=\"isActive(entry)\"\n (select)=\"labelClick.emit($event)\"\n (activate)=\"activate($event)\"\n (deactivate)=\"deactivate($event)\"\n >\n </ngx-charts-legend-entry>\n </li>\n </ul>\n </div>\n </div>\n ",
|
|
3540
3549
|
encapsulation: core.ViewEncapsulation.None,
|
|
3541
3550
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
3542
|
-
styles: [".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend li,.chart-legend ul{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000
|
|
3551
|
+
styles: [".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend li,.chart-legend ul{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"]
|
|
3543
3552
|
})
|
|
3544
3553
|
], LegendComponent);
|
|
3545
3554
|
return LegendComponent;
|
|
@@ -3654,7 +3663,7 @@
|
|
|
3654
3663
|
template: "\n <div\n class=\"scale-legend\"\n [class.horizontal-legend]=\"horizontal\"\n [style.height.px]=\"horizontal ? undefined : height\"\n [style.width.px]=\"width\"\n >\n <div class=\"scale-legend-label\">\n <span>{{ valueRange[1].toLocaleString() }}</span>\n </div>\n <div class=\"scale-legend-wrap\" [style.background]=\"gradient\"></div>\n <div class=\"scale-legend-label\">\n <span>{{ valueRange[0].toLocaleString() }}</span>\n </div>\n </div>\n ",
|
|
3655
3664
|
encapsulation: core.ViewEncapsulation.None,
|
|
3656
3665
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
3657
|
-
styles: [".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display
|
|
3666
|
+
styles: [".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}"]
|
|
3658
3667
|
})
|
|
3659
3668
|
], ScaleLegendComponent);
|
|
3660
3669
|
return ScaleLegendComponent;
|
|
@@ -3745,7 +3754,7 @@
|
|
|
3745
3754
|
template: "\n <div class=\"advanced-pie-legend\" [style.width.px]=\"width\">\n <div\n *ngIf=\"animations\"\n class=\"total-value\"\n ngx-charts-count-up\n [countTo]=\"roundedTotal\"\n [valueFormatting]=\"valueFormatting\"\n ></div>\n <div class=\"total-value\" *ngIf=\"!animations\">\n {{ valueFormatting ? valueFormatting(roundedTotal) : defaultValueFormatting(roundedTotal) }}\n </div>\n <div class=\"total-label\">\n {{ label }}\n </div>\n <div class=\"legend-items-container\">\n <div class=\"legend-items\">\n <div\n *ngFor=\"let legendItem of legendItems; trackBy: trackBy\"\n tabindex=\"-1\"\n class=\"legend-item\"\n (mouseenter)=\"activate.emit(legendItem.data)\"\n (mouseleave)=\"deactivate.emit(legendItem.data)\"\n (click)=\"select.emit(legendItem.data)\"\n >\n <div class=\"item-color\" [style.border-left-color]=\"legendItem.color\"></div>\n <div\n *ngIf=\"animations\"\n class=\"item-value\"\n ngx-charts-count-up\n [countTo]=\"legendItem._value\"\n [valueFormatting]=\"valueFormatting\"\n ></div>\n <div *ngIf=\"!animations\" class=\"item-value\">\n {{ valueFormatting ? valueFormatting(legendItem.value) : defaultValueFormatting(legendItem.value) }}\n </div>\n <div class=\"item-label\">{{ legendItem.displayLabel }}</div>\n <div\n *ngIf=\"animations\"\n class=\"item-percent\"\n ngx-charts-count-up\n [countTo]=\"legendItem.percentage\"\n [countSuffix]=\"'%'\"\n ></div>\n <div *ngIf=\"!animations\" class=\"item-percent\">{{ legendItem.percentage.toLocaleString() }}%</div>\n </div>\n </div>\n </div>\n </div>\n ",
|
|
3746
3755
|
encapsulation: core.ViewEncapsulation.None,
|
|
3747
3756
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
3748
|
-
styles: [".advanced-pie-legend{float:left;position:relative;top:50
|
|
3757
|
+
styles: [".advanced-pie-legend{float:left;position:relative;top:50%;transform:translate(0,-50%)}.advanced-pie-legend .total-value{font-size:36px}.advanced-pie-legend .total-label{font-size:24px;margin-bottom:19px}.advanced-pie-legend .legend-items-container{width:100%}.advanced-pie-legend .legend-items-container .legend-items{white-space:nowrap;overflow:auto}.advanced-pie-legend .legend-items-container .legend-items .legend-item{margin-right:20px;display:inline-block;cursor:pointer}.advanced-pie-legend .legend-items-container .legend-items .legend-item:focus{outline:0}.advanced-pie-legend .legend-items-container .legend-items .legend-item:hover{color:#000;transition:.2s}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-value{font-size:24px;margin-top:-6px;margin-left:11px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-label{font-size:14px;opacity:.7;margin-left:11px;margin-top:-6px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-percent{font-size:24px;opacity:.7;margin-left:11px}.advanced-pie-legend .legend-items-container .legend-items .legend-item .item-color{border-left:4px solid;width:4px;height:42px;float:left;margin-right:7px}"]
|
|
3749
3758
|
})
|
|
3750
3759
|
], AdvancedLegendComponent);
|
|
3751
3760
|
return AdvancedLegendComponent;
|
|
@@ -4105,14 +4114,10 @@
|
|
|
4105
4114
|
}
|
|
4106
4115
|
var colorScale;
|
|
4107
4116
|
if (type === 'quantile') {
|
|
4108
|
-
colorScale = d3Scale.scaleQuantile()
|
|
4109
|
-
.range(scheme.domain)
|
|
4110
|
-
.domain(domain);
|
|
4117
|
+
colorScale = d3Scale.scaleQuantile().range(scheme.domain).domain(domain);
|
|
4111
4118
|
}
|
|
4112
4119
|
else if (type === 'ordinal') {
|
|
4113
|
-
colorScale = d3Scale.scaleOrdinal()
|
|
4114
|
-
.range(scheme.domain)
|
|
4115
|
-
.domain(domain);
|
|
4120
|
+
colorScale = d3Scale.scaleOrdinal().range(scheme.domain).domain(domain);
|
|
4116
4121
|
}
|
|
4117
4122
|
else if (type === 'linear') {
|
|
4118
4123
|
// linear schemes must have at least 2 colors
|
|
@@ -4122,9 +4127,7 @@
|
|
|
4122
4127
|
this.colorDomain = colorDomain;
|
|
4123
4128
|
}
|
|
4124
4129
|
var points = d3Array.range(0, 1, 1.0 / colorDomain.length);
|
|
4125
|
-
colorScale = d3Scale.scaleLinear()
|
|
4126
|
-
.domain(points)
|
|
4127
|
-
.range(colorDomain);
|
|
4130
|
+
colorScale = d3Scale.scaleLinear().domain(points).range(colorDomain);
|
|
4128
4131
|
}
|
|
4129
4132
|
return colorScale;
|
|
4130
4133
|
};
|
|
@@ -4133,9 +4136,7 @@
|
|
|
4133
4136
|
throw new Error('Value can not be null');
|
|
4134
4137
|
}
|
|
4135
4138
|
if (this.scaleType === 'linear') {
|
|
4136
|
-
var valueScale = d3Scale.scaleLinear()
|
|
4137
|
-
.domain(this.domain)
|
|
4138
|
-
.range([0, 1]);
|
|
4139
|
+
var valueScale = d3Scale.scaleLinear().domain(this.domain).range([0, 1]);
|
|
4139
4140
|
return this.scale(valueScale(value));
|
|
4140
4141
|
}
|
|
4141
4142
|
else {
|
|
@@ -4162,12 +4163,8 @@
|
|
|
4162
4163
|
if (start === undefined) {
|
|
4163
4164
|
start = this.domain[0];
|
|
4164
4165
|
}
|
|
4165
|
-
var valueScale = d3Scale.scaleLinear()
|
|
4166
|
-
|
|
4167
|
-
.range([0, 1]);
|
|
4168
|
-
var colorValueScale = d3Scale.scaleBand()
|
|
4169
|
-
.domain(this.colorDomain)
|
|
4170
|
-
.range([0, 1]);
|
|
4166
|
+
var valueScale = d3Scale.scaleLinear().domain(this.domain).range([0, 1]);
|
|
4167
|
+
var colorValueScale = d3Scale.scaleBand().domain(this.colorDomain).range([0, 1]);
|
|
4171
4168
|
var endColor = this.getColor(value);
|
|
4172
4169
|
// generate the stops
|
|
4173
4170
|
var startVal = valueScale(start);
|
|
@@ -4453,9 +4450,7 @@
|
|
|
4453
4450
|
return this.roundDomains ? scale.nice() : scale;
|
|
4454
4451
|
};
|
|
4455
4452
|
AreaChartComponent.prototype.getYScale = function (domain, height) {
|
|
4456
|
-
var scale = d3Scale.scaleLinear()
|
|
4457
|
-
.range([height, 0])
|
|
4458
|
-
.domain(domain);
|
|
4453
|
+
var scale = d3Scale.scaleLinear().range([height, 0]).domain(domain);
|
|
4459
4454
|
return this.roundDomains ? scale.nice() : scale;
|
|
4460
4455
|
};
|
|
4461
4456
|
AreaChartComponent.prototype.getScaleType = function (values) {
|
|
@@ -4711,7 +4706,7 @@
|
|
|
4711
4706
|
template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:defs>\n <svg:clipPath [attr.id]=\"clipPathId\">\n <svg:rect\n [attr.width]=\"dims.width + 10\"\n [attr.height]=\"dims.height + 10\"\n [attr.transform]=\"'translate(-5, -5)'\"\n />\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]=\"transform\" class=\"area-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g [attr.clip-path]=\"clipPath\">\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [baseValue]=\"baseValue\"\n [colors]=\"colors\"\n [data]=\"series\"\n [activeEntries]=\"activeEntries\"\n [scaleType]=\"scaleType\"\n [gradient]=\"gradient\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n\n <svg:g *ngIf=\"!tooltipDisabled\" (mouseleave)=\"hideCircles()\">\n <svg:g\n ngx-charts-tooltip-area\n [dims]=\"dims\"\n [xSet]=\"xSet\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [results]=\"results\"\n [colors]=\"colors\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"seriesTooltipTemplate\"\n (hover)=\"updateHoveredVertical($event)\"\n />\n\n <svg:g *ngFor=\"let series of results\">\n <svg:g\n ngx-charts-circle-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [activeEntries]=\"activeEntries\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [visibleValue]=\"hoveredVertical\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n (select)=\"onClick($event, series)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g\n ngx-charts-timeline\n *ngIf=\"timeline && scaleType != 'ordinal'\"\n [attr.transform]=\"timelineTransform\"\n [results]=\"results\"\n [view]=\"[timelineWidth, height]\"\n [height]=\"timelineHeight\"\n [scheme]=\"scheme\"\n [customColors]=\"customColors\"\n [legend]=\"legend\"\n [scaleType]=\"scaleType\"\n (onDomainChange)=\"updateDomain($event)\"\n >\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"timelineXScale\"\n [yScale]=\"timelineYScale\"\n [baseValue]=\"baseValue\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [gradient]=\"gradient\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
4712
4707
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
4713
4708
|
encapsulation: core.ViewEncapsulation.None,
|
|
4714
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
4709
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
4715
4710
|
})
|
|
4716
4711
|
], AreaChartComponent);
|
|
4717
4712
|
return AreaChartComponent;
|
|
@@ -4917,9 +4912,7 @@
|
|
|
4917
4912
|
return this.roundDomains ? scale.nice() : scale;
|
|
4918
4913
|
};
|
|
4919
4914
|
AreaChartNormalizedComponent.prototype.getYScale = function (domain, height) {
|
|
4920
|
-
var scale = d3Scale.scaleLinear()
|
|
4921
|
-
.range([height, 0])
|
|
4922
|
-
.domain(domain);
|
|
4915
|
+
var scale = d3Scale.scaleLinear().range([height, 0]).domain(domain);
|
|
4923
4916
|
return this.roundDomains ? scale.nice() : scale;
|
|
4924
4917
|
};
|
|
4925
4918
|
AreaChartNormalizedComponent.prototype.updateDomain = function (domain) {
|
|
@@ -5118,7 +5111,7 @@
|
|
|
5118
5111
|
template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:defs>\n <svg:clipPath [attr.id]=\"clipPathId\">\n <svg:rect\n [attr.width]=\"dims.width + 10\"\n [attr.height]=\"dims.height + 10\"\n [attr.transform]=\"'translate(-5, -5)'\"\n />\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]=\"transform\" class=\"area-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g [attr.clip-path]=\"clipPath\">\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [activeEntries]=\"activeEntries\"\n [gradient]=\"gradient\"\n normalized=\"true\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n\n <svg:g *ngIf=\"!tooltipDisabled\" (mouseleave)=\"hideCircles()\">\n <svg:g\n ngx-charts-tooltip-area\n [dims]=\"dims\"\n [xSet]=\"xSet\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [results]=\"results\"\n [colors]=\"colors\"\n [showPercentage]=\"true\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"seriesTooltipTemplate\"\n (hover)=\"updateHoveredVertical($event)\"\n />\n\n <svg:g *ngFor=\"let series of results\">\n <svg:g\n ngx-charts-circle-series\n type=\"stacked\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [activeEntries]=\"activeEntries\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [visibleValue]=\"hoveredVertical\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n (select)=\"onClick($event, series)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g\n ngx-charts-timeline\n *ngIf=\"timeline && scaleType != 'ordinal'\"\n [attr.transform]=\"timelineTransform\"\n [results]=\"results\"\n [view]=\"[timelineWidth, height]\"\n [height]=\"timelineHeight\"\n [scheme]=\"scheme\"\n [customColors]=\"customColors\"\n [legend]=\"legend\"\n [scaleType]=\"scaleType\"\n (onDomainChange)=\"updateDomain($event)\"\n >\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"timelineXScale\"\n [yScale]=\"timelineYScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [gradient]=\"gradient\"\n normalized=\"true\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
5119
5112
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
5120
5113
|
encapsulation: core.ViewEncapsulation.None,
|
|
5121
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
5114
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
5122
5115
|
})
|
|
5123
5116
|
], AreaChartNormalizedComponent);
|
|
5124
5117
|
return AreaChartNormalizedComponent;
|
|
@@ -5333,9 +5326,7 @@
|
|
|
5333
5326
|
return this.roundDomains ? scale.nice() : scale;
|
|
5334
5327
|
};
|
|
5335
5328
|
AreaChartStackedComponent.prototype.getYScale = function (domain, height) {
|
|
5336
|
-
var scale = d3Scale.scaleLinear()
|
|
5337
|
-
.range([height, 0])
|
|
5338
|
-
.domain(domain);
|
|
5329
|
+
var scale = d3Scale.scaleLinear().range([height, 0]).domain(domain);
|
|
5339
5330
|
return this.roundDomains ? scale.nice() : scale;
|
|
5340
5331
|
};
|
|
5341
5332
|
AreaChartStackedComponent.prototype.updateDomain = function (domain) {
|
|
@@ -5546,7 +5537,7 @@
|
|
|
5546
5537
|
template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:defs>\n <svg:clipPath [attr.id]=\"clipPathId\">\n <svg:rect\n [attr.width]=\"dims.width + 10\"\n [attr.height]=\"dims.height + 10\"\n [attr.transform]=\"'translate(-5, -5)'\"\n />\n </svg:clipPath>\n </svg:defs>\n <svg:g [attr.transform]=\"transform\" class=\"area-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g [attr.clip-path]=\"clipPath\">\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [gradient]=\"gradient\"\n [activeEntries]=\"activeEntries\"\n stacked=\"true\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n\n <svg:g *ngIf=\"!tooltipDisabled\" (mouseleave)=\"hideCircles()\">\n <svg:g\n ngx-charts-tooltip-area\n [dims]=\"dims\"\n [xSet]=\"xSet\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [results]=\"results\"\n [colors]=\"colors\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"seriesTooltipTemplate\"\n (hover)=\"updateHoveredVertical($event)\"\n />\n\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-circle-series\n type=\"stacked\"\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [activeEntries]=\"activeEntries\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [visibleValue]=\"hoveredVertical\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n (select)=\"onClick($event, series)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </svg:g>\n </svg:g>\n </svg:g>\n <svg:g\n ngx-charts-timeline\n *ngIf=\"timeline && scaleType != 'ordinal'\"\n [attr.transform]=\"timelineTransform\"\n [results]=\"results\"\n [view]=\"[timelineWidth, height]\"\n [height]=\"timelineHeight\"\n [scheme]=\"scheme\"\n [customColors]=\"customColors\"\n [legend]=\"legend\"\n [scaleType]=\"scaleType\"\n (onDomainChange)=\"updateDomain($event)\"\n >\n <svg:g *ngFor=\"let series of results; trackBy: trackBy\">\n <svg:g\n ngx-charts-area-series\n [xScale]=\"timelineXScale\"\n [yScale]=\"timelineYScale\"\n [colors]=\"colors\"\n [data]=\"series\"\n [scaleType]=\"scaleType\"\n [gradient]=\"gradient\"\n stacked=\"true\"\n [curve]=\"curve\"\n [animations]=\"animations\"\n />\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
5547
5538
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
5548
5539
|
encapsulation: core.ViewEncapsulation.None,
|
|
5549
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
5540
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
5550
5541
|
})
|
|
5551
5542
|
], AreaChartStackedComponent);
|
|
5552
5543
|
return AreaChartStackedComponent;
|
|
@@ -5797,10 +5788,7 @@
|
|
|
5797
5788
|
var node = d3Selection.select(this.element).select('.bar');
|
|
5798
5789
|
var path = this.getPath();
|
|
5799
5790
|
if (this.animations) {
|
|
5800
|
-
node
|
|
5801
|
-
.transition()
|
|
5802
|
-
.duration(500)
|
|
5803
|
-
.attr('d', path);
|
|
5791
|
+
node.transition().duration(500).attr('d', path);
|
|
5804
5792
|
}
|
|
5805
5793
|
else {
|
|
5806
5794
|
node.attr('d', path);
|
|
@@ -6050,18 +6038,13 @@
|
|
|
6050
6038
|
};
|
|
6051
6039
|
BarHorizontalComponent.prototype.getXScale = function () {
|
|
6052
6040
|
this.xDomain = this.getXDomain();
|
|
6053
|
-
var scale = d3Scale.scaleLinear()
|
|
6054
|
-
.range([0, this.dims.width])
|
|
6055
|
-
.domain(this.xDomain);
|
|
6041
|
+
var scale = d3Scale.scaleLinear().range([0, this.dims.width]).domain(this.xDomain);
|
|
6056
6042
|
return this.roundDomains ? scale.nice() : scale;
|
|
6057
6043
|
};
|
|
6058
6044
|
BarHorizontalComponent.prototype.getYScale = function () {
|
|
6059
6045
|
this.yDomain = this.getYDomain();
|
|
6060
6046
|
var spacing = this.yDomain.length / (this.dims.height / this.barPadding + 1);
|
|
6061
|
-
return d3Scale.scaleBand()
|
|
6062
|
-
.rangeRound([0, this.dims.height])
|
|
6063
|
-
.paddingInner(spacing)
|
|
6064
|
-
.domain(this.yDomain);
|
|
6047
|
+
return d3Scale.scaleBand().rangeRound([0, this.dims.height]).paddingInner(spacing).domain(this.yDomain);
|
|
6065
6048
|
};
|
|
6066
6049
|
BarHorizontalComponent.prototype.getXDomain = function () {
|
|
6067
6050
|
var values = this.results.map(function (d) { return d.value; });
|
|
@@ -6270,7 +6253,7 @@
|
|
|
6270
6253
|
template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, true)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"bar-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n [yAxisOffset]=\"dataLabelMaxWidth.negative\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-series-horizontal\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [series]=\"results\"\n [dims]=\"dims\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [activeEntries]=\"activeEntries\"\n [roundEdges]=\"roundEdges\"\n [animations]=\"animations\"\n [showDataLabel]=\"showDataLabel\"\n [dataLabelFormatting]=\"dataLabelFormatting\"\n [noBarWhenZero]=\"noBarWhenZero\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n (dataLabelWidthChanged)=\"onDataLabelMaxWidthChanged($event)\"\n ></svg:g>\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
6271
6254
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
6272
6255
|
encapsulation: core.ViewEncapsulation.None,
|
|
6273
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
6256
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
6274
6257
|
})
|
|
6275
6258
|
], BarHorizontalComponent);
|
|
6276
6259
|
return BarHorizontalComponent;
|
|
@@ -6347,15 +6330,10 @@
|
|
|
6347
6330
|
BarHorizontal2DComponent.prototype.getInnerScale = function () {
|
|
6348
6331
|
var height = this.groupScale.bandwidth();
|
|
6349
6332
|
var spacing = this.innerDomain.length / (height / this.barPadding + 1);
|
|
6350
|
-
return d3Scale.scaleBand()
|
|
6351
|
-
.rangeRound([0, height])
|
|
6352
|
-
.paddingInner(spacing)
|
|
6353
|
-
.domain(this.innerDomain);
|
|
6333
|
+
return d3Scale.scaleBand().rangeRound([0, height]).paddingInner(spacing).domain(this.innerDomain);
|
|
6354
6334
|
};
|
|
6355
6335
|
BarHorizontal2DComponent.prototype.getValueScale = function () {
|
|
6356
|
-
var scale = d3Scale.scaleLinear()
|
|
6357
|
-
.range([0, this.dims.width])
|
|
6358
|
-
.domain(this.valuesDomain);
|
|
6336
|
+
var scale = d3Scale.scaleLinear().range([0, this.dims.width]).domain(this.valuesDomain);
|
|
6359
6337
|
return this.roundDomains ? scale.nice() : scale;
|
|
6360
6338
|
};
|
|
6361
6339
|
BarHorizontal2DComponent.prototype.getGroupDomain = function () {
|
|
@@ -6662,7 +6640,7 @@
|
|
|
6662
6640
|
])
|
|
6663
6641
|
])
|
|
6664
6642
|
],
|
|
6665
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
6643
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
6666
6644
|
})
|
|
6667
6645
|
], BarHorizontal2DComponent);
|
|
6668
6646
|
return BarHorizontal2DComponent;
|
|
@@ -6776,15 +6754,10 @@
|
|
|
6776
6754
|
};
|
|
6777
6755
|
BarHorizontalNormalizedComponent.prototype.getYScale = function () {
|
|
6778
6756
|
var spacing = this.groupDomain.length / (this.dims.height / this.barPadding + 1);
|
|
6779
|
-
return d3Scale.scaleBand()
|
|
6780
|
-
.rangeRound([0, this.dims.height])
|
|
6781
|
-
.paddingInner(spacing)
|
|
6782
|
-
.domain(this.groupDomain);
|
|
6757
|
+
return d3Scale.scaleBand().rangeRound([0, this.dims.height]).paddingInner(spacing).domain(this.groupDomain);
|
|
6783
6758
|
};
|
|
6784
6759
|
BarHorizontalNormalizedComponent.prototype.getXScale = function () {
|
|
6785
|
-
var scale = d3Scale.scaleLinear()
|
|
6786
|
-
.range([0, this.dims.width])
|
|
6787
|
-
.domain(this.valueDomain);
|
|
6760
|
+
var scale = d3Scale.scaleLinear().range([0, this.dims.width]).domain(this.valueDomain);
|
|
6788
6761
|
return this.roundDomains ? scale.nice() : scale;
|
|
6789
6762
|
};
|
|
6790
6763
|
BarHorizontalNormalizedComponent.prototype.groupTransform = function (group) {
|
|
@@ -6978,7 +6951,7 @@
|
|
|
6978
6951
|
])
|
|
6979
6952
|
])
|
|
6980
6953
|
],
|
|
6981
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
6954
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
6982
6955
|
})
|
|
6983
6956
|
], BarHorizontalNormalizedComponent);
|
|
6984
6957
|
return BarHorizontalNormalizedComponent;
|
|
@@ -7142,15 +7115,10 @@
|
|
|
7142
7115
|
};
|
|
7143
7116
|
BarHorizontalStackedComponent.prototype.getYScale = function () {
|
|
7144
7117
|
var spacing = this.groupDomain.length / (this.dims.height / this.barPadding + 1);
|
|
7145
|
-
return d3Scale.scaleBand()
|
|
7146
|
-
.rangeRound([0, this.dims.height])
|
|
7147
|
-
.paddingInner(spacing)
|
|
7148
|
-
.domain(this.groupDomain);
|
|
7118
|
+
return d3Scale.scaleBand().rangeRound([0, this.dims.height]).paddingInner(spacing).domain(this.groupDomain);
|
|
7149
7119
|
};
|
|
7150
7120
|
BarHorizontalStackedComponent.prototype.getXScale = function () {
|
|
7151
|
-
var scale = d3Scale.scaleLinear()
|
|
7152
|
-
.range([0, this.dims.width])
|
|
7153
|
-
.domain(this.valueDomain);
|
|
7121
|
+
var scale = d3Scale.scaleLinear().range([0, this.dims.width]).domain(this.valueDomain);
|
|
7154
7122
|
return this.roundDomains ? scale.nice() : scale;
|
|
7155
7123
|
};
|
|
7156
7124
|
BarHorizontalStackedComponent.prototype.groupTransform = function (group) {
|
|
@@ -7365,7 +7333,7 @@
|
|
|
7365
7333
|
])
|
|
7366
7334
|
])
|
|
7367
7335
|
],
|
|
7368
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
7336
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
7369
7337
|
})
|
|
7370
7338
|
], BarHorizontalStackedComponent);
|
|
7371
7339
|
return BarHorizontalStackedComponent;
|
|
@@ -7432,16 +7400,11 @@
|
|
|
7432
7400
|
BarVerticalComponent.prototype.getXScale = function () {
|
|
7433
7401
|
this.xDomain = this.getXDomain();
|
|
7434
7402
|
var spacing = this.xDomain.length / (this.dims.width / this.barPadding + 1);
|
|
7435
|
-
return d3Scale.scaleBand()
|
|
7436
|
-
.range([0, this.dims.width])
|
|
7437
|
-
.paddingInner(spacing)
|
|
7438
|
-
.domain(this.xDomain);
|
|
7403
|
+
return d3Scale.scaleBand().range([0, this.dims.width]).paddingInner(spacing).domain(this.xDomain);
|
|
7439
7404
|
};
|
|
7440
7405
|
BarVerticalComponent.prototype.getYScale = function () {
|
|
7441
7406
|
this.yDomain = this.getYDomain();
|
|
7442
|
-
var scale = d3Scale.scaleLinear()
|
|
7443
|
-
.range([this.dims.height, 0])
|
|
7444
|
-
.domain(this.yDomain);
|
|
7407
|
+
var scale = d3Scale.scaleLinear().range([this.dims.height, 0]).domain(this.yDomain);
|
|
7445
7408
|
return this.roundDomains ? scale.nice() : scale;
|
|
7446
7409
|
};
|
|
7447
7410
|
BarVerticalComponent.prototype.getXDomain = function () {
|
|
@@ -7657,7 +7620,7 @@
|
|
|
7657
7620
|
template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, true)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"bar-chart chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n [xAxisOffset]=\"dataLabelMaxHeight.negative\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showGridLines]=\"showGridLines\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-series-vertical\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [series]=\"results\"\n [dims]=\"dims\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [showDataLabel]=\"showDataLabel\"\n [dataLabelFormatting]=\"dataLabelFormatting\"\n [activeEntries]=\"activeEntries\"\n [roundEdges]=\"roundEdges\"\n [animations]=\"animations\"\n [noBarWhenZero]=\"noBarWhenZero\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n (select)=\"onClick($event)\"\n (dataLabelHeightChanged)=\"onDataLabelMaxHeightChanged($event)\"\n ></svg:g>\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
7658
7621
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
7659
7622
|
encapsulation: core.ViewEncapsulation.None,
|
|
7660
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
7623
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
7661
7624
|
})
|
|
7662
7625
|
], BarVerticalComponent);
|
|
7663
7626
|
return BarVerticalComponent;
|
|
@@ -7750,15 +7713,10 @@
|
|
|
7750
7713
|
BarVertical2DComponent.prototype.getInnerScale = function () {
|
|
7751
7714
|
var width = this.groupScale.bandwidth();
|
|
7752
7715
|
var spacing = this.innerDomain.length / (width / this.barPadding + 1);
|
|
7753
|
-
return d3Scale.scaleBand()
|
|
7754
|
-
.rangeRound([0, width])
|
|
7755
|
-
.paddingInner(spacing)
|
|
7756
|
-
.domain(this.innerDomain);
|
|
7716
|
+
return d3Scale.scaleBand().rangeRound([0, width]).paddingInner(spacing).domain(this.innerDomain);
|
|
7757
7717
|
};
|
|
7758
7718
|
BarVertical2DComponent.prototype.getValueScale = function () {
|
|
7759
|
-
var scale = d3Scale.scaleLinear()
|
|
7760
|
-
.range([this.dims.height, 0])
|
|
7761
|
-
.domain(this.valuesDomain);
|
|
7719
|
+
var scale = d3Scale.scaleLinear().range([this.dims.height, 0]).domain(this.valuesDomain);
|
|
7762
7720
|
return this.roundDomains ? scale.nice() : scale;
|
|
7763
7721
|
};
|
|
7764
7722
|
BarVertical2DComponent.prototype.getGroupDomain = function () {
|
|
@@ -8056,7 +8014,7 @@
|
|
|
8056
8014
|
])
|
|
8057
8015
|
])
|
|
8058
8016
|
],
|
|
8059
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
8017
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
8060
8018
|
})
|
|
8061
8019
|
], BarVertical2DComponent);
|
|
8062
8020
|
return BarVertical2DComponent;
|
|
@@ -8170,15 +8128,10 @@
|
|
|
8170
8128
|
};
|
|
8171
8129
|
BarVerticalNormalizedComponent.prototype.getXScale = function () {
|
|
8172
8130
|
var spacing = this.groupDomain.length / (this.dims.width / this.barPadding + 1);
|
|
8173
|
-
return d3Scale.scaleBand()
|
|
8174
|
-
.rangeRound([0, this.dims.width])
|
|
8175
|
-
.paddingInner(spacing)
|
|
8176
|
-
.domain(this.groupDomain);
|
|
8131
|
+
return d3Scale.scaleBand().rangeRound([0, this.dims.width]).paddingInner(spacing).domain(this.groupDomain);
|
|
8177
8132
|
};
|
|
8178
8133
|
BarVerticalNormalizedComponent.prototype.getYScale = function () {
|
|
8179
|
-
var scale = d3Scale.scaleLinear()
|
|
8180
|
-
.range([this.dims.height, 0])
|
|
8181
|
-
.domain(this.valueDomain);
|
|
8134
|
+
var scale = d3Scale.scaleLinear().range([this.dims.height, 0]).domain(this.valueDomain);
|
|
8182
8135
|
return this.roundDomains ? scale.nice() : scale;
|
|
8183
8136
|
};
|
|
8184
8137
|
BarVerticalNormalizedComponent.prototype.groupTransform = function (group) {
|
|
@@ -8372,7 +8325,7 @@
|
|
|
8372
8325
|
])
|
|
8373
8326
|
])
|
|
8374
8327
|
],
|
|
8375
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
8328
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
8376
8329
|
})
|
|
8377
8330
|
], BarVerticalNormalizedComponent);
|
|
8378
8331
|
return BarVerticalNormalizedComponent;
|
|
@@ -8539,15 +8492,10 @@
|
|
|
8539
8492
|
};
|
|
8540
8493
|
BarVerticalStackedComponent.prototype.getXScale = function () {
|
|
8541
8494
|
var spacing = this.groupDomain.length / (this.dims.width / this.barPadding + 1);
|
|
8542
|
-
return d3Scale.scaleBand()
|
|
8543
|
-
.rangeRound([0, this.dims.width])
|
|
8544
|
-
.paddingInner(spacing)
|
|
8545
|
-
.domain(this.groupDomain);
|
|
8495
|
+
return d3Scale.scaleBand().rangeRound([0, this.dims.width]).paddingInner(spacing).domain(this.groupDomain);
|
|
8546
8496
|
};
|
|
8547
8497
|
BarVerticalStackedComponent.prototype.getYScale = function () {
|
|
8548
|
-
var scale = d3Scale.scaleLinear()
|
|
8549
|
-
.range([this.dims.height, 0])
|
|
8550
|
-
.domain(this.valueDomain);
|
|
8498
|
+
var scale = d3Scale.scaleLinear().range([this.dims.height, 0]).domain(this.valueDomain);
|
|
8551
8499
|
return this.roundDomains ? scale.nice() : scale;
|
|
8552
8500
|
};
|
|
8553
8501
|
BarVerticalStackedComponent.prototype.onDataLabelMaxHeightChanged = function (event, groupIndex) {
|
|
@@ -8762,7 +8710,7 @@
|
|
|
8762
8710
|
])
|
|
8763
8711
|
])
|
|
8764
8712
|
],
|
|
8765
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
8713
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
8766
8714
|
})
|
|
8767
8715
|
], BarVerticalStackedComponent);
|
|
8768
8716
|
return BarVerticalStackedComponent;
|
|
@@ -9435,22 +9383,16 @@
|
|
|
9435
9383
|
function getScale(domain, range, scaleType, roundDomains) {
|
|
9436
9384
|
var scale;
|
|
9437
9385
|
if (scaleType === 'time') {
|
|
9438
|
-
scale = d3Scale.scaleTime()
|
|
9439
|
-
.range(range)
|
|
9440
|
-
.domain(domain);
|
|
9386
|
+
scale = d3Scale.scaleTime().range(range).domain(domain);
|
|
9441
9387
|
}
|
|
9442
9388
|
else if (scaleType === 'linear') {
|
|
9443
|
-
scale = d3Scale.scaleLinear()
|
|
9444
|
-
.range(range)
|
|
9445
|
-
.domain(domain);
|
|
9389
|
+
scale = d3Scale.scaleLinear().range(range).domain(domain);
|
|
9446
9390
|
if (roundDomains) {
|
|
9447
9391
|
scale = scale.nice();
|
|
9448
9392
|
}
|
|
9449
9393
|
}
|
|
9450
9394
|
else if (scaleType === 'ordinal') {
|
|
9451
|
-
scale = d3Scale.scalePoint()
|
|
9452
|
-
.range([range[0], range[1]])
|
|
9453
|
-
.domain(domain);
|
|
9395
|
+
scale = d3Scale.scalePoint().range([range[0], range[1]]).domain(domain);
|
|
9454
9396
|
}
|
|
9455
9397
|
return scale;
|
|
9456
9398
|
}
|
|
@@ -9589,9 +9531,7 @@
|
|
|
9589
9531
|
return getScale(domain, [this.bubblePadding[3], width], this.xScaleType, this.roundDomains);
|
|
9590
9532
|
};
|
|
9591
9533
|
BubbleChartComponent.prototype.getRScale = function (domain, range) {
|
|
9592
|
-
var scale = d3Scale.scaleLinear()
|
|
9593
|
-
.range(range)
|
|
9594
|
-
.domain(domain);
|
|
9534
|
+
var scale = d3Scale.scaleLinear().range(range).domain(domain);
|
|
9595
9535
|
return this.roundDomains ? scale.nice() : scale;
|
|
9596
9536
|
};
|
|
9597
9537
|
BubbleChartComponent.prototype.getLegendOptions = function () {
|
|
@@ -9878,7 +9818,7 @@
|
|
|
9878
9818
|
])
|
|
9879
9819
|
])
|
|
9880
9820
|
],
|
|
9881
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
9821
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
9882
9822
|
})
|
|
9883
9823
|
], BubbleChartComponent);
|
|
9884
9824
|
return BubbleChartComponent;
|
|
@@ -10107,10 +10047,7 @@
|
|
|
10107
10047
|
};
|
|
10108
10048
|
HeatMapCellComponent.prototype.animateToCurrentForm = function () {
|
|
10109
10049
|
var node = d3Selection.select(this.element).select('.cell');
|
|
10110
|
-
node
|
|
10111
|
-
.transition()
|
|
10112
|
-
.duration(750)
|
|
10113
|
-
.attr('opacity', 1);
|
|
10050
|
+
node.transition().duration(750).attr('opacity', 1);
|
|
10114
10051
|
};
|
|
10115
10052
|
HeatMapCellComponent.prototype.onClick = function () {
|
|
10116
10053
|
this.select.emit(this.data);
|
|
@@ -10452,17 +10389,11 @@
|
|
|
10452
10389
|
};
|
|
10453
10390
|
HeatMapComponent.prototype.getXScale = function () {
|
|
10454
10391
|
var f = this.getDimension(this.innerPadding, 0, this.xDomain.length, this.dims.width);
|
|
10455
|
-
return d3Scale.scaleBand()
|
|
10456
|
-
.rangeRound([0, this.dims.width])
|
|
10457
|
-
.domain(this.xDomain)
|
|
10458
|
-
.paddingInner(f);
|
|
10392
|
+
return d3Scale.scaleBand().rangeRound([0, this.dims.width]).domain(this.xDomain).paddingInner(f);
|
|
10459
10393
|
};
|
|
10460
10394
|
HeatMapComponent.prototype.getYScale = function () {
|
|
10461
10395
|
var f = this.getDimension(this.innerPadding, 1, this.yDomain.length, this.dims.height);
|
|
10462
|
-
return d3Scale.scaleBand()
|
|
10463
|
-
.rangeRound([this.dims.height, 0])
|
|
10464
|
-
.domain(this.yDomain)
|
|
10465
|
-
.paddingInner(f);
|
|
10396
|
+
return d3Scale.scaleBand().rangeRound([this.dims.height, 0]).domain(this.yDomain).paddingInner(f);
|
|
10466
10397
|
};
|
|
10467
10398
|
HeatMapComponent.prototype.getRects = function () {
|
|
10468
10399
|
var _this = this;
|
|
@@ -10632,7 +10563,7 @@
|
|
|
10632
10563
|
template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [animations]=\"animations\"\n [legendOptions]=\"legendOptions\"\n (legendLabelClick)=\"onClick($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"heat-map chart\">\n <svg:g\n ngx-charts-x-axis\n *ngIf=\"xAxis\"\n [xScale]=\"xScale\"\n [dims]=\"dims\"\n [showLabel]=\"showXAxisLabel\"\n [labelText]=\"xAxisLabel\"\n [trimTicks]=\"trimXAxisTicks\"\n [rotateTicks]=\"rotateXAxisTicks\"\n [maxTickLength]=\"maxXAxisTickLength\"\n [tickFormatting]=\"xAxisTickFormatting\"\n [ticks]=\"xAxisTicks\"\n (dimensionsChanged)=\"updateXAxisHeight($event)\"\n ></svg:g>\n <svg:g\n ngx-charts-y-axis\n *ngIf=\"yAxis\"\n [yScale]=\"yScale\"\n [dims]=\"dims\"\n [showLabel]=\"showYAxisLabel\"\n [labelText]=\"yAxisLabel\"\n [trimTicks]=\"trimYAxisTicks\"\n [maxTickLength]=\"maxYAxisTickLength\"\n [tickFormatting]=\"yAxisTickFormatting\"\n [ticks]=\"yAxisTicks\"\n (dimensionsChanged)=\"updateYAxisWidth($event)\"\n ></svg:g>\n <svg:rect\n *ngFor=\"let rect of rects\"\n [attr.x]=\"rect.x\"\n [attr.y]=\"rect.y\"\n [attr.rx]=\"rect.rx\"\n [attr.width]=\"rect.width\"\n [attr.height]=\"rect.height\"\n [attr.fill]=\"rect.fill\"\n />\n <svg:g\n ngx-charts-heat-map-cell-series\n [xScale]=\"xScale\"\n [yScale]=\"yScale\"\n [colors]=\"colors\"\n [data]=\"results\"\n [gradient]=\"gradient\"\n [animations]=\"animations\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipText]=\"tooltipText\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event, undefined)\"\n (deactivate)=\"onDeactivate($event, undefined)\"\n />\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
10633
10564
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
10634
10565
|
encapsulation: core.ViewEncapsulation.None,
|
|
10635
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
10566
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
10636
10567
|
})
|
|
10637
10568
|
], HeatMapComponent);
|
|
10638
10569
|
return HeatMapComponent;
|
|
@@ -10671,10 +10602,7 @@
|
|
|
10671
10602
|
LineComponent.prototype.updatePathEl = function () {
|
|
10672
10603
|
var node = d3Selection.select(this.element.nativeElement).select('.line');
|
|
10673
10604
|
if (this.animations) {
|
|
10674
|
-
node
|
|
10675
|
-
.transition()
|
|
10676
|
-
.duration(750)
|
|
10677
|
-
.attr('d', this.path);
|
|
10605
|
+
node.transition().duration(750).attr('d', this.path);
|
|
10678
10606
|
}
|
|
10679
10607
|
else {
|
|
10680
10608
|
node.attr('d', this.path);
|
|
@@ -10886,30 +10814,21 @@
|
|
|
10886
10814
|
LineChartComponent.prototype.getXScale = function (domain, width) {
|
|
10887
10815
|
var scale;
|
|
10888
10816
|
if (this.scaleType === 'time') {
|
|
10889
|
-
scale = d3Scale.scaleTime()
|
|
10890
|
-
.range([0, width])
|
|
10891
|
-
.domain(domain);
|
|
10817
|
+
scale = d3Scale.scaleTime().range([0, width]).domain(domain);
|
|
10892
10818
|
}
|
|
10893
10819
|
else if (this.scaleType === 'linear') {
|
|
10894
|
-
scale = d3Scale.scaleLinear()
|
|
10895
|
-
.range([0, width])
|
|
10896
|
-
.domain(domain);
|
|
10820
|
+
scale = d3Scale.scaleLinear().range([0, width]).domain(domain);
|
|
10897
10821
|
if (this.roundDomains) {
|
|
10898
10822
|
scale = scale.nice();
|
|
10899
10823
|
}
|
|
10900
10824
|
}
|
|
10901
10825
|
else if (this.scaleType === 'ordinal') {
|
|
10902
|
-
scale = d3Scale.scalePoint()
|
|
10903
|
-
.range([0, width])
|
|
10904
|
-
.padding(0.1)
|
|
10905
|
-
.domain(domain);
|
|
10826
|
+
scale = d3Scale.scalePoint().range([0, width]).padding(0.1).domain(domain);
|
|
10906
10827
|
}
|
|
10907
10828
|
return scale;
|
|
10908
10829
|
};
|
|
10909
10830
|
LineChartComponent.prototype.getYScale = function (domain, height) {
|
|
10910
|
-
var scale = d3Scale.scaleLinear()
|
|
10911
|
-
.range([height, 0])
|
|
10912
|
-
.domain(domain);
|
|
10831
|
+
var scale = d3Scale.scaleLinear().range([height, 0]).domain(domain);
|
|
10913
10832
|
return this.roundDomains ? scale.nice() : scale;
|
|
10914
10833
|
};
|
|
10915
10834
|
LineChartComponent.prototype.updateDomain = function (domain) {
|
|
@@ -11145,7 +11064,7 @@
|
|
|
11145
11064
|
])
|
|
11146
11065
|
])
|
|
11147
11066
|
],
|
|
11148
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
11067
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"]
|
|
11149
11068
|
})
|
|
11150
11069
|
], LineChartComponent);
|
|
11151
11070
|
return LineChartComponent;
|
|
@@ -11570,13 +11489,9 @@
|
|
|
11570
11489
|
PolarChartComponent.prototype.getXScale = function (domain, width) {
|
|
11571
11490
|
switch (this.scaleType) {
|
|
11572
11491
|
case 'time':
|
|
11573
|
-
return d3Scale.scaleTime()
|
|
11574
|
-
.range([0, width])
|
|
11575
|
-
.domain(domain);
|
|
11492
|
+
return d3Scale.scaleTime().range([0, width]).domain(domain);
|
|
11576
11493
|
case 'linear':
|
|
11577
|
-
var scale = d3Scale.scaleLinear()
|
|
11578
|
-
.range([0, width])
|
|
11579
|
-
.domain(domain);
|
|
11494
|
+
var scale = d3Scale.scaleLinear().range([0, width]).domain(domain);
|
|
11580
11495
|
return this.roundDomains ? scale.nice() : scale;
|
|
11581
11496
|
default:
|
|
11582
11497
|
return d3Scale.scalePoint()
|
|
@@ -11586,9 +11501,7 @@
|
|
|
11586
11501
|
}
|
|
11587
11502
|
};
|
|
11588
11503
|
PolarChartComponent.prototype.getYScale = function (domain, height) {
|
|
11589
|
-
var scale = d3Scale.scaleLinear()
|
|
11590
|
-
.range([0, height])
|
|
11591
|
-
.domain(domain);
|
|
11504
|
+
var scale = d3Scale.scaleLinear().range([0, height]).domain(domain);
|
|
11592
11505
|
return this.roundDomains ? scale.nice() : scale;
|
|
11593
11506
|
};
|
|
11594
11507
|
PolarChartComponent.prototype.onClick = function (data, series) {
|
|
@@ -11773,7 +11686,7 @@
|
|
|
11773
11686
|
])
|
|
11774
11687
|
])
|
|
11775
11688
|
],
|
|
11776
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
11689
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}", ".pie-label{font-size:11px}.pie-label.animation{-webkit-animation:750ms ease-in fadeIn;animation:750ms ease-in fadeIn}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{-webkit-animation:3s linear drawOut;animation:3s linear drawOut;transition:d 750ms}@-webkit-keyframes drawOut{from{stroke-dashoffset:100%}to{stroke-dashoffset:0}}@keyframes drawOut{from{stroke-dashoffset:100%}to{stroke-dashoffset:0}}", ".polar-chart .polar-chart-background{fill:none}.polar-chart .radial-gridline-path{stroke-dasharray:10 10;fill:none}.polar-chart .pie-label-line{stroke:#2f3646}.polar-charts-series .polar-series-area,.polar-series-path{pointer-events:none}"]
|
|
11777
11690
|
})
|
|
11778
11691
|
], PolarChartComponent);
|
|
11779
11692
|
return PolarChartComponent;
|
|
@@ -12065,7 +11978,7 @@
|
|
|
12065
11978
|
template: "\n <div [style.width.px]=\"width\" [style.height.px]=\"height\">\n <div class=\"advanced-pie chart\" [style.width.px]=\"dims.width\" [style.height.px]=\"dims.height\">\n <ngx-charts-chart [view]=\"[width, height]\" [showLegend]=\"false\" [animations]=\"animations\">\n <svg:g [attr.transform]=\"transform\" class=\"pie chart\">\n <svg:g\n ngx-charts-pie-series\n [colors]=\"colors\"\n [series]=\"results\"\n [innerRadius]=\"innerRadius\"\n [activeEntries]=\"activeEntries\"\n [outerRadius]=\"outerRadius\"\n [gradient]=\"gradient\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipText]=\"tooltipText\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n [animations]=\"animations\"\n ></svg:g>\n </svg:g>\n </ngx-charts-chart>\n </div>\n <div class=\"advanced-pie-legend-wrapper\" [style.width.px]=\"width - dims.width\" [style.height.px]=\"height\">\n <ngx-charts-advanced-legend\n [data]=\"results\"\n [colors]=\"colors\"\n [width]=\"width - dims.width - margin[1]\"\n [label]=\"label\"\n [animations]=\"animations\"\n [valueFormatting]=\"valueFormatting\"\n [labelFormatting]=\"nameFormatting\"\n [percentageFormatting]=\"percentageFormatting\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event, true)\"\n (deactivate)=\"onDeactivate($event, true)\"\n >\n </ngx-charts-advanced-legend>\n </div>\n </div>\n ",
|
|
12066
11979
|
encapsulation: core.ViewEncapsulation.None,
|
|
12067
11980
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
12068
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
11981
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}", ".advanced-pie{display:inline-block;float:left}.advanced-pie-legend-wrapper{display:inline-block}"]
|
|
12069
11982
|
})
|
|
12070
11983
|
], AdvancedPieChartComponent);
|
|
12071
11984
|
return AdvancedPieChartComponent;
|
|
@@ -12087,9 +12000,7 @@
|
|
|
12087
12000
|
if (this.explodeSlices) {
|
|
12088
12001
|
startRadius = (this.radius * this.value) / this.max;
|
|
12089
12002
|
}
|
|
12090
|
-
var innerArc = d3Shape.arc()
|
|
12091
|
-
.innerRadius(startRadius)
|
|
12092
|
-
.outerRadius(startRadius);
|
|
12003
|
+
var innerArc = d3Shape.arc().innerRadius(startRadius).outerRadius(startRadius);
|
|
12093
12004
|
// Calculate innerPos then scale outer position to match label position
|
|
12094
12005
|
var innerPos = innerArc.centroid(this.data);
|
|
12095
12006
|
var scale = this.data.pos[1] / innerPos[1];
|
|
@@ -12229,10 +12140,7 @@
|
|
|
12229
12140
|
if (this.explodeSlices && this.innerRadius === 0) {
|
|
12230
12141
|
outerRadius = (this.outerRadius * this.value) / this.max;
|
|
12231
12142
|
}
|
|
12232
|
-
return d3Shape.arc()
|
|
12233
|
-
.innerRadius(this.innerRadius)
|
|
12234
|
-
.outerRadius(outerRadius)
|
|
12235
|
-
.cornerRadius(this.cornerRadius);
|
|
12143
|
+
return d3Shape.arc().innerRadius(this.innerRadius).outerRadius(outerRadius).cornerRadius(this.cornerRadius);
|
|
12236
12144
|
};
|
|
12237
12145
|
PieArcComponent.prototype.loadAnimation = function () {
|
|
12238
12146
|
var node = d3Selection.select(this.element)
|
|
@@ -12545,7 +12453,7 @@
|
|
|
12545
12453
|
template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelActivate)=\"onActivate($event, true)\"\n (legendLabelDeactivate)=\"onDeactivate($event, true)\"\n (legendLabelClick)=\"onClick($event)\"\n >\n <svg:g [attr.transform]=\"translation\" class=\"pie-chart chart\">\n <svg:g\n ngx-charts-pie-series\n [colors]=\"colors\"\n [series]=\"data\"\n [showLabels]=\"labels\"\n [labelFormatting]=\"labelFormatting\"\n [trimLabels]=\"trimLabels\"\n [maxLabelLength]=\"maxLabelLength\"\n [activeEntries]=\"activeEntries\"\n [innerRadius]=\"innerRadius\"\n [outerRadius]=\"outerRadius\"\n [explodeSlices]=\"explodeSlices\"\n [gradient]=\"gradient\"\n [animations]=\"animations\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipText]=\"tooltipText\"\n (dblclick)=\"dblclick.emit($event)\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
12546
12454
|
encapsulation: core.ViewEncapsulation.None,
|
|
12547
12455
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
12548
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
12456
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}", ".pie-label{font-size:11px}.pie-label.animation{-webkit-animation:750ms ease-in fadeIn;animation:750ms ease-in fadeIn}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{-webkit-animation:3s linear drawOut;animation:3s linear drawOut;transition:d 750ms}@-webkit-keyframes drawOut{from{stroke-dashoffset:100%}to{stroke-dashoffset:0}}@keyframes drawOut{from{stroke-dashoffset:100%}to{stroke-dashoffset:0}}"]
|
|
12549
12457
|
})
|
|
12550
12458
|
], PieChartComponent);
|
|
12551
12459
|
return PieChartComponent;
|
|
@@ -12767,7 +12675,7 @@
|
|
|
12767
12675
|
template: "\n <ngx-charts-chart [view]=\"[width, height]\" [showLegend]=\"false\" [animations]=\"animations\">\n <svg:g [attr.transform]=\"transform\" class=\"pie-grid chart\">\n <svg:g *ngFor=\"let series of series\" class=\"pie-grid-item\" [attr.transform]=\"series.transform\">\n <svg:g\n ngx-charts-pie-grid-series\n [colors]=\"series.colors\"\n [data]=\"series.data\"\n [innerRadius]=\"series.innerRadius\"\n [outerRadius]=\"series.outerRadius\"\n [animations]=\"animations\"\n (select)=\"onClick($event)\"\n ngx-tooltip\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipPlacement]=\"'top'\"\n [tooltipType]=\"'tooltip'\"\n [tooltipTitle]=\"tooltipTemplate ? undefined : tooltipText({ data: series })\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipContext]=\"series.data[0].data\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n />\n <svg:text\n *ngIf=\"animations\"\n class=\"label percent-label\"\n dy=\"-0.5em\"\n x=\"0\"\n y=\"5\"\n ngx-charts-count-up\n [countTo]=\"series.percent\"\n [countSuffix]=\"'%'\"\n text-anchor=\"middle\"\n ></svg:text>\n <svg:text *ngIf=\"!animations\" class=\"label percent-label\" dy=\"-0.5em\" x=\"0\" y=\"5\" text-anchor=\"middle\">\n {{ series.percent.toLocaleString() }}\n </svg:text>\n <svg:text class=\"label\" dy=\"0.5em\" x=\"0\" y=\"5\" text-anchor=\"middle\">\n {{ series.label }}\n </svg:text>\n <svg:text\n *ngIf=\"animations\"\n class=\"label\"\n dy=\"1.23em\"\n x=\"0\"\n [attr.y]=\"series.outerRadius\"\n text-anchor=\"middle\"\n ngx-charts-count-up\n [countTo]=\"series.total\"\n [countPrefix]=\"label + ': '\"\n ></svg:text>\n <svg:text\n *ngIf=\"!animations\"\n class=\"label\"\n dy=\"1.23em\"\n x=\"0\"\n [attr.y]=\"series.outerRadius\"\n text-anchor=\"middle\"\n >\n {{ label }}: {{ series.total.toLocaleString() }}\n </svg:text>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
12768
12676
|
encapsulation: core.ViewEncapsulation.None,
|
|
12769
12677
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
12770
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
12678
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}", ".pie-grid .arc1{opacity:.4}.pie-grid .percent-label{font-size:16px;font-weight:400}"]
|
|
12771
12679
|
})
|
|
12772
12680
|
], PieGridComponent);
|
|
12773
12681
|
return PieGridComponent;
|
|
@@ -13477,7 +13385,7 @@
|
|
|
13477
13385
|
template: "\n <ngx-charts-chart [view]=\"[width, height]\" [showLegend]=\"false\" [animations]=\"animations\">\n <svg:g [attr.transform]=\"transform\" class=\"number-card chart\" [class.clickable]=\"clickable\">\n <svg:g\n ngx-charts-card-series\n [colors]=\"colors\"\n [cardColor]=\"cardColor\"\n [bandColor]=\"bandColor\"\n [textColor]=\"textColor\"\n [emptyColor]=\"emptyColor\"\n [data]=\"data\"\n [dims]=\"dims\"\n [innerPadding]=\"innerPadding\"\n [valueFormatting]=\"valueFormatting\"\n [labelFormatting]=\"labelFormatting\"\n [animations]=\"animations\"\n (select)=\"onClick($event)\"\n />\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
13478
13386
|
encapsulation: core.ViewEncapsulation.None,
|
|
13479
13387
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
13480
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
13388
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}", "ngx-charts-number-card .cell .trimmed-label{font-size:12px;pointer-events:none;overflow:hidden;text-align:left;line-height:1em}ngx-charts-number-card .cell .trimmed-label p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;padding:0;margin:0}ngx-charts-number-card .cell .value-text{pointer-events:none}ngx-charts-number-card .number-card.clickable .cell .card,ngx-charts-number-card .number-card.clickable .cell .card-band{cursor:pointer}"]
|
|
13481
13389
|
})
|
|
13482
13390
|
], NumberCardComponent);
|
|
13483
13391
|
return NumberCardComponent;
|
|
@@ -13532,10 +13440,7 @@
|
|
|
13532
13440
|
};
|
|
13533
13441
|
TreeMapCellComponent.prototype.loadAnimation = function () {
|
|
13534
13442
|
var node = d3Selection.select(this.element).select('.cell');
|
|
13535
|
-
node
|
|
13536
|
-
.attr('opacity', 0)
|
|
13537
|
-
.attr('x', this.x)
|
|
13538
|
-
.attr('y', this.y);
|
|
13443
|
+
node.attr('opacity', 0).attr('x', this.x).attr('y', this.y);
|
|
13539
13444
|
this.animateToCurrentForm();
|
|
13540
13445
|
};
|
|
13541
13446
|
TreeMapCellComponent.prototype.getTextColor = function () {
|
|
@@ -13554,12 +13459,7 @@
|
|
|
13554
13459
|
.attr('height', this.height);
|
|
13555
13460
|
}
|
|
13556
13461
|
else {
|
|
13557
|
-
node
|
|
13558
|
-
.attr('opacity', 1)
|
|
13559
|
-
.attr('x', this.x)
|
|
13560
|
-
.attr('y', this.y)
|
|
13561
|
-
.attr('width', this.width)
|
|
13562
|
-
.attr('height', this.height);
|
|
13462
|
+
node.attr('opacity', 1).attr('x', this.x).attr('y', this.y).attr('width', this.width).attr('height', this.height);
|
|
13563
13463
|
}
|
|
13564
13464
|
};
|
|
13565
13465
|
TreeMapCellComponent.prototype.onClick = function () {
|
|
@@ -13867,9 +13767,7 @@
|
|
|
13867
13767
|
return [this.min, this.max];
|
|
13868
13768
|
};
|
|
13869
13769
|
LinearGaugeComponent.prototype.getValueScale = function () {
|
|
13870
|
-
return d3Scale.scaleLinear()
|
|
13871
|
-
.range([0, this.dims.width])
|
|
13872
|
-
.domain(this.valueDomain);
|
|
13770
|
+
return d3Scale.scaleLinear().range([0, this.dims.width]).domain(this.valueDomain);
|
|
13873
13771
|
};
|
|
13874
13772
|
LinearGaugeComponent.prototype.getDisplayValue = function () {
|
|
13875
13773
|
if (this.valueFormatting) {
|
|
@@ -13955,7 +13853,7 @@
|
|
|
13955
13853
|
template: "\n <ngx-charts-chart [view]=\"[width, height]\" [showLegend]=\"false\" [animations]=\"animations\" (click)=\"onClick()\">\n <svg:g class=\"linear-gauge chart\">\n <svg:g\n ngx-charts-bar\n class=\"background-bar\"\n [width]=\"dims.width\"\n [height]=\"3\"\n [x]=\"margin[3]\"\n [y]=\"dims.height / 2 + margin[0] - 2\"\n [data]=\"{}\"\n [orientation]=\"'horizontal'\"\n [roundEdges]=\"true\"\n [animations]=\"animations\"\n ></svg:g>\n <svg:g\n ngx-charts-bar\n [width]=\"valueScale(value)\"\n [height]=\"3\"\n [x]=\"margin[3]\"\n [y]=\"dims.height / 2 + margin[0] - 2\"\n [fill]=\"colors.getColor(units)\"\n [data]=\"{}\"\n [orientation]=\"'horizontal'\"\n [roundEdges]=\"true\"\n [animations]=\"animations\"\n ></svg:g>\n\n <svg:line\n *ngIf=\"hasPreviousValue\"\n [attr.transform]=\"transformLine\"\n x1=\"0\"\n y1=\"5\"\n x2=\"0\"\n y2=\"15\"\n [attr.stroke]=\"colors.getColor(units)\"\n />\n\n <svg:line\n *ngIf=\"hasPreviousValue\"\n [attr.transform]=\"transformLine\"\n x1=\"0\"\n y1=\"-5\"\n x2=\"0\"\n y2=\"-15\"\n [attr.stroke]=\"colors.getColor(units)\"\n />\n\n <svg:g [attr.transform]=\"transform\">\n <svg:g [attr.transform]=\"valueTranslate\">\n <svg:text\n #valueTextEl\n class=\"value\"\n [style.textAnchor]=\"'middle'\"\n [attr.transform]=\"valueTextTransform\"\n alignment-baseline=\"after-edge\"\n >\n {{ displayValue }}\n </svg:text>\n </svg:g>\n\n <svg:g [attr.transform]=\"unitsTranslate\">\n <svg:text\n #unitsTextEl\n class=\"units\"\n [style.textAnchor]=\"'middle'\"\n [attr.transform]=\"unitsTextTransform\"\n alignment-baseline=\"before-edge\"\n >\n {{ units }}\n </svg:text>\n </svg:g>\n </svg:g>\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
13956
13854
|
encapsulation: core.ViewEncapsulation.None,
|
|
13957
13855
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
13958
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
13856
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}", ".linear-gauge{cursor:pointer}.linear-gauge .background-bar path{fill:rgba(0,0,0,.05)}.linear-gauge .units{fill:#666}"]
|
|
13959
13857
|
})
|
|
13960
13858
|
], LinearGaugeComponent);
|
|
13961
13859
|
return LinearGaugeComponent;
|
|
@@ -14101,10 +13999,7 @@
|
|
|
14101
13999
|
return [this.min, this.max];
|
|
14102
14000
|
};
|
|
14103
14001
|
GaugeComponent.prototype.getValueScale = function () {
|
|
14104
|
-
return d3Scale.scaleLinear()
|
|
14105
|
-
.range([0, this.angleSpan])
|
|
14106
|
-
.nice()
|
|
14107
|
-
.domain(this.valueDomain);
|
|
14002
|
+
return d3Scale.scaleLinear().range([0, this.angleSpan]).nice().domain(this.valueDomain);
|
|
14108
14003
|
};
|
|
14109
14004
|
GaugeComponent.prototype.getDisplayValue = function () {
|
|
14110
14005
|
var value = this.results.map(function (d) { return d.value; }).reduce(function (a, b) { return a + b; }, 0);
|
|
@@ -14258,7 +14153,7 @@
|
|
|
14258
14153
|
template: "\n <ngx-charts-chart\n [view]=\"[width, height]\"\n [showLegend]=\"legend\"\n [legendOptions]=\"legendOptions\"\n [activeEntries]=\"activeEntries\"\n [animations]=\"animations\"\n (legendLabelClick)=\"onClick($event)\"\n (legendLabelActivate)=\"onActivate($event)\"\n (legendLabelDeactivate)=\"onDeactivate($event)\"\n >\n <svg:g [attr.transform]=\"transform\" class=\"gauge chart\">\n <svg:g *ngFor=\"let arc of arcs; trackBy: trackBy\" [attr.transform]=\"rotation\">\n <svg:g\n ngx-charts-gauge-arc\n [backgroundArc]=\"arc.backgroundArc\"\n [valueArc]=\"arc.valueArc\"\n [cornerRadius]=\"cornerRadius\"\n [colors]=\"colors\"\n [isActive]=\"isActive(arc.valueArc.data)\"\n [tooltipDisabled]=\"tooltipDisabled\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [valueFormatting]=\"valueFormatting\"\n [animations]=\"animations\"\n (select)=\"onClick($event)\"\n (activate)=\"onActivate($event)\"\n (deactivate)=\"onDeactivate($event)\"\n ></svg:g>\n </svg:g>\n\n <svg:g\n ngx-charts-gauge-axis\n *ngIf=\"showAxis\"\n [bigSegments]=\"bigSegments\"\n [smallSegments]=\"smallSegments\"\n [min]=\"min\"\n [max]=\"max\"\n [radius]=\"outerRadius\"\n [angleSpan]=\"angleSpan\"\n [valueScale]=\"valueScale\"\n [startAngle]=\"startAngle\"\n [tickFormatting]=\"axisTickFormatting\"\n ></svg:g>\n\n <svg:text\n #textEl\n *ngIf=\"showText\"\n [style.textAnchor]=\"'middle'\"\n [attr.transform]=\"textTransform\"\n alignment-baseline=\"central\"\n >\n <tspan x=\"0\" dy=\"0\">{{ displayValue }}</tspan>\n <tspan x=\"0\" dy=\"1.2em\">{{ units }}</tspan>\n </svg:text>\n </svg:g>\n </ngx-charts-chart>\n ",
|
|
14259
14154
|
encapsulation: core.ViewEncapsulation.None,
|
|
14260
14155
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
14261
|
-
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8
|
|
14156
|
+
styles: [".ngx-charts{float:left;overflow:visible}.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}", ".gauge .background-arc path{fill:rgba(0,0,0,.05)}.gauge .gauge-tick path{stroke:#666}.gauge .gauge-tick text{font-size:12px;fill:#666;font-weight:700}.gauge .gauge-tick-large path{stroke-width:2px}.gauge .gauge-tick-small path{stroke-width:1px}"]
|
|
14262
14157
|
})
|
|
14263
14158
|
], GaugeComponent);
|
|
14264
14159
|
return GaugeComponent;
|