@covalent/echarts 6.1.3 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/clustering/README.md +124 -0
- package/clustering/clustering.component.d.ts +104 -0
- package/clustering/clustering.module.d.ts +10 -0
- package/clustering/index.d.ts +5 -0
- package/clustering/public_api.d.ts +2 -0
- package/esm2020/clustering/clustering.component.mjs +233 -0
- package/esm2020/clustering/clustering.module.mjs +21 -0
- package/esm2020/clustering/covalent-echarts-clustering.mjs +5 -0
- package/esm2020/clustering/public_api.mjs +3 -0
- package/esm2020/histogram/covalent-echarts-histogram.mjs +5 -0
- package/esm2020/histogram/histogram.component.mjs +125 -0
- package/esm2020/histogram/histogram.module.mjs +21 -0
- package/esm2020/histogram/public_api.mjs +3 -0
- package/esm2020/regression/covalent-echarts-regression.mjs +5 -0
- package/esm2020/regression/public_api.mjs +3 -0
- package/esm2020/regression/regression.component.mjs +137 -0
- package/esm2020/regression/regression.module.mjs +21 -0
- package/fesm2015/covalent-echarts-clustering.mjs +258 -0
- package/fesm2015/covalent-echarts-clustering.mjs.map +1 -0
- package/fesm2015/covalent-echarts-histogram.mjs +151 -0
- package/fesm2015/covalent-echarts-histogram.mjs.map +1 -0
- package/fesm2015/covalent-echarts-regression.mjs +163 -0
- package/fesm2015/covalent-echarts-regression.mjs.map +1 -0
- package/fesm2020/covalent-echarts-clustering.mjs +258 -0
- package/fesm2020/covalent-echarts-clustering.mjs.map +1 -0
- package/fesm2020/covalent-echarts-histogram.mjs +150 -0
- package/fesm2020/covalent-echarts-histogram.mjs.map +1 -0
- package/fesm2020/covalent-echarts-regression.mjs +162 -0
- package/fesm2020/covalent-echarts-regression.mjs.map +1 -0
- package/histogram/README.md +65 -0
- package/histogram/histogram.component.d.ts +19 -0
- package/histogram/histogram.module.d.ts +10 -0
- package/histogram/index.d.ts +5 -0
- package/histogram/public_api.d.ts +2 -0
- package/package.json +26 -1
- package/regression/README.md +74 -0
- package/regression/index.d.ts +5 -0
- package/regression/public_api.d.ts +2 -0
- package/regression/regression.component.d.ts +22 -0
- package/regression/regression.module.d.ts +10 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i1 from '@covalent/echarts/base';
|
|
5
|
+
import { TdSeriesDirective, assignDefined } from '@covalent/echarts/base';
|
|
6
|
+
import * as ecStat from 'echarts-stat';
|
|
7
|
+
|
|
8
|
+
class TdChartSeriesClusteringComponent extends TdSeriesDirective {
|
|
9
|
+
constructor(_optionsService) {
|
|
10
|
+
super('scatter', _optionsService);
|
|
11
|
+
}
|
|
12
|
+
ngOnChanges() {
|
|
13
|
+
if (this.originalData) {
|
|
14
|
+
this.data = this.originalData;
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
this.originalData = this.data;
|
|
18
|
+
}
|
|
19
|
+
const output = this.data;
|
|
20
|
+
const result = ecStat.clustering.hierarchicalKMeans(output, this.clusterCount, false);
|
|
21
|
+
const series = [];
|
|
22
|
+
for (let i = 0; i < result.centroids.length; i++) {
|
|
23
|
+
series.push({
|
|
24
|
+
name: `cluster ${i + 1}`,
|
|
25
|
+
type: 'scatter',
|
|
26
|
+
data: result.pointsInCluster[i],
|
|
27
|
+
markPoint: this.showCentroids
|
|
28
|
+
? {
|
|
29
|
+
symbolSize: 30,
|
|
30
|
+
itemStyle: {
|
|
31
|
+
normal: {
|
|
32
|
+
opacity: 0.8,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
data: [
|
|
36
|
+
{
|
|
37
|
+
coord: result.centroids[i],
|
|
38
|
+
label: { show: false },
|
|
39
|
+
name: `centroid ${i + 1}`,
|
|
40
|
+
value: result.centroids[i],
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
}
|
|
44
|
+
: {},
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
this.optionsService.setOption('series', series);
|
|
48
|
+
this.data = [];
|
|
49
|
+
this.setOptions();
|
|
50
|
+
}
|
|
51
|
+
getConfig() {
|
|
52
|
+
return {
|
|
53
|
+
clusterCount: this.clusterCount,
|
|
54
|
+
showCentroids: this.showCentroids,
|
|
55
|
+
bottom: this.bottom,
|
|
56
|
+
calendarIndex: this.calendarIndex,
|
|
57
|
+
circular: this.circular,
|
|
58
|
+
coordinateSystem: this.coordinateSystem,
|
|
59
|
+
cursor: this.cursor,
|
|
60
|
+
edgeLabel: this.edgeLabel,
|
|
61
|
+
edges: this.edges,
|
|
62
|
+
edgeSymbol: this.edgeSymbol,
|
|
63
|
+
edgeSymbolSize: this.edgeSymbolSize,
|
|
64
|
+
emphasis: this.emphasis,
|
|
65
|
+
focusNodeAdjacency: this.focusNodeAdjacency,
|
|
66
|
+
geoIndex: this.geoIndex,
|
|
67
|
+
height: this.height,
|
|
68
|
+
hoverAnimation: this.hoverAnimation,
|
|
69
|
+
itemStyle: this.itemStyle,
|
|
70
|
+
label: this.label,
|
|
71
|
+
left: this.left,
|
|
72
|
+
legendHoverLink: this.legendHoverLink,
|
|
73
|
+
lineStyle: this.lineStyle,
|
|
74
|
+
links: this.links,
|
|
75
|
+
markArea: this.markArea,
|
|
76
|
+
markLine: this.markLine,
|
|
77
|
+
markPoint: this.markPoint,
|
|
78
|
+
nodes: this.nodes,
|
|
79
|
+
nodeScaleRatio: this.nodeScaleRatio,
|
|
80
|
+
polarIndex: this.polarIndex,
|
|
81
|
+
right: this.right,
|
|
82
|
+
silent: this.silent,
|
|
83
|
+
symbol: this.symbol,
|
|
84
|
+
symbolKeepAspect: this.symbolKeepAspect,
|
|
85
|
+
symbolOffset: this.symbolOffset,
|
|
86
|
+
symbolRotate: this.symbolRotate,
|
|
87
|
+
symbolSize: this.symbolSize,
|
|
88
|
+
top: this.top,
|
|
89
|
+
width: this.width,
|
|
90
|
+
xAxisIndex: this.xAxisIndex,
|
|
91
|
+
yAxisIndex: this.yAxisIndex,
|
|
92
|
+
z: this.z,
|
|
93
|
+
zlevel: this.zlevel,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
setOptions() {
|
|
97
|
+
const config = assignDefined(this._state, {
|
|
98
|
+
id: this.id,
|
|
99
|
+
type: this.type,
|
|
100
|
+
name: this.name,
|
|
101
|
+
color: this.color,
|
|
102
|
+
data: this.data,
|
|
103
|
+
animation: this.animation,
|
|
104
|
+
animationThreshold: this.animationThreshold,
|
|
105
|
+
animationDuration: this.animationDuration,
|
|
106
|
+
animationEasing: this.animationEasing,
|
|
107
|
+
animationDelay: this.animationDelay,
|
|
108
|
+
animationDurationUpdate: this.animationDurationUpdate,
|
|
109
|
+
animationEasingUpdate: this.animationEasingUpdate,
|
|
110
|
+
animationDelayUpdate: this.animationDelayUpdate,
|
|
111
|
+
tooltip: this.tooltip,
|
|
112
|
+
}, this.getConfig(), this._options, this.config ? this.config : {});
|
|
113
|
+
this.optionsService.setArrayOption('scatter', config);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
TdChartSeriesClusteringComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartSeriesClusteringComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
117
|
+
TdChartSeriesClusteringComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdChartSeriesClusteringComponent, selector: "td-chart-series[td-clustering]", inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", clusterCount: "clusterCount", showCentroids: "showCentroids", bottom: "bottom", calendarIndex: "calendarIndex", circular: "circular", coordinateSystem: "coordinateSystem", cursor: "cursor", edgeLabel: "edgeLabel", edges: "edges", edgeSymbol: "edgeSymbol", edgeSymbolSize: "edgeSymbolSize", emphasis: "emphasis", focusNodeAdjacency: "focusNodeAdjacency", geoIndex: "geoIndex", height: "height", hoverAnimation: "hoverAnimation", itemStyle: "itemStyle", label: "label", left: "left", legendHoverLink: "legendHoverLink", lineStyle: "lineStyle", links: "links", markArea: "markArea", markLine: "markLine", markPoint: "markPoint", nodes: "nodes", nodeScaleRatio: "nodeScaleRatio", polarIndex: "polarIndex", right: "right", silent: "silent", symbol: "symbol", symbolKeepAspect: "symbolKeepAspect", symbolOffset: "symbolOffset", symbolRotate: "symbolRotate", symbolSize: "symbolSize", top: "top", width: "width", xAxisIndex: "xAxisIndex", yAxisIndex: "yAxisIndex", z: "z", zlevel: "zlevel" }, providers: [
|
|
118
|
+
{
|
|
119
|
+
provide: TdSeriesDirective,
|
|
120
|
+
useExisting: forwardRef(() => TdChartSeriesClusteringComponent),
|
|
121
|
+
},
|
|
122
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartSeriesClusteringComponent, decorators: [{
|
|
124
|
+
type: Component,
|
|
125
|
+
args: [{
|
|
126
|
+
selector: 'td-chart-series[td-clustering]',
|
|
127
|
+
template: '',
|
|
128
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
129
|
+
inputs: [
|
|
130
|
+
'config',
|
|
131
|
+
'id',
|
|
132
|
+
'name',
|
|
133
|
+
'color',
|
|
134
|
+
'data',
|
|
135
|
+
'animation',
|
|
136
|
+
'animationThreshold',
|
|
137
|
+
'animationDuration',
|
|
138
|
+
'animationEasing',
|
|
139
|
+
'animationDelay',
|
|
140
|
+
'animationDurationUpdate',
|
|
141
|
+
'animationEasingUpdate',
|
|
142
|
+
'animationDelayUpdate',
|
|
143
|
+
'tooltip',
|
|
144
|
+
],
|
|
145
|
+
providers: [
|
|
146
|
+
{
|
|
147
|
+
provide: TdSeriesDirective,
|
|
148
|
+
useExisting: forwardRef(() => TdChartSeriesClusteringComponent),
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
}]
|
|
152
|
+
}], ctorParameters: function () { return [{ type: i1.TdChartOptionsService }]; }, propDecorators: { clusterCount: [{
|
|
153
|
+
type: Input
|
|
154
|
+
}], showCentroids: [{
|
|
155
|
+
type: Input
|
|
156
|
+
}], bottom: [{
|
|
157
|
+
type: Input
|
|
158
|
+
}], calendarIndex: [{
|
|
159
|
+
type: Input
|
|
160
|
+
}], circular: [{
|
|
161
|
+
type: Input
|
|
162
|
+
}], coordinateSystem: [{
|
|
163
|
+
type: Input
|
|
164
|
+
}], cursor: [{
|
|
165
|
+
type: Input
|
|
166
|
+
}], edgeLabel: [{
|
|
167
|
+
type: Input
|
|
168
|
+
}], edges: [{
|
|
169
|
+
type: Input
|
|
170
|
+
}], edgeSymbol: [{
|
|
171
|
+
type: Input
|
|
172
|
+
}], edgeSymbolSize: [{
|
|
173
|
+
type: Input
|
|
174
|
+
}], emphasis: [{
|
|
175
|
+
type: Input
|
|
176
|
+
}], focusNodeAdjacency: [{
|
|
177
|
+
type: Input
|
|
178
|
+
}], geoIndex: [{
|
|
179
|
+
type: Input
|
|
180
|
+
}], height: [{
|
|
181
|
+
type: Input
|
|
182
|
+
}], hoverAnimation: [{
|
|
183
|
+
type: Input
|
|
184
|
+
}], itemStyle: [{
|
|
185
|
+
type: Input
|
|
186
|
+
}], label: [{
|
|
187
|
+
type: Input
|
|
188
|
+
}], left: [{
|
|
189
|
+
type: Input
|
|
190
|
+
}], legendHoverLink: [{
|
|
191
|
+
type: Input
|
|
192
|
+
}], lineStyle: [{
|
|
193
|
+
type: Input
|
|
194
|
+
}], links: [{
|
|
195
|
+
type: Input
|
|
196
|
+
}], markArea: [{
|
|
197
|
+
type: Input
|
|
198
|
+
}], markLine: [{
|
|
199
|
+
type: Input
|
|
200
|
+
}], markPoint: [{
|
|
201
|
+
type: Input
|
|
202
|
+
}], nodes: [{
|
|
203
|
+
type: Input
|
|
204
|
+
}], nodeScaleRatio: [{
|
|
205
|
+
type: Input
|
|
206
|
+
}], polarIndex: [{
|
|
207
|
+
type: Input
|
|
208
|
+
}], right: [{
|
|
209
|
+
type: Input
|
|
210
|
+
}], silent: [{
|
|
211
|
+
type: Input
|
|
212
|
+
}], symbol: [{
|
|
213
|
+
type: Input
|
|
214
|
+
}], symbolKeepAspect: [{
|
|
215
|
+
type: Input
|
|
216
|
+
}], symbolOffset: [{
|
|
217
|
+
type: Input
|
|
218
|
+
}], symbolRotate: [{
|
|
219
|
+
type: Input
|
|
220
|
+
}], symbolSize: [{
|
|
221
|
+
type: Input
|
|
222
|
+
}], top: [{
|
|
223
|
+
type: Input
|
|
224
|
+
}], width: [{
|
|
225
|
+
type: Input
|
|
226
|
+
}], xAxisIndex: [{
|
|
227
|
+
type: Input
|
|
228
|
+
}], yAxisIndex: [{
|
|
229
|
+
type: Input
|
|
230
|
+
}], z: [{
|
|
231
|
+
type: Input
|
|
232
|
+
}], zlevel: [{
|
|
233
|
+
type: Input
|
|
234
|
+
}] } });
|
|
235
|
+
|
|
236
|
+
const CLUSTERING_MODULE_COMPONENTS = [
|
|
237
|
+
TdChartSeriesClusteringComponent,
|
|
238
|
+
];
|
|
239
|
+
class CovalentClusteringEchartsModule {
|
|
240
|
+
}
|
|
241
|
+
CovalentClusteringEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentClusteringEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
242
|
+
CovalentClusteringEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: CovalentClusteringEchartsModule, declarations: [TdChartSeriesClusteringComponent], imports: [CommonModule], exports: [TdChartSeriesClusteringComponent] });
|
|
243
|
+
CovalentClusteringEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentClusteringEchartsModule, imports: [CommonModule] });
|
|
244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentClusteringEchartsModule, decorators: [{
|
|
245
|
+
type: NgModule,
|
|
246
|
+
args: [{
|
|
247
|
+
imports: [CommonModule],
|
|
248
|
+
declarations: [CLUSTERING_MODULE_COMPONENTS],
|
|
249
|
+
exports: [CLUSTERING_MODULE_COMPONENTS],
|
|
250
|
+
}]
|
|
251
|
+
}] });
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Generated bundle index. Do not edit.
|
|
255
|
+
*/
|
|
256
|
+
|
|
257
|
+
export { CLUSTERING_MODULE_COMPONENTS, CovalentClusteringEchartsModule, TdChartSeriesClusteringComponent };
|
|
258
|
+
//# sourceMappingURL=covalent-echarts-clustering.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-clustering.mjs","sources":["../../../../libs/angular-echarts/clustering/src/clustering.component.ts","../../../../libs/angular-echarts/clustering/src/clustering.module.ts","../../../../libs/angular-echarts/clustering/src/covalent-echarts-clustering.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n OnChanges,\n} from '@angular/core';\n\nimport {\n assignDefined,\n ITdEdgeLabel,\n ITdEmphasis,\n ITdItemStyle,\n ITdLabel,\n ITdLineStyle,\n ITdMarkArea,\n ITdMarkLine,\n ITdMarkPoint,\n ITdSeries,\n TdChartOptionsService,\n TdCoordinateSystem,\n TdMarkPointSymbol,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\nimport * as ecStat from 'echarts-stat';\n\nexport interface ITdClusteringSeries extends ITdSeries {\n clusterCount: number;\n showCentroids: boolean;\n animation?: boolean;\n animationDelay?: number | Function;\n animationDelayUpdate?: number | Function;\n animationDuration?: number | Function;\n animationDurationUpdate?: number | Function;\n animationEasing?: string;\n animationEasingUpdate?: string;\n animationThreshold?: number;\n bottom?: string | number;\n calendarIndex?: number;\n circular?: object;\n coordinateSystem?: TdCoordinateSystem;\n cursor?: string;\n edgeLabel?: ITdEdgeLabel;\n edges?: any[];\n edgeSymbol?: any[] | string;\n edgeSymbolSize?: number;\n emphasis?: ITdEmphasis;\n focusNodeAdjacency?: boolean;\n geoIndex?: number;\n height?: string | number;\n hoverAnimation?: boolean;\n itemStyle?: ITdItemStyle;\n label?: ITdLabel;\n left?: string | number;\n legendHoverLink?: boolean;\n lineStyle?: ITdLineStyle;\n links?: any[];\n markArea?: ITdMarkArea;\n markLine?: ITdMarkLine;\n markPoint?: ITdMarkPoint;\n nodes?: any[];\n nodeScaleRatio?: boolean;\n polarIndex?: number;\n right?: string | number;\n silent?: boolean;\n symbol?: TdMarkPointSymbol | string;\n symbolKeepAspect?: boolean;\n symbolOffset?: any[];\n symbolRotate?: number;\n symbolSize?: number | any[] | Function;\n top?: string | number;\n width?: string | number;\n xAxisIndex?: number;\n yAxisIndex?: number;\n z?: number;\n zlevel?: number;\n}\n\n@Component({\n selector: 'td-chart-series[td-clustering]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesClusteringComponent),\n },\n ],\n})\nexport class TdChartSeriesClusteringComponent\n extends TdSeriesDirective\n implements ITdClusteringSeries, OnChanges\n{\n @Input() clusterCount!: number;\n @Input() showCentroids!: boolean;\n @Input() bottom?: string | number;\n @Input() calendarIndex?: number;\n @Input() circular?: object;\n @Input() coordinateSystem?: TdCoordinateSystem;\n @Input() cursor?: string;\n @Input() edgeLabel?: ITdEdgeLabel;\n @Input() edges?: any[];\n @Input() edgeSymbol?: any[] | string;\n @Input() edgeSymbolSize?: number;\n @Input() emphasis?: ITdEmphasis;\n @Input() focusNodeAdjacency?: boolean;\n @Input() geoIndex?: number;\n @Input() height?: string | number;\n @Input() hoverAnimation?: boolean;\n @Input() itemStyle?: ITdItemStyle;\n @Input() label?: ITdLabel;\n @Input() left?: string | number;\n @Input() legendHoverLink?: boolean;\n @Input() lineStyle?: ITdLineStyle;\n @Input() links?: any[];\n @Input() markArea?: ITdMarkArea;\n @Input() markLine?: ITdMarkLine;\n @Input() markPoint?: ITdMarkPoint;\n @Input() nodes?: any[];\n @Input() nodeScaleRatio?: boolean;\n @Input() polarIndex?: number;\n @Input() right?: string | number;\n @Input() silent?: boolean;\n @Input() symbol?: TdMarkPointSymbol | string;\n @Input() symbolKeepAspect?: boolean;\n @Input() symbolOffset?: any[];\n @Input() symbolRotate?: number;\n @Input() symbolSize?: number | any[] | Function;\n @Input() top?: string | number;\n @Input() width?: string | number;\n @Input() xAxisIndex?: number;\n @Input() yAxisIndex?: number;\n @Input() z?: number;\n @Input() zlevel?: number;\n originalData: any;\n\n constructor(_optionsService: TdChartOptionsService) {\n super('scatter', _optionsService);\n }\n\n override ngOnChanges(): void {\n if (this.originalData) {\n this.data = this.originalData;\n } else {\n this.originalData = this.data;\n }\n const output: any = this.data;\n const result = ecStat.clustering.hierarchicalKMeans(\n output,\n this.clusterCount,\n false\n );\n const series = [];\n\n for (let i = 0; i < result.centroids.length; i++) {\n series.push({\n name: `cluster ${i + 1}`,\n type: 'scatter',\n data: result.pointsInCluster[i],\n markPoint: this.showCentroids\n ? {\n symbolSize: 30,\n itemStyle: {\n normal: {\n opacity: 0.8,\n },\n },\n data: [\n {\n coord: result.centroids[i],\n label: { show: false },\n name: `centroid ${i + 1}`,\n value: result.centroids[i],\n },\n ],\n }\n : {},\n });\n }\n this.optionsService.setOption('series', series);\n this.data = [];\n this.setOptions();\n }\n\n override getConfig(): any {\n return {\n clusterCount: this.clusterCount,\n showCentroids: this.showCentroids,\n bottom: this.bottom,\n calendarIndex: this.calendarIndex,\n circular: this.circular,\n coordinateSystem: this.coordinateSystem,\n cursor: this.cursor,\n edgeLabel: this.edgeLabel,\n edges: this.edges,\n edgeSymbol: this.edgeSymbol,\n edgeSymbolSize: this.edgeSymbolSize,\n emphasis: this.emphasis,\n focusNodeAdjacency: this.focusNodeAdjacency,\n geoIndex: this.geoIndex,\n height: this.height,\n hoverAnimation: this.hoverAnimation,\n itemStyle: this.itemStyle,\n label: this.label,\n left: this.left,\n legendHoverLink: this.legendHoverLink,\n lineStyle: this.lineStyle,\n links: this.links,\n markArea: this.markArea,\n markLine: this.markLine,\n markPoint: this.markPoint,\n nodes: this.nodes,\n nodeScaleRatio: this.nodeScaleRatio,\n polarIndex: this.polarIndex,\n right: this.right,\n silent: this.silent,\n symbol: this.symbol,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n symbolRotate: this.symbolRotate,\n symbolSize: this.symbolSize,\n top: this.top,\n width: this.width,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n z: this.z,\n zlevel: this.zlevel,\n };\n }\n\n private setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n id: this.id,\n type: this.type,\n name: this.name,\n color: this.color,\n data: this.data,\n animation: this.animation,\n animationThreshold: this.animationThreshold,\n animationDuration: this.animationDuration,\n animationEasing: this.animationEasing,\n animationDelay: this.animationDelay,\n animationDurationUpdate: this.animationDurationUpdate,\n animationEasingUpdate: this.animationEasingUpdate,\n animationDelayUpdate: this.animationDelayUpdate,\n tooltip: this.tooltip,\n },\n this.getConfig(),\n this._options,\n this.config ? this.config : {}\n );\n this.optionsService.setArrayOption('scatter', config);\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesClusteringComponent } from './clustering.component';\n\nexport const CLUSTERING_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesClusteringComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [CLUSTERING_MODULE_COMPONENTS],\n exports: [CLUSTERING_MODULE_COMPONENTS],\n})\nexport class CovalentClusteringEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;AA0GM,MAAO,gCACX,SAAQ,iBAAiB,CAAA;AA8CzB,IAAA,WAAA,CAAY,eAAsC,EAAA;AAChD,QAAA,KAAK,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;KACnC;IAEQ,WAAW,GAAA;QAClB,IAAI,IAAI,CAAC,YAAY,EAAE;AACrB,YAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,YAAY,CAAC;AAC/B,SAAA;AAAM,aAAA;AACL,YAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC;AAC/B,SAAA;AACD,QAAA,MAAM,MAAM,GAAQ,IAAI,CAAC,IAAI,CAAC;AAC9B,QAAA,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,kBAAkB,CACjD,MAAM,EACN,IAAI,CAAC,YAAY,EACjB,KAAK,CACN,CAAC;QACF,MAAM,MAAM,GAAG,EAAE,CAAC;AAElB,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAChD,MAAM,CAAC,IAAI,CAAC;AACV,gBAAA,IAAI,EAAE,CAAA,QAAA,EAAW,CAAC,GAAG,CAAC,CAAE,CAAA;AACxB,gBAAA,IAAI,EAAE,SAAS;AACf,gBAAA,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;gBAC/B,SAAS,EAAE,IAAI,CAAC,aAAa;AAC3B,sBAAE;AACE,wBAAA,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A,CAAA,CAAA;AAA/B,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,EAR1C,YAAA,EAAA,CAAA,gCAAgC,CAItB,EAAA,OAAA,EAAA,CAAA,YAAY,aAJtB,gCAAgC,CAAA,EAAA,CAAA,CAAA;AAQrB,+BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,+BAA+B,YAJhC,YAAY,CAAA,EAAA,CAAA,CAAA;2FAIX,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAL3C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,4BAA4B,CAAC;oBAC5C,OAAO,EAAE,CAAC,4BAA4B,CAAC;AACxC,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i1 from '@covalent/echarts/base';
|
|
5
|
+
import { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';
|
|
6
|
+
import { TdChartSeriesBarComponent } from '@covalent/echarts/bar';
|
|
7
|
+
import * as ecStat from 'echarts-stat';
|
|
8
|
+
|
|
9
|
+
class TdChartSeriesHistogramComponent extends TdChartSeriesBarComponent {
|
|
10
|
+
constructor(_optionsService) {
|
|
11
|
+
super(_optionsService);
|
|
12
|
+
}
|
|
13
|
+
ngOnChanges() {
|
|
14
|
+
let output = [];
|
|
15
|
+
if (!this.source) {
|
|
16
|
+
const dataset = this.optionsService.getOption('dataset');
|
|
17
|
+
this.source = dataset?.source ?? [];
|
|
18
|
+
}
|
|
19
|
+
if (this.source?.some((item) => Array.isArray(item))) {
|
|
20
|
+
const config = this.getConfig();
|
|
21
|
+
const index = config.datasetIndex ?? 1;
|
|
22
|
+
const source = this.source;
|
|
23
|
+
const indexedOutput = source[0].map((_, colIndex) => source.map((row) => row[colIndex]));
|
|
24
|
+
output = indexedOutput[index - 1] ?? [];
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
output = this.source;
|
|
28
|
+
}
|
|
29
|
+
const bins = ecStat.histogram(output, this.method ?? 'squareRoot');
|
|
30
|
+
this.data = bins.data;
|
|
31
|
+
this.setOptions();
|
|
32
|
+
}
|
|
33
|
+
getConfig() {
|
|
34
|
+
return {
|
|
35
|
+
method: this.method,
|
|
36
|
+
coordinateSystem: this.coordinateSystem,
|
|
37
|
+
xAxisIndex: this.xAxisIndex,
|
|
38
|
+
yAxisIndex: this.yAxisIndex,
|
|
39
|
+
legendHoverLink: this.legendHoverLink,
|
|
40
|
+
stack: this.stack,
|
|
41
|
+
cursor: this.cursor,
|
|
42
|
+
label: this.label,
|
|
43
|
+
itemStyle: this.itemStyle,
|
|
44
|
+
emphasis: this.emphasis,
|
|
45
|
+
barWidth: this.barWidth,
|
|
46
|
+
barMaxWidth: this.barMaxWidth,
|
|
47
|
+
barMinHeight: this.barMinHeight,
|
|
48
|
+
barGap: this.barGap,
|
|
49
|
+
barCategoryGap: this.barCategoryGap,
|
|
50
|
+
large: this.large,
|
|
51
|
+
largeThreshold: this.largeThreshold,
|
|
52
|
+
progressive: this.progressive,
|
|
53
|
+
progressiveThreshold: this.progressiveThreshold,
|
|
54
|
+
progressiveChunkMode: this.progressiveChunkMode,
|
|
55
|
+
dimensions: this.dimensions,
|
|
56
|
+
encode: this.encode,
|
|
57
|
+
seriesLayoutBy: this.seriesLayoutBy,
|
|
58
|
+
datasetIndex: this.datasetIndex,
|
|
59
|
+
markPoint: this.markPoint,
|
|
60
|
+
markLine: this.markLine,
|
|
61
|
+
markArea: this.markArea,
|
|
62
|
+
zlevel: this.zlevel,
|
|
63
|
+
z: this.z,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
setOptions() {
|
|
67
|
+
const config = assignDefined(this._state, {
|
|
68
|
+
id: this.id,
|
|
69
|
+
type: this.type,
|
|
70
|
+
name: this.name,
|
|
71
|
+
color: this.color,
|
|
72
|
+
data: this.data,
|
|
73
|
+
animation: this.animation,
|
|
74
|
+
animationThreshold: this.animationThreshold,
|
|
75
|
+
animationDuration: this.animationDuration,
|
|
76
|
+
animationEasing: this.animationEasing,
|
|
77
|
+
animationDelay: this.animationDelay,
|
|
78
|
+
animationDurationUpdate: this.animationDurationUpdate,
|
|
79
|
+
animationEasingUpdate: this.animationEasingUpdate,
|
|
80
|
+
animationDelayUpdate: this.animationDelayUpdate,
|
|
81
|
+
tooltip: this.tooltip,
|
|
82
|
+
}, this.getConfig(), this._options, this.config ? this.config : {});
|
|
83
|
+
this.optionsService.setArrayOption('series', config);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
TdChartSeriesHistogramComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartSeriesHistogramComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
87
|
+
TdChartSeriesHistogramComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdChartSeriesHistogramComponent, selector: "td-chart-series[td-histogram]", inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", source: "source", method: "method" }, providers: [
|
|
88
|
+
{
|
|
89
|
+
provide: TdSeriesDirective,
|
|
90
|
+
useExisting: forwardRef(() => TdChartSeriesHistogramComponent),
|
|
91
|
+
},
|
|
92
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
93
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartSeriesHistogramComponent, decorators: [{
|
|
94
|
+
type: Component,
|
|
95
|
+
args: [{
|
|
96
|
+
selector: 'td-chart-series[td-histogram]',
|
|
97
|
+
template: '',
|
|
98
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
99
|
+
inputs: [
|
|
100
|
+
'config',
|
|
101
|
+
'id',
|
|
102
|
+
'name',
|
|
103
|
+
'color',
|
|
104
|
+
'data',
|
|
105
|
+
'animation',
|
|
106
|
+
'animationThreshold',
|
|
107
|
+
'animationDuration',
|
|
108
|
+
'animationEasing',
|
|
109
|
+
'animationDelay',
|
|
110
|
+
'animationDurationUpdate',
|
|
111
|
+
'animationEasingUpdate',
|
|
112
|
+
'animationDelayUpdate',
|
|
113
|
+
'tooltip',
|
|
114
|
+
],
|
|
115
|
+
providers: [
|
|
116
|
+
{
|
|
117
|
+
provide: TdSeriesDirective,
|
|
118
|
+
useExisting: forwardRef(() => TdChartSeriesHistogramComponent),
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
}]
|
|
122
|
+
}], ctorParameters: function () { return [{ type: i1.TdChartOptionsService }]; }, propDecorators: { source: [{
|
|
123
|
+
type: Input
|
|
124
|
+
}], method: [{
|
|
125
|
+
type: Input
|
|
126
|
+
}] } });
|
|
127
|
+
|
|
128
|
+
const HISTOGRAM_MODULE_COMPONENTS = [
|
|
129
|
+
TdChartSeriesHistogramComponent,
|
|
130
|
+
];
|
|
131
|
+
class CovalentHistogramEchartsModule {
|
|
132
|
+
}
|
|
133
|
+
CovalentHistogramEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentHistogramEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
134
|
+
CovalentHistogramEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: CovalentHistogramEchartsModule, declarations: [TdChartSeriesHistogramComponent], imports: [CommonModule], exports: [TdChartSeriesHistogramComponent] });
|
|
135
|
+
CovalentHistogramEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentHistogramEchartsModule, imports: [CommonModule] });
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentHistogramEchartsModule, decorators: [{
|
|
137
|
+
type: NgModule,
|
|
138
|
+
args: [{
|
|
139
|
+
imports: [CommonModule],
|
|
140
|
+
declarations: [HISTOGRAM_MODULE_COMPONENTS],
|
|
141
|
+
exports: [HISTOGRAM_MODULE_COMPONENTS],
|
|
142
|
+
}]
|
|
143
|
+
}] });
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Generated bundle index. Do not edit.
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
export { CovalentHistogramEchartsModule, HISTOGRAM_MODULE_COMPONENTS, TdChartSeriesHistogramComponent };
|
|
150
|
+
//# sourceMappingURL=covalent-echarts-histogram.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-histogram.mjs","sources":["../../../../libs/angular-echarts/histogram/src/histogram.component.ts","../../../../libs/angular-echarts/histogram/src/histogram.module.ts","../../../../libs/angular-echarts/histogram/src/covalent-echarts-histogram.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n OnChanges,\n} from '@angular/core';\n\nimport {\n assignDefined,\n TdChartOptionsService,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\nimport { ITdBarSeries, TdChartSeriesBarComponent } from '@covalent/echarts/bar';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdHistogramBinningMethod =\n | 'squareRoot'\n | 'scott'\n | 'freedmanDiaconis'\n | 'sturges';\n\nexport interface ITdHistogramSeries extends ITdBarSeries {\n data?: number[] | number[][];\n method?: TdHistogramBinningMethod;\n}\n\n@Component({\n selector: 'td-chart-series[td-histogram]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesHistogramComponent),\n },\n ],\n})\nexport class TdChartSeriesHistogramComponent\n extends TdChartSeriesBarComponent\n implements ITdHistogramSeries, OnChanges\n{\n @Input() source?: number[] | number[][];\n @Input() method?: TdHistogramBinningMethod;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n let output: any = [];\n if (!this.source) {\n const dataset: any = this.optionsService.getOption('dataset');\n this.source = dataset?.source ?? [];\n }\n\n if (this.source?.some((item) => Array.isArray(item))) {\n const config = this.getConfig();\n const index = config.datasetIndex ?? 1;\n const source: any[] = this.source;\n const indexedOutput = source[0].map((_: any, colIndex: string | number) =>\n source.map((row) => row[colIndex])\n );\n output = indexedOutput[index - 1] ?? [];\n } else {\n output = this.source;\n }\n\n const bins = ecStat.histogram(output, this.method ?? 'squareRoot');\n this.data = bins.data;\n this.setOptions();\n }\n\n override getConfig(): any {\n return {\n method: this.method,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n legendHoverLink: this.legendHoverLink,\n stack: this.stack,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n barWidth: this.barWidth,\n barMaxWidth: this.barMaxWidth,\n barMinHeight: this.barMinHeight,\n barGap: this.barGap,\n barCategoryGap: this.barCategoryGap,\n large: this.large,\n largeThreshold: this.largeThreshold,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n progressiveChunkMode: this.progressiveChunkMode,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n };\n }\n\n private setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n id: this.id,\n type: this.type,\n name: this.name,\n color: this.color,\n data: this.data,\n animation: this.animation,\n animationThreshold: this.animationThreshold,\n animationDuration: this.animationDuration,\n animationEasing: this.animationEasing,\n animationDelay: this.animationDelay,\n animationDurationUpdate: this.animationDurationUpdate,\n animationEasingUpdate: this.animationEasingUpdate,\n animationDelayUpdate: this.animationDelayUpdate,\n tooltip: this.tooltip,\n },\n this.getConfig(),\n this._options,\n this.config ? this.config : {}\n );\n this.optionsService.setArrayOption('series', config);\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesHistogramComponent } from './histogram.component';\n\nexport const HISTOGRAM_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesHistogramComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [HISTOGRAM_MODULE_COMPONENTS],\n exports: [HISTOGRAM_MODULE_COMPONENTS],\n})\nexport class CovalentHistogramEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAuDM,MAAO,+BACX,SAAQ,yBAAyB,CAAA;AAMjC,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC,CAAC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EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA9B,8BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,EARzC,YAAA,EAAA,CAAA,+BAA+B,CAIrB,EAAA,OAAA,EAAA,CAAA,YAAY,aAJtB,+BAA+B,CAAA,EAAA,CAAA,CAAA;AAQpB,8BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,8BAA8B,YAJ/B,YAAY,CAAA,EAAA,CAAA,CAAA;2FAIX,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAL1C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,2BAA2B,CAAC;oBAC3C,OAAO,EAAE,CAAC,2BAA2B,CAAC;AACvC,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { forwardRef, Component, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i1 from '@covalent/echarts/base';
|
|
5
|
+
import { assignDefined, TdSeriesDirective } from '@covalent/echarts/base';
|
|
6
|
+
import { TdChartSeriesScatterComponent } from '@covalent/echarts/scatter';
|
|
7
|
+
import * as ecStat from 'echarts-stat';
|
|
8
|
+
|
|
9
|
+
class TdChartSeriesRegressionComponent extends TdChartSeriesScatterComponent {
|
|
10
|
+
constructor(_optionsService) {
|
|
11
|
+
super(_optionsService);
|
|
12
|
+
}
|
|
13
|
+
ngOnChanges() {
|
|
14
|
+
this.render();
|
|
15
|
+
}
|
|
16
|
+
getConfig() {
|
|
17
|
+
return {
|
|
18
|
+
regressionType: this.regressionType,
|
|
19
|
+
polinomialOrder: this.polinomialOrder,
|
|
20
|
+
coordinateSystem: this.coordinateSystem,
|
|
21
|
+
xAxisIndex: this.xAxisIndex,
|
|
22
|
+
yAxisIndex: this.yAxisIndex,
|
|
23
|
+
polarIndex: this.polarIndex,
|
|
24
|
+
geoIndex: this.geoIndex,
|
|
25
|
+
calendarIndex: this.calendarIndex,
|
|
26
|
+
hoverAnimation: this.hoverAnimation,
|
|
27
|
+
legendHoverLink: this.legendHoverLink,
|
|
28
|
+
symbol: this.symbol,
|
|
29
|
+
symbolSize: this.symbolSize,
|
|
30
|
+
symbolRotate: this.symbolRotate,
|
|
31
|
+
symbolKeepAspect: this.symbolKeepAspect,
|
|
32
|
+
symbolOffset: this.symbolOffset,
|
|
33
|
+
large: this.large,
|
|
34
|
+
largeThreshold: this.largeThreshold,
|
|
35
|
+
cursor: this.cursor,
|
|
36
|
+
label: this.label,
|
|
37
|
+
itemStyle: this.itemStyle,
|
|
38
|
+
emphasis: this.emphasis,
|
|
39
|
+
progressive: this.progressive,
|
|
40
|
+
progressiveThreshold: this.progressiveThreshold,
|
|
41
|
+
dimensions: this.dimensions,
|
|
42
|
+
encode: this.encode,
|
|
43
|
+
seriesLayoutBy: this.seriesLayoutBy,
|
|
44
|
+
datasetIndex: this.datasetIndex,
|
|
45
|
+
markPoint: this.markPoint,
|
|
46
|
+
markLine: this.markLine,
|
|
47
|
+
markArea: this.markArea,
|
|
48
|
+
zlevel: this.zlevel,
|
|
49
|
+
z: this.z,
|
|
50
|
+
silent: this.silent,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
setOptions() {
|
|
54
|
+
const config = assignDefined(this._state, {
|
|
55
|
+
id: this.id,
|
|
56
|
+
type: this.type,
|
|
57
|
+
name: this.name,
|
|
58
|
+
color: this.color,
|
|
59
|
+
data: this.data,
|
|
60
|
+
animation: this.animation,
|
|
61
|
+
animationThreshold: this.animationThreshold,
|
|
62
|
+
animationDuration: this.animationDuration,
|
|
63
|
+
animationEasing: this.animationEasing,
|
|
64
|
+
animationDelay: this.animationDelay,
|
|
65
|
+
animationDurationUpdate: this.animationDurationUpdate,
|
|
66
|
+
animationEasingUpdate: this.animationEasingUpdate,
|
|
67
|
+
animationDelayUpdate: this.animationDelayUpdate,
|
|
68
|
+
tooltip: this.tooltip,
|
|
69
|
+
}, this.getConfig(), this._options, this.config ? this.config : {});
|
|
70
|
+
this.optionsService.setArrayOption('scatter', config);
|
|
71
|
+
}
|
|
72
|
+
render() {
|
|
73
|
+
const output = this.data;
|
|
74
|
+
const result = ecStat.regression(this.regressionType ?? 'linear', output, this.polinomialOrder ?? 2);
|
|
75
|
+
let series = this.optionsService.getOption('series');
|
|
76
|
+
if (series) {
|
|
77
|
+
for (const item in series) {
|
|
78
|
+
if (series[item].type === 'line') {
|
|
79
|
+
delete series[item];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
series = [];
|
|
85
|
+
}
|
|
86
|
+
series.push({
|
|
87
|
+
type: 'line',
|
|
88
|
+
data: result.points,
|
|
89
|
+
tooltip: {},
|
|
90
|
+
showSymbol: false,
|
|
91
|
+
});
|
|
92
|
+
this.optionsService.setOption('series', series);
|
|
93
|
+
this.setOptions();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
TdChartSeriesRegressionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartSeriesRegressionComponent, deps: [{ token: i1.TdChartOptionsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
97
|
+
TdChartSeriesRegressionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TdChartSeriesRegressionComponent, selector: "td-chart-series[td-regression]", inputs: { config: "config", id: "id", name: "name", color: "color", data: "data", animation: "animation", animationThreshold: "animationThreshold", animationDuration: "animationDuration", animationEasing: "animationEasing", animationDelay: "animationDelay", animationDurationUpdate: "animationDurationUpdate", animationEasingUpdate: "animationEasingUpdate", animationDelayUpdate: "animationDelayUpdate", tooltip: "tooltip", regressionType: "regressionType", polinomialOrder: "polinomialOrder" }, providers: [
|
|
98
|
+
{
|
|
99
|
+
provide: TdSeriesDirective,
|
|
100
|
+
useExisting: forwardRef(() => TdChartSeriesRegressionComponent),
|
|
101
|
+
},
|
|
102
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TdChartSeriesRegressionComponent, decorators: [{
|
|
104
|
+
type: Component,
|
|
105
|
+
args: [{
|
|
106
|
+
selector: 'td-chart-series[td-regression]',
|
|
107
|
+
template: '',
|
|
108
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
109
|
+
inputs: [
|
|
110
|
+
'config',
|
|
111
|
+
'id',
|
|
112
|
+
'name',
|
|
113
|
+
'color',
|
|
114
|
+
'data',
|
|
115
|
+
'animation',
|
|
116
|
+
'animationThreshold',
|
|
117
|
+
'animationDuration',
|
|
118
|
+
'animationEasing',
|
|
119
|
+
'animationDelay',
|
|
120
|
+
'animationDurationUpdate',
|
|
121
|
+
'animationEasingUpdate',
|
|
122
|
+
'animationDelayUpdate',
|
|
123
|
+
'tooltip',
|
|
124
|
+
],
|
|
125
|
+
providers: [
|
|
126
|
+
{
|
|
127
|
+
provide: TdSeriesDirective,
|
|
128
|
+
useExisting: forwardRef(() => TdChartSeriesRegressionComponent),
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
}]
|
|
132
|
+
}], ctorParameters: function () { return [{ type: i1.TdChartOptionsService }]; }, propDecorators: { data: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], regressionType: [{
|
|
135
|
+
type: Input
|
|
136
|
+
}], polinomialOrder: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}] } });
|
|
139
|
+
|
|
140
|
+
const REGRESSION_MODULE_COMPONENTS = [
|
|
141
|
+
TdChartSeriesRegressionComponent,
|
|
142
|
+
];
|
|
143
|
+
class CovalentRegressionEchartsModule {
|
|
144
|
+
}
|
|
145
|
+
CovalentRegressionEchartsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentRegressionEchartsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
146
|
+
CovalentRegressionEchartsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: CovalentRegressionEchartsModule, declarations: [TdChartSeriesRegressionComponent], imports: [CommonModule], exports: [TdChartSeriesRegressionComponent] });
|
|
147
|
+
CovalentRegressionEchartsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentRegressionEchartsModule, imports: [CommonModule] });
|
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CovalentRegressionEchartsModule, decorators: [{
|
|
149
|
+
type: NgModule,
|
|
150
|
+
args: [{
|
|
151
|
+
imports: [CommonModule],
|
|
152
|
+
declarations: [REGRESSION_MODULE_COMPONENTS],
|
|
153
|
+
exports: [REGRESSION_MODULE_COMPONENTS],
|
|
154
|
+
}]
|
|
155
|
+
}] });
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Generated bundle index. Do not edit.
|
|
159
|
+
*/
|
|
160
|
+
|
|
161
|
+
export { CovalentRegressionEchartsModule, REGRESSION_MODULE_COMPONENTS, TdChartSeriesRegressionComponent };
|
|
162
|
+
//# sourceMappingURL=covalent-echarts-regression.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"covalent-echarts-regression.mjs","sources":["../../../../libs/angular-echarts/regression/src/regression.component.ts","../../../../libs/angular-echarts/regression/src/regression.module.ts","../../../../libs/angular-echarts/regression/src/covalent-echarts-regression.ts"],"sourcesContent":["import {\n Component,\n Input,\n ChangeDetectionStrategy,\n forwardRef,\n OnChanges,\n} from '@angular/core';\n\nimport {\n assignDefined,\n TdChartOptionsService,\n TdSeriesDirective,\n} from '@covalent/echarts/base';\nimport {\n ITdScatterSeries,\n TdChartSeriesScatterComponent,\n} from '@covalent/echarts/scatter';\nimport * as ecStat from 'echarts-stat';\n\nexport type TdRegressionType =\n | 'linear'\n | 'exponential'\n | 'logarithmic'\n | 'polynomial';\n\nexport interface ITdRegressionSeries extends ITdScatterSeries {\n data?: number[][];\n regressionType?: TdRegressionType;\n polinomialOrder?: number;\n}\n\n@Component({\n selector: 'td-chart-series[td-regression]',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n inputs: [\n 'config',\n 'id',\n 'name',\n 'color',\n 'data',\n\n 'animation',\n 'animationThreshold',\n 'animationDuration',\n 'animationEasing',\n 'animationDelay',\n 'animationDurationUpdate',\n 'animationEasingUpdate',\n 'animationDelayUpdate',\n 'tooltip',\n ],\n providers: [\n {\n provide: TdSeriesDirective,\n useExisting: forwardRef(() => TdChartSeriesRegressionComponent),\n },\n ],\n})\nexport class TdChartSeriesRegressionComponent\n extends TdChartSeriesScatterComponent\n implements ITdRegressionSeries, OnChanges\n{\n @Input() override data?: number[][];\n @Input() regressionType?: TdRegressionType;\n @Input() polinomialOrder?: number;\n\n constructor(_optionsService: TdChartOptionsService) {\n super(_optionsService);\n }\n\n override ngOnChanges(): void {\n this.render();\n }\n\n override getConfig(): any {\n return {\n regressionType: this.regressionType,\n polinomialOrder: this.polinomialOrder,\n coordinateSystem: this.coordinateSystem,\n xAxisIndex: this.xAxisIndex,\n yAxisIndex: this.yAxisIndex,\n polarIndex: this.polarIndex,\n geoIndex: this.geoIndex,\n calendarIndex: this.calendarIndex,\n hoverAnimation: this.hoverAnimation,\n legendHoverLink: this.legendHoverLink,\n symbol: this.symbol,\n symbolSize: this.symbolSize,\n symbolRotate: this.symbolRotate,\n symbolKeepAspect: this.symbolKeepAspect,\n symbolOffset: this.symbolOffset,\n large: this.large,\n largeThreshold: this.largeThreshold,\n cursor: this.cursor,\n label: this.label,\n itemStyle: this.itemStyle,\n emphasis: this.emphasis,\n progressive: this.progressive,\n progressiveThreshold: this.progressiveThreshold,\n dimensions: this.dimensions,\n encode: this.encode,\n seriesLayoutBy: this.seriesLayoutBy,\n datasetIndex: this.datasetIndex,\n markPoint: this.markPoint,\n markLine: this.markLine,\n markArea: this.markArea,\n zlevel: this.zlevel,\n z: this.z,\n silent: this.silent,\n };\n }\n\n private setOptions(): void {\n const config: any = assignDefined(\n this._state,\n {\n id: this.id,\n type: this.type,\n name: this.name,\n color: this.color,\n data: this.data,\n animation: this.animation,\n animationThreshold: this.animationThreshold,\n animationDuration: this.animationDuration,\n animationEasing: this.animationEasing,\n animationDelay: this.animationDelay,\n animationDurationUpdate: this.animationDurationUpdate,\n animationEasingUpdate: this.animationEasingUpdate,\n animationDelayUpdate: this.animationDelayUpdate,\n tooltip: this.tooltip,\n },\n this.getConfig(),\n this._options,\n this.config ? this.config : {}\n );\n this.optionsService.setArrayOption('scatter', config);\n }\n\n private render() {\n const output: any = this.data;\n const result = ecStat.regression(\n this.regressionType ?? 'linear',\n output,\n this.polinomialOrder ?? 2\n );\n let series = this.optionsService.getOption('series');\n\n if (series) {\n for (const item in series) {\n if (series[item].type === 'line') {\n delete series[item];\n }\n }\n } else {\n series = [];\n }\n\n series.push({\n type: 'line',\n data: result.points,\n tooltip: {},\n showSymbol: false,\n });\n\n this.optionsService.setOption('series', series);\n this.setOptions();\n }\n}\n","import { NgModule, Type } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TdChartSeriesRegressionComponent } from './regression.component';\n\nexport const REGRESSION_MODULE_COMPONENTS: Type<any>[] = [\n TdChartSeriesRegressionComponent,\n];\n\n@NgModule({\n imports: [CommonModule],\n declarations: [REGRESSION_MODULE_COMPONENTS],\n exports: [REGRESSION_MODULE_COMPONENTS],\n})\nexport class CovalentRegressionEchartsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AA2DM,MAAO,gCACX,SAAQ,6BAA6B,CAAA;AAOrC,IAAA,WAAA,CAAY,eAAsC,EAAA;QAChD,KAAK,CAAC,eAAe,CAAC,CAAC;KACxB;IAEQ,WAAW,GAAA;QAClB,IAAI,CAAC,MAAM,EAAE,CAAC;KACf;IAEQ,SAAS,GAAA;QAChB,OAAO;YACL,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,WAAW,EAAE,IAAI,CAAC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