@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,65 @@
|
|
|
1
|
+
# td-chart-series[td-histogram]
|
|
2
|
+
|
|
3
|
+
`td-chart-series[td-histogram]` element generates a graph series echarts visualization inside a `td-chart`. Its the equivalent of creating a JS series object `type="bar"` in echarts, but binning the data.
|
|
4
|
+
|
|
5
|
+
## API Summary
|
|
6
|
+
|
|
7
|
+
#### Inputs
|
|
8
|
+
|
|
9
|
+
- id?: string
|
|
10
|
+
- It can be used to refer the component in option or API.
|
|
11
|
+
- name?: string
|
|
12
|
+
- Series name used for displaying in tooltip and filtering with legend.
|
|
13
|
+
- color?: any
|
|
14
|
+
- Global color for the series.
|
|
15
|
+
- method?: 'squareRoot' | 'scott' | 'freedmanDiaconis' | 'sturges'
|
|
16
|
+
- Methods to calculate the number of bins (default value 'squareRoot').
|
|
17
|
+
- source?: any[] | any[][]
|
|
18
|
+
- Data array of series (can be multi-dimensional).
|
|
19
|
+
|
|
20
|
+
And so many more... for more info [click here](https://github.com/ecomfe/echarts-stat)
|
|
21
|
+
|
|
22
|
+
## Setup
|
|
23
|
+
|
|
24
|
+
Import the [CovalentHistogramEchartsModule] in your NgModule:
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import { CovalentBaseEchartsModule } from '@covalent/echarts/base';
|
|
28
|
+
import { CovalentHistogramEchartsModule } from '@covalent/echarts/histogram';
|
|
29
|
+
@NgModule({
|
|
30
|
+
imports: [
|
|
31
|
+
CovalentBaseEchartsModule,
|
|
32
|
+
CovalentHistogramEchartsModule,
|
|
33
|
+
...
|
|
34
|
+
],
|
|
35
|
+
...
|
|
36
|
+
})
|
|
37
|
+
export class MyModule {}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
Basic Example:
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<td-chart [style.height.px]="500">
|
|
46
|
+
<td-chart-x-axis
|
|
47
|
+
[show]="true"
|
|
48
|
+
[position]="'bottom'"
|
|
49
|
+
[type]="'category'"
|
|
50
|
+
[boundaryGap]="true"
|
|
51
|
+
></td-chart-x-axis>
|
|
52
|
+
<td-chart-y-axis
|
|
53
|
+
[show]="true"
|
|
54
|
+
[type]="'value'"
|
|
55
|
+
[position]="'right'"
|
|
56
|
+
[splitLine]="{ lineStyle: { type: 'dotted' } }"
|
|
57
|
+
></td-chart-y-axis>
|
|
58
|
+
<td-chart-series
|
|
59
|
+
td-histogram
|
|
60
|
+
[method]="'squareRoot'"
|
|
61
|
+
[source]="[8.5, 8.7, 9.2, 9.9, 10.2, 10.3, 11.2, 11.3, 11.3, 11.5, 11.6, 11.7, 11.8, 12, 12, 12.5, 12.9, 13, 13.5, 14, 15.1, 15.2, 15.3, 15.8, 16.2, 16.3, 16.4, 19.5, 19.8, 20.1, 20.2]"
|
|
62
|
+
>
|
|
63
|
+
</td-chart-series>
|
|
64
|
+
</td-chart>
|
|
65
|
+
```
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { TdChartOptionsService } from '@covalent/echarts/base';
|
|
3
|
+
import { ITdBarSeries, TdChartSeriesBarComponent } from '@covalent/echarts/bar';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type TdHistogramBinningMethod = 'squareRoot' | 'scott' | 'freedmanDiaconis' | 'sturges';
|
|
6
|
+
export interface ITdHistogramSeries extends ITdBarSeries {
|
|
7
|
+
data?: number[] | number[][];
|
|
8
|
+
method?: TdHistogramBinningMethod;
|
|
9
|
+
}
|
|
10
|
+
export declare class TdChartSeriesHistogramComponent extends TdChartSeriesBarComponent implements ITdHistogramSeries, OnChanges {
|
|
11
|
+
source?: number[] | number[][];
|
|
12
|
+
method?: TdHistogramBinningMethod;
|
|
13
|
+
constructor(_optionsService: TdChartOptionsService);
|
|
14
|
+
ngOnChanges(): void;
|
|
15
|
+
getConfig(): any;
|
|
16
|
+
private setOptions;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartSeriesHistogramComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdChartSeriesHistogramComponent, "td-chart-series[td-histogram]", never, { "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"; }, {}, never, never, false, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./histogram.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export declare const HISTOGRAM_MODULE_COMPONENTS: Type<any>[];
|
|
6
|
+
export declare class CovalentHistogramEchartsModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentHistogramEchartsModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentHistogramEchartsModule, [typeof i1.TdChartSeriesHistogramComponent], [typeof i2.CommonModule], [typeof i1.TdChartSeriesHistogramComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentHistogramEchartsModule>;
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@covalent/echarts",
|
|
3
|
-
"version": "6.1
|
|
3
|
+
"version": "6.2.1",
|
|
4
4
|
"description": "Teradata UI Platform Echarts Module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"@angular/common": "^15.2.5",
|
|
23
23
|
"@angular/core": "^15.2.5",
|
|
24
24
|
"echarts": "^5.3.0",
|
|
25
|
+
"echarts-stat": "^5.3.0-STAT",
|
|
25
26
|
"echarts-wordcloud": "^2.0.0",
|
|
26
27
|
"rxjs": "7.8.0"
|
|
27
28
|
},
|
|
@@ -62,6 +63,14 @@
|
|
|
62
63
|
"node": "./fesm2015/covalent-echarts-base.mjs",
|
|
63
64
|
"default": "./fesm2020/covalent-echarts-base.mjs"
|
|
64
65
|
},
|
|
66
|
+
"./clustering": {
|
|
67
|
+
"types": "./clustering/index.d.ts",
|
|
68
|
+
"esm2020": "./esm2020/clustering/covalent-echarts-clustering.mjs",
|
|
69
|
+
"es2020": "./fesm2020/covalent-echarts-clustering.mjs",
|
|
70
|
+
"es2015": "./fesm2015/covalent-echarts-clustering.mjs",
|
|
71
|
+
"node": "./fesm2015/covalent-echarts-clustering.mjs",
|
|
72
|
+
"default": "./fesm2020/covalent-echarts-clustering.mjs"
|
|
73
|
+
},
|
|
65
74
|
"./graph": {
|
|
66
75
|
"types": "./graph/index.d.ts",
|
|
67
76
|
"esm2020": "./esm2020/graph/covalent-echarts-graph.mjs",
|
|
@@ -70,6 +79,14 @@
|
|
|
70
79
|
"node": "./fesm2015/covalent-echarts-graph.mjs",
|
|
71
80
|
"default": "./fesm2020/covalent-echarts-graph.mjs"
|
|
72
81
|
},
|
|
82
|
+
"./histogram": {
|
|
83
|
+
"types": "./histogram/index.d.ts",
|
|
84
|
+
"esm2020": "./esm2020/histogram/covalent-echarts-histogram.mjs",
|
|
85
|
+
"es2020": "./fesm2020/covalent-echarts-histogram.mjs",
|
|
86
|
+
"es2015": "./fesm2015/covalent-echarts-histogram.mjs",
|
|
87
|
+
"node": "./fesm2015/covalent-echarts-histogram.mjs",
|
|
88
|
+
"default": "./fesm2020/covalent-echarts-histogram.mjs"
|
|
89
|
+
},
|
|
73
90
|
"./line": {
|
|
74
91
|
"types": "./line/index.d.ts",
|
|
75
92
|
"esm2020": "./esm2020/line/covalent-echarts-line.mjs",
|
|
@@ -94,6 +111,14 @@
|
|
|
94
111
|
"node": "./fesm2015/covalent-echarts-pie.mjs",
|
|
95
112
|
"default": "./fesm2020/covalent-echarts-pie.mjs"
|
|
96
113
|
},
|
|
114
|
+
"./regression": {
|
|
115
|
+
"types": "./regression/index.d.ts",
|
|
116
|
+
"esm2020": "./esm2020/regression/covalent-echarts-regression.mjs",
|
|
117
|
+
"es2020": "./fesm2020/covalent-echarts-regression.mjs",
|
|
118
|
+
"es2015": "./fesm2015/covalent-echarts-regression.mjs",
|
|
119
|
+
"node": "./fesm2015/covalent-echarts-regression.mjs",
|
|
120
|
+
"default": "./fesm2020/covalent-echarts-regression.mjs"
|
|
121
|
+
},
|
|
97
122
|
"./sankey": {
|
|
98
123
|
"types": "./sankey/index.d.ts",
|
|
99
124
|
"esm2020": "./esm2020/sankey/covalent-echarts-sankey.mjs",
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# td-chart-series[td-regression]
|
|
2
|
+
|
|
3
|
+
`td-chart-series[td-regression]` element generates a regression series echarts visualization inside a `td-chart`.
|
|
4
|
+
|
|
5
|
+
## API Summary
|
|
6
|
+
|
|
7
|
+
#### Inputs
|
|
8
|
+
|
|
9
|
+
- id?: string
|
|
10
|
+
- It can be used to refer the component in option or API.
|
|
11
|
+
- name?: string
|
|
12
|
+
- Series name used for displaying in tooltip and filtering with legend.
|
|
13
|
+
- color?: any
|
|
14
|
+
- Global color for the series.
|
|
15
|
+
- regressionType?: 'linear' | 'exponential' | 'logarithmic' | 'polynomial'
|
|
16
|
+
- There are four types of regression (default value 'linear').
|
|
17
|
+
- polinomialOrder?: number
|
|
18
|
+
- The order of polynomial regression type. Ignored for other types (default value 2).
|
|
19
|
+
- data?: any[]
|
|
20
|
+
- Data array of series.
|
|
21
|
+
|
|
22
|
+
And so many more... for more info [click here](https://github.com/ecomfe/echarts-stat)
|
|
23
|
+
|
|
24
|
+
## Setup
|
|
25
|
+
|
|
26
|
+
Import the [CovalentRegressionEchartsModule] in your NgModule:
|
|
27
|
+
|
|
28
|
+
```typescript
|
|
29
|
+
import { CovalentBaseEchartsModule } from '@covalent/echarts/base';
|
|
30
|
+
import { CovalentRegressionEchartsModule } from '@covalent/echarts/regression';
|
|
31
|
+
@NgModule({
|
|
32
|
+
imports: [
|
|
33
|
+
CovalentBaseEchartsModule,
|
|
34
|
+
CovalentRegressionEchartsModule,
|
|
35
|
+
...
|
|
36
|
+
],
|
|
37
|
+
...
|
|
38
|
+
})
|
|
39
|
+
export class MyModule {}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Usage
|
|
43
|
+
|
|
44
|
+
Basic Example:
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<td-chart>
|
|
48
|
+
<td-chart-x-axis [show]="true" [type]="'value'"> </td-chart-x-axis>
|
|
49
|
+
<td-chart-y-axis [show]="true" [type]="'value'"> </td-chart-y-axis>
|
|
50
|
+
<td-chart-series
|
|
51
|
+
td-regression
|
|
52
|
+
[regressionType]="'logarithmic'"
|
|
53
|
+
[data]="[
|
|
54
|
+
[0.067732, 3.176513],
|
|
55
|
+
[0.42781, 3.816464],
|
|
56
|
+
[0.995731, 4.550095],
|
|
57
|
+
[0.738336, 4.256571],
|
|
58
|
+
[0.981083, 4.560815],
|
|
59
|
+
[0.526171, 3.929515],
|
|
60
|
+
[0.378887, 3.52617],
|
|
61
|
+
[0.033859, 3.156393],
|
|
62
|
+
[0.132791, 3.110301],
|
|
63
|
+
[0.138306, 3.149813],
|
|
64
|
+
[0.247809, 3.476346],
|
|
65
|
+
[0.731209, 4.282233],
|
|
66
|
+
[0.236833, 3.486582],
|
|
67
|
+
[0.969788, 4.655492],
|
|
68
|
+
[0.607492, 3.965162],
|
|
69
|
+
[0.358622, 3.5149]
|
|
70
|
+
]"
|
|
71
|
+
>
|
|
72
|
+
</td-chart-series>
|
|
73
|
+
</td-chart>
|
|
74
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { TdChartOptionsService } from '@covalent/echarts/base';
|
|
3
|
+
import { ITdScatterSeries, TdChartSeriesScatterComponent } from '@covalent/echarts/scatter';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type TdRegressionType = 'linear' | 'exponential' | 'logarithmic' | 'polynomial';
|
|
6
|
+
export interface ITdRegressionSeries extends ITdScatterSeries {
|
|
7
|
+
data?: number[][];
|
|
8
|
+
regressionType?: TdRegressionType;
|
|
9
|
+
polinomialOrder?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class TdChartSeriesRegressionComponent extends TdChartSeriesScatterComponent implements ITdRegressionSeries, OnChanges {
|
|
12
|
+
data?: number[][];
|
|
13
|
+
regressionType?: TdRegressionType;
|
|
14
|
+
polinomialOrder?: number;
|
|
15
|
+
constructor(_optionsService: TdChartOptionsService);
|
|
16
|
+
ngOnChanges(): void;
|
|
17
|
+
getConfig(): any;
|
|
18
|
+
private setOptions;
|
|
19
|
+
private render;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartSeriesRegressionComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdChartSeriesRegressionComponent, "td-chart-series[td-regression]", never, { "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"; }, {}, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./regression.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export declare const REGRESSION_MODULE_COMPONENTS: Type<any>[];
|
|
6
|
+
export declare class CovalentRegressionEchartsModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentRegressionEchartsModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentRegressionEchartsModule, [typeof i1.TdChartSeriesRegressionComponent], [typeof i2.CommonModule], [typeof i1.TdChartSeriesRegressionComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentRegressionEchartsModule>;
|
|
10
|
+
}
|