@covalent/echarts 4.0.0-beta.2 → 4.1.0-develop.10
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/README.md +4 -90
- package/bar/README.md +23 -21
- package/bar/bar.component.d.ts +27 -27
- package/bar/covalent-echarts-bar.d.ts +1 -1
- package/bar/{public-api.d.ts → public_api.d.ts} +0 -0
- package/base/README.md +26 -26
- package/base/axis/axis.component.d.ts +29 -29
- package/base/chart.component.d.ts +3 -3
- package/base/covalent-echarts-base.d.ts +1 -1
- package/base/dataset/dataset.component.d.ts +5 -5
- package/base/{public-api.d.ts → public_api.d.ts} +0 -0
- package/base/series/series.component.d.ts +15 -15
- package/base/{axis → src/axis}/README.md +19 -19
- package/base/{dataset → src/dataset}/README.md +19 -16
- package/covalent-echarts.d.ts +1 -1
- package/esm2020/bar/bar.component.mjs +95 -96
- package/esm2020/bar/bar.module.mjs +12 -13
- package/esm2020/bar/covalent-echarts-bar.mjs +2 -2
- package/esm2020/bar/public_api.mjs +3 -0
- package/esm2020/base/axis/axis.component.mjs +66 -66
- package/esm2020/base/axis/axis.interface.mjs +1 -1
- package/esm2020/base/axis/x-axis.component.mjs +45 -45
- package/esm2020/base/axis/y-axis.component.mjs +45 -45
- package/esm2020/base/base.module.mjs +13 -14
- package/esm2020/base/base.types.mjs +1 -1
- package/esm2020/base/chart-options.service.mjs +6 -6
- package/esm2020/base/chart.component.mjs +42 -38
- package/esm2020/base/covalent-echarts-base.mjs +2 -2
- package/esm2020/base/dataset/dataset.component.mjs +22 -22
- package/esm2020/base/public_api.mjs +10 -0
- package/esm2020/base/series/series.component.mjs +34 -34
- package/esm2020/base/series/series.interface.mjs +1 -1
- package/esm2020/base/themes/aqua-splash.mjs +31 -4
- package/esm2020/base/themes/california-coast.mjs +1 -1
- package/esm2020/base/themes/hawaiian-sunrise.mjs +1 -1
- package/esm2020/base/themes/passion-flower.mjs +1 -1
- package/esm2020/base/themes/razzleberry-pie.mjs +31 -4
- package/esm2020/base/themes/teradata-classic.mjs +31 -4
- package/esm2020/base/themes/teradata-default.mjs +1 -1
- package/esm2020/base/themes/urban-sunrise.mjs +1 -1
- package/esm2020/base/themes/volcanic-eruption.mjs +1 -1
- package/esm2020/base/utils/assign-defined.mjs +1 -1
- package/esm2020/base/utils/echarts.mjs +1 -1
- package/esm2020/base/utils/index.mjs +1 -1
- package/esm2020/covalent-echarts.mjs +2 -2
- package/esm2020/graph/covalent-echarts-graph.mjs +2 -2
- package/esm2020/graph/graph.component.mjs +129 -130
- package/esm2020/graph/graph.module.mjs +15 -14
- package/esm2020/graph/public_api.mjs +3 -0
- package/esm2020/line/covalent-echarts-line.mjs +2 -2
- package/esm2020/line/line.component.mjs +111 -112
- package/esm2020/line/line.module.mjs +12 -13
- package/esm2020/line/public_api.mjs +3 -0
- package/esm2020/map/covalent-echarts-map.mjs +2 -2
- package/esm2020/map/map.component.mjs +93 -94
- package/esm2020/map/map.module.mjs +12 -13
- package/esm2020/map/public_api.mjs +3 -0
- package/esm2020/pie/covalent-echarts-pie.mjs +2 -2
- package/esm2020/pie/pie.component.mjs +91 -92
- package/esm2020/pie/pie.module.mjs +12 -13
- package/esm2020/pie/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/sankey/covalent-echarts-sankey.mjs +2 -2
- package/esm2020/sankey/public_api.mjs +3 -0
- package/esm2020/sankey/sankey.component.mjs +83 -84
- package/esm2020/sankey/sankey.module.mjs +15 -14
- package/esm2020/scatter/covalent-echarts-scatter.mjs +2 -2
- package/esm2020/scatter/public_api.mjs +3 -0
- package/esm2020/scatter/scatter.component.mjs +101 -102
- package/esm2020/scatter/scatter.module.mjs +15 -14
- package/esm2020/toolbox/covalent-echarts-toolbox.mjs +2 -2
- package/esm2020/toolbox/public_api.mjs +3 -0
- package/esm2020/toolbox/toolbox.component.mjs +60 -76
- package/esm2020/toolbox/toolbox.module.mjs +19 -15
- package/esm2020/tooltip/covalent-echarts-tooltip.mjs +2 -2
- package/esm2020/tooltip/public_api.mjs +4 -0
- package/esm2020/tooltip/series-tooltip.component.mjs +40 -49
- package/esm2020/tooltip/tooltip.component.mjs +71 -80
- package/esm2020/tooltip/tooltip.module.mjs +14 -15
- package/esm2020/tree/covalent-echarts-tree.mjs +2 -2
- package/esm2020/tree/public_api.mjs +3 -0
- package/esm2020/tree/tree.component.mjs +83 -84
- package/esm2020/tree/tree.module.mjs +12 -13
- package/esm2020/treemap/covalent-echarts-treemap.mjs +2 -2
- package/esm2020/treemap/public_api.mjs +3 -0
- package/esm2020/treemap/treemap.component.mjs +107 -108
- package/esm2020/treemap/treemap.module.mjs +15 -14
- package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +2 -2
- package/esm2020/wordcloud/public_api.mjs +3 -0
- package/esm2020/wordcloud/wordcloud.component.mjs +68 -69
- package/esm2020/wordcloud/wordcloud.module.mjs +15 -14
- package/fesm2015/covalent-echarts-bar.mjs +16 -22
- package/fesm2015/covalent-echarts-bar.mjs.map +1 -1
- package/fesm2015/covalent-echarts-base.mjs +148 -81
- package/fesm2015/covalent-echarts-base.mjs.map +1 -1
- package/fesm2015/covalent-echarts-graph.mjs +19 -23
- package/fesm2015/covalent-echarts-graph.mjs.map +1 -1
- package/fesm2015/covalent-echarts-line.mjs +16 -22
- package/fesm2015/covalent-echarts-line.mjs.map +1 -1
- package/fesm2015/covalent-echarts-map.mjs +16 -22
- package/fesm2015/covalent-echarts-map.mjs.map +1 -1
- package/fesm2015/covalent-echarts-pie.mjs +16 -22
- package/fesm2015/covalent-echarts-pie.mjs.map +1 -1
- package/fesm2015/covalent-echarts-sankey.mjs +19 -23
- package/fesm2015/covalent-echarts-sankey.mjs.map +1 -1
- package/fesm2015/covalent-echarts-scatter.mjs +19 -23
- package/fesm2015/covalent-echarts-scatter.mjs.map +1 -1
- package/fesm2015/covalent-echarts-toolbox.mjs +23 -49
- package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -1
- package/fesm2015/covalent-echarts-tooltip.mjs +43 -90
- package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -1
- package/fesm2015/covalent-echarts-tree.mjs +16 -22
- package/fesm2015/covalent-echarts-tree.mjs.map +1 -1
- package/fesm2015/covalent-echarts-treemap.mjs +19 -23
- package/fesm2015/covalent-echarts-treemap.mjs.map +1 -1
- package/fesm2015/covalent-echarts-wordcloud.mjs +19 -23
- package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -1
- package/fesm2015/covalent-echarts.mjs.map +1 -1
- package/fesm2020/covalent-echarts-bar.mjs +104 -106
- package/fesm2020/covalent-echarts-bar.mjs.map +1 -1
- package/fesm2020/covalent-echarts-base.mjs +353 -269
- package/fesm2020/covalent-echarts-base.mjs.map +1 -1
- package/fesm2020/covalent-echarts-graph.mjs +141 -141
- package/fesm2020/covalent-echarts-graph.mjs.map +1 -1
- package/fesm2020/covalent-echarts-line.mjs +120 -122
- package/fesm2020/covalent-echarts-line.mjs.map +1 -1
- package/fesm2020/covalent-echarts-map.mjs +102 -104
- package/fesm2020/covalent-echarts-map.mjs.map +1 -1
- package/fesm2020/covalent-echarts-pie.mjs +100 -102
- package/fesm2020/covalent-echarts-pie.mjs.map +1 -1
- package/fesm2020/covalent-echarts-sankey.mjs +95 -95
- package/fesm2020/covalent-echarts-sankey.mjs.map +1 -1
- package/fesm2020/covalent-echarts-scatter.mjs +113 -113
- package/fesm2020/covalent-echarts-scatter.mjs.map +1 -1
- package/fesm2020/covalent-echarts-toolbox.mjs +76 -88
- package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -1
- package/fesm2020/covalent-echarts-tooltip.mjs +120 -139
- package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -1
- package/fesm2020/covalent-echarts-tree.mjs +92 -94
- package/fesm2020/covalent-echarts-tree.mjs.map +1 -1
- package/fesm2020/covalent-echarts-treemap.mjs +119 -119
- package/fesm2020/covalent-echarts-treemap.mjs.map +1 -1
- package/fesm2020/covalent-echarts-wordcloud.mjs +79 -79
- package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -1
- package/fesm2020/covalent-echarts.mjs.map +1 -1
- package/graph/README.md +21 -19
- package/graph/covalent-echarts-graph.d.ts +1 -1
- package/graph/graph.component.d.ts +60 -60
- package/graph/{public-api.d.ts → public_api.d.ts} +0 -0
- package/line/README.md +19 -21
- package/line/covalent-echarts-line.d.ts +1 -1
- package/line/line.component.d.ts +35 -35
- package/line/{public-api.d.ts → public_api.d.ts} +0 -0
- package/map/README.md +19 -17
- package/map/covalent-echarts-map.d.ts +1 -1
- package/map/map.component.d.ts +27 -27
- package/map/{public-api.d.ts → public_api.d.ts} +0 -0
- package/package.json +11 -22
- package/pie/README.md +17 -15
- package/pie/covalent-echarts-pie.d.ts +1 -1
- package/pie/pie.component.d.ts +26 -26
- package/pie/{public-api.d.ts → public_api.d.ts} +0 -0
- package/{index.d.ts → public_api.d.ts} +0 -0
- package/sankey/README.md +22 -20
- package/sankey/covalent-echarts-sankey.d.ts +1 -1
- package/sankey/{public-api.d.ts → public_api.d.ts} +0 -0
- package/sankey/sankey.component.d.ts +22 -22
- package/scatter/README.md +19 -21
- package/scatter/covalent-echarts-scatter.d.ts +1 -1
- package/scatter/{public-api.d.ts → public_api.d.ts} +0 -0
- package/scatter/scatter.component.d.ts +31 -31
- package/toolbox/README.md +12 -11
- package/toolbox/covalent-echarts-toolbox.d.ts +1 -1
- package/toolbox/{public-api.d.ts → public_api.d.ts} +0 -0
- package/toolbox/toolbox.component.d.ts +10 -10
- package/tooltip/README.md +30 -26
- package/tooltip/covalent-echarts-tooltip.d.ts +1 -1
- package/tooltip/{public-api.d.ts → public_api.d.ts} +0 -0
- package/tooltip/series-tooltip.component.d.ts +11 -9
- package/tooltip/tooltip.component.d.ts +16 -16
- package/tree/README.md +20 -18
- package/tree/covalent-echarts-tree.d.ts +1 -1
- package/tree/{public-api.d.ts → public_api.d.ts} +0 -0
- package/tree/tree.component.d.ts +24 -24
- package/treemap/README.md +23 -21
- package/treemap/covalent-echarts-treemap.d.ts +1 -1
- package/treemap/{public-api.d.ts → public_api.d.ts} +0 -0
- package/treemap/treemap.component.d.ts +37 -37
- package/wordcloud/README.md +25 -23
- package/wordcloud/covalent-echarts-wordcloud.d.ts +1 -1
- package/wordcloud/{public-api.d.ts → public_api.d.ts} +0 -0
- package/wordcloud/wordcloud.component.d.ts +14 -14
- package/bar/index.d.ts +0 -1
- package/base/chart.component.scss +0 -4
- package/base/index.d.ts +0 -1
- package/esm2020/bar/index.mjs +0 -2
- package/esm2020/bar/public-api.mjs +0 -3
- package/esm2020/base/index.mjs +0 -2
- package/esm2020/base/public-api.mjs +0 -10
- package/esm2020/graph/index.mjs +0 -2
- package/esm2020/graph/public-api.mjs +0 -3
- package/esm2020/index.mjs +0 -2
- package/esm2020/line/index.mjs +0 -2
- package/esm2020/line/public-api.mjs +0 -3
- package/esm2020/map/index.mjs +0 -2
- package/esm2020/map/public-api.mjs +0 -3
- package/esm2020/pie/index.mjs +0 -2
- package/esm2020/pie/public-api.mjs +0 -3
- package/esm2020/sankey/index.mjs +0 -2
- package/esm2020/sankey/public-api.mjs +0 -3
- package/esm2020/scatter/index.mjs +0 -2
- package/esm2020/scatter/public-api.mjs +0 -3
- package/esm2020/toolbox/index.mjs +0 -2
- package/esm2020/toolbox/public-api.mjs +0 -3
- package/esm2020/tooltip/index.mjs +0 -2
- package/esm2020/tooltip/public-api.mjs +0 -4
- package/esm2020/tree/index.mjs +0 -2
- package/esm2020/tree/public-api.mjs +0 -3
- package/esm2020/treemap/index.mjs +0 -2
- package/esm2020/treemap/public-api.mjs +0 -3
- package/esm2020/wordcloud/index.mjs +0 -2
- package/esm2020/wordcloud/public-api.mjs +0 -3
- package/graph/index.d.ts +0 -1
- package/line/index.d.ts +0 -1
- package/map/index.d.ts +0 -1
- package/pie/index.d.ts +0 -1
- package/sankey/index.d.ts +0 -1
- package/scatter/index.d.ts +0 -1
- package/toolbox/index.d.ts +0 -1
- package/tooltip/index.d.ts +0 -1
- package/tree/index.d.ts +0 -1
- package/treemap/index.d.ts +0 -1
- package/wordcloud/index.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,93 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# angular-echarts
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Running unit tests
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Covalent Echarts is an Angular library built by Teradata with the goal of exposing the powerful Echarts APIs in Angular best practices and standards. Covalent Echarts also includes ease of use features such as auto resizing, event outputs, etc.
|
|
10
|
-
|
|
11
|
-
The Covalent UI Platform is not required to use Covalent Echarts.
|
|
12
|
-
|
|
13
|
-
### Why Canvas?
|
|
14
|
-
|
|
15
|
-
Teradata customers work in massive datasets, the largest on the planet. SVG charts such as D3.js are great for flexibility and customization, but aren't nearly as effective for realtime data and big data. Covalent Echarts removes the complexity in customizing canvas charts building on the incredibly powerful and flexible Echarts APIs, which have provided just about every customization you can imagine.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
## Installing Covalent Echarts
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npm install --save echarts
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
npm install --save @covalent/echarts
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
To test (only for testing!) the latest changes from develop, install the nightly build:
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
npm install --save https://github.com/Teradata/covalent-echarts-nightly.git
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Setup
|
|
35
|
-
|
|
36
|
-
Import the [CovalentBaseEchartsModule] in your NgModule:
|
|
37
|
-
|
|
38
|
-
```typescript
|
|
39
|
-
import { CovalentBaseEchartsModule } from '@covalent/echarts/base';
|
|
40
|
-
import { CovalentBarEchartsModule } from '@covalent/echarts/bar';
|
|
41
|
-
import { CovalentTooltipEchartsModule } from '@covalent/echarts/tooltip';
|
|
42
|
-
@NgModule({
|
|
43
|
-
imports: [
|
|
44
|
-
CovalentBaseEchartsModule,
|
|
45
|
-
CovalentBarEchartsModule,
|
|
46
|
-
CovalentTooltipEchartsModule,
|
|
47
|
-
...
|
|
48
|
-
],
|
|
49
|
-
...
|
|
50
|
-
})
|
|
51
|
-
export class MyModule {}
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## Usage
|
|
55
|
-
|
|
56
|
-
Basic Example:
|
|
57
|
-
|
|
58
|
-
```html
|
|
59
|
-
<td-chart [style.height.px]="300">
|
|
60
|
-
<td-chart-tooltip [trigger]="'item'"
|
|
61
|
-
[textStyle]="{ color: '#818181' }"
|
|
62
|
-
[backgroundColor]="'#ffffff'">
|
|
63
|
-
<ng-template let-params let-ticket="ticket" tdTooltipFormatter>
|
|
64
|
-
<ng-container *ngIf="params">
|
|
65
|
-
<div layout="row" layout-align="start center">
|
|
66
|
-
<mat-icon>
|
|
67
|
-
<span [style.color]="params.color">people</span>
|
|
68
|
-
</mat-icon>
|
|
69
|
-
<span class="mat-caption pad-left-sm">
|
|
70
|
-
{{params.seriesName + ': ' + params.value}}
|
|
71
|
-
</span>
|
|
72
|
-
</div>
|
|
73
|
-
</ng-container>
|
|
74
|
-
</ng-template>
|
|
75
|
-
</td-chart-tooltip>
|
|
76
|
-
<td-chart-x-axis [show]="true"
|
|
77
|
-
[position]="'bottom'"
|
|
78
|
-
[type]="'category'"
|
|
79
|
-
[data]="['Electronics', 'Toys', 'Grocery', 'Appliances', 'Automotive', 'Sports']"
|
|
80
|
-
[boundaryGap]="true">
|
|
81
|
-
</td-chart-x-axis>
|
|
82
|
-
<td-chart-y-axis [show]="true"
|
|
83
|
-
[type]="'value'"
|
|
84
|
-
[position]="'right'"
|
|
85
|
-
[max]="200">
|
|
86
|
-
</td-chart-y-axis>
|
|
87
|
-
<td-chart-series td-bar
|
|
88
|
-
[data]="[150, 130, 150, 120, 150, 120]"
|
|
89
|
-
[name]="'Today'"
|
|
90
|
-
[color]="'#F2724B'">
|
|
91
|
-
</td-chart-series>
|
|
92
|
-
</td-chart>
|
|
93
|
-
```
|
|
7
|
+
Run `nx test angular-echarts` to execute the unit tests.
|
package/bar/README.md
CHANGED
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
#### Inputs
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
- config?: any
|
|
10
|
+
- Sets the JS config object if you choose to not use the property inputs.
|
|
11
|
+
- Note: [config] input properties will override input values
|
|
12
12
|
|
|
13
13
|
There are also lots of property inputs like:
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
- id?: string
|
|
16
|
+
- It can be used to refer the component in option or API.
|
|
17
|
+
- name?: string
|
|
18
|
+
- Series name used for displaying in tooltip and filtering with legend.
|
|
19
|
+
- color?: any
|
|
20
|
+
- Global color for the series.
|
|
21
|
+
- data?: any[]
|
|
22
|
+
- Data array of series.
|
|
23
23
|
|
|
24
24
|
And so many more.. for more info [click here](https://echarts.apache.org/en/option.html#series-bar)
|
|
25
25
|
|
|
@@ -47,17 +47,19 @@ Basic Example:
|
|
|
47
47
|
|
|
48
48
|
```html
|
|
49
49
|
<td-chart>
|
|
50
|
-
<td-chart-x-axis
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
<td-chart-x-axis
|
|
51
|
+
[show]="true"
|
|
52
|
+
[type]="'category'"
|
|
53
|
+
[data]="['Electronics', 'Toys', 'Grocery', 'Appliances', 'Automotive', 'Sports']"
|
|
54
|
+
>
|
|
53
55
|
</td-chart-x-axis>
|
|
54
|
-
<td-chart-y-axis [show]="true"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
<td-chart-y-axis [show]="true" [type]="'value'"> </td-chart-y-axis>
|
|
57
|
+
<td-chart-series
|
|
58
|
+
td-bar
|
|
59
|
+
[name]="'name'"
|
|
60
|
+
[data]="[150, 130, 150, 120, 150, 120]"
|
|
61
|
+
[color]="'#F2724B'"
|
|
62
|
+
>
|
|
61
63
|
</td-chart-series>
|
|
62
64
|
</td-chart>
|
|
63
65
|
```
|
package/bar/bar.component.d.ts
CHANGED
|
@@ -33,34 +33,34 @@ export interface ITdBarSeries extends ITdSeries {
|
|
|
33
33
|
silent?: boolean;
|
|
34
34
|
}
|
|
35
35
|
export declare class TdChartSeriesBarComponent extends TdSeriesDirective implements ITdBarSeries {
|
|
36
|
-
coordinateSystem
|
|
37
|
-
xAxisIndex
|
|
38
|
-
yAxisIndex
|
|
39
|
-
legendHoverLink
|
|
40
|
-
stack
|
|
41
|
-
cursor
|
|
42
|
-
label
|
|
43
|
-
itemStyle
|
|
44
|
-
emphasis
|
|
45
|
-
barWidth
|
|
46
|
-
barMaxWidth
|
|
47
|
-
barMinHeight
|
|
48
|
-
barGap
|
|
49
|
-
barCategoryGap
|
|
50
|
-
large
|
|
51
|
-
largeThreshold
|
|
52
|
-
progressive
|
|
53
|
-
progressiveThreshold
|
|
54
|
-
progressiveChunkMode
|
|
55
|
-
dimensions
|
|
36
|
+
coordinateSystem?: TdCoordinateSystem;
|
|
37
|
+
xAxisIndex?: number;
|
|
38
|
+
yAxisIndex?: number;
|
|
39
|
+
legendHoverLink?: boolean;
|
|
40
|
+
stack?: string;
|
|
41
|
+
cursor?: string;
|
|
42
|
+
label?: any;
|
|
43
|
+
itemStyle?: ITdItemStyle;
|
|
44
|
+
emphasis?: ITdEmphasis;
|
|
45
|
+
barWidth?: number;
|
|
46
|
+
barMaxWidth?: number;
|
|
47
|
+
barMinHeight?: number;
|
|
48
|
+
barGap?: string;
|
|
49
|
+
barCategoryGap?: string;
|
|
50
|
+
large?: boolean;
|
|
51
|
+
largeThreshold?: number;
|
|
52
|
+
progressive?: number;
|
|
53
|
+
progressiveThreshold?: number;
|
|
54
|
+
progressiveChunkMode?: TdProgressiveChunkMode;
|
|
55
|
+
dimensions?: any[];
|
|
56
56
|
encode: any;
|
|
57
|
-
seriesLayoutBy
|
|
58
|
-
datasetIndex
|
|
59
|
-
markPoint
|
|
60
|
-
markLine
|
|
61
|
-
markArea
|
|
62
|
-
zlevel
|
|
63
|
-
z
|
|
57
|
+
seriesLayoutBy?: TdSeriesLayoutBy;
|
|
58
|
+
datasetIndex?: number;
|
|
59
|
+
markPoint?: ITdMarkPoint;
|
|
60
|
+
markLine?: ITdMarkLine;
|
|
61
|
+
markArea?: ITdMarkArea;
|
|
62
|
+
zlevel?: number;
|
|
63
|
+
z?: number;
|
|
64
64
|
constructor(_optionsService: TdChartOptionsService);
|
|
65
65
|
getConfig(): any;
|
|
66
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartSeriesBarComponent, never>;
|
|
File without changes
|
package/base/README.md
CHANGED
|
@@ -6,27 +6,25 @@
|
|
|
6
6
|
|
|
7
7
|
#### Inputs
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
- config?: any
|
|
10
|
+
- Sets the JS config object if you choose to not use the property inputs.
|
|
11
|
+
- Note: [config] input properties will override input values
|
|
12
|
+
- themeName?: string
|
|
13
|
+
- theme to be applied into chart instance
|
|
14
|
+
- renderer?: 'svg' | 'canvas'
|
|
15
|
+
- sets the rendering mode for the chart.
|
|
16
|
+
- defaults to 'canvas'
|
|
17
|
+
- group?: string
|
|
18
|
+
- group name in which the chart instance will be connected to
|
|
20
19
|
|
|
21
20
|
#### Outputs
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
- chartClick
|
|
23
|
+
- event thrown when a chart element has been clicked.
|
|
24
|
+
- chartDblclick
|
|
25
|
+
- event thrown when a chart element has been double clicked.
|
|
26
|
+
- chartContextmenu
|
|
27
|
+
- event thrown when a chart element has been right-clicked.
|
|
30
28
|
|
|
31
29
|
## Setup
|
|
32
30
|
|
|
@@ -47,13 +45,15 @@ export class MyModule {}
|
|
|
47
45
|
## Usage
|
|
48
46
|
|
|
49
47
|
```html
|
|
50
|
-
<td-chart
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
<td-chart
|
|
49
|
+
[style.height.px]="300"
|
|
50
|
+
[config]="{...}"
|
|
51
|
+
[themeName]="'light'"
|
|
52
|
+
[renderer]="'canvas'"
|
|
53
|
+
[group]="'group1'"
|
|
54
|
+
(chartClick)="doSomething()"
|
|
55
|
+
(chartDblclick)="doSomething()"
|
|
56
|
+
(chartContextmenu)="doSomething()"
|
|
57
|
+
>
|
|
58
58
|
</td-chart>
|
|
59
59
|
```
|
|
@@ -7,36 +7,36 @@ export declare abstract class TdChartAxisDirective implements OnChanges, OnInit,
|
|
|
7
7
|
private _optionsService;
|
|
8
8
|
private _state;
|
|
9
9
|
config: any;
|
|
10
|
-
id
|
|
11
|
-
show
|
|
12
|
-
gridIndex
|
|
13
|
-
offset
|
|
10
|
+
id?: string;
|
|
11
|
+
show?: boolean;
|
|
12
|
+
gridIndex?: number;
|
|
13
|
+
offset?: number;
|
|
14
14
|
abstract position: TdXAxisPosition | TdYAxisPosition;
|
|
15
|
-
type
|
|
16
|
-
name
|
|
17
|
-
nameLocation
|
|
18
|
-
nameTextStyle
|
|
19
|
-
nameGap
|
|
20
|
-
nameRotate
|
|
21
|
-
inverse
|
|
22
|
-
boundaryGap
|
|
23
|
-
min
|
|
24
|
-
max
|
|
25
|
-
scale
|
|
26
|
-
minInterval
|
|
27
|
-
interval
|
|
28
|
-
logBase
|
|
29
|
-
silent
|
|
30
|
-
triggerEvent
|
|
31
|
-
axisLine
|
|
32
|
-
axisTick
|
|
33
|
-
axisLabel
|
|
34
|
-
splitLine
|
|
35
|
-
splitArea
|
|
36
|
-
data
|
|
37
|
-
axisPointer
|
|
38
|
-
zlevel
|
|
39
|
-
z
|
|
15
|
+
type?: TdAxisType;
|
|
16
|
+
name?: string;
|
|
17
|
+
nameLocation?: TdNameLocation;
|
|
18
|
+
nameTextStyle?: any;
|
|
19
|
+
nameGap?: number;
|
|
20
|
+
nameRotate?: number;
|
|
21
|
+
inverse?: boolean;
|
|
22
|
+
boundaryGap?: boolean | string[];
|
|
23
|
+
min?: string | number;
|
|
24
|
+
max?: string | number;
|
|
25
|
+
scale?: boolean;
|
|
26
|
+
minInterval?: number;
|
|
27
|
+
interval?: number;
|
|
28
|
+
logBase?: number;
|
|
29
|
+
silent?: boolean;
|
|
30
|
+
triggerEvent?: boolean;
|
|
31
|
+
axisLine?: ITdAxisLine;
|
|
32
|
+
axisTick?: ITdAxisTick;
|
|
33
|
+
axisLabel?: ITdAxisLabel;
|
|
34
|
+
splitLine?: ITdSplitLine;
|
|
35
|
+
splitArea?: ITdSplitArea;
|
|
36
|
+
data?: any;
|
|
37
|
+
axisPointer?: ITdAxisPointer;
|
|
38
|
+
zlevel?: number;
|
|
39
|
+
z?: number;
|
|
40
40
|
constructor(_axisOption: string, _optionsService: TdChartOptionsService);
|
|
41
41
|
ngOnInit(): void;
|
|
42
42
|
ngOnChanges(): void;
|
|
@@ -21,19 +21,19 @@ export declare class TdChartComponent implements AfterViewInit, OnChanges, OnDes
|
|
|
21
21
|
* Note: [config] input properties will override input values
|
|
22
22
|
* https://ecomfe.github.io/echarts-doc/public/en/option.html
|
|
23
23
|
*/
|
|
24
|
-
config
|
|
24
|
+
config?: any;
|
|
25
25
|
/**
|
|
26
26
|
* group?: string
|
|
27
27
|
* group name in which the chart instance will be connected to
|
|
28
28
|
* https://ecomfe.github.io/echarts-doc/public/en/api.html#echarts.connect
|
|
29
29
|
*/
|
|
30
|
-
group
|
|
30
|
+
group?: string;
|
|
31
31
|
/**
|
|
32
32
|
* themeName?: string
|
|
33
33
|
* theme to be applied into chart instance
|
|
34
34
|
* https://ecomfe.github.io/echarts-doc/public/en/tutorial.html#Overview%20of%20Style%20Customization
|
|
35
35
|
*/
|
|
36
|
-
themeName
|
|
36
|
+
themeName?: string | null;
|
|
37
37
|
/**
|
|
38
38
|
* renderer: 'svg' | 'canvas'
|
|
39
39
|
* sets the rendering mode for the chart.
|
|
@@ -4,11 +4,11 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class TdDatasetComponent implements OnChanges, OnDestroy {
|
|
5
5
|
private _optionsService;
|
|
6
6
|
private _state;
|
|
7
|
-
id
|
|
8
|
-
config
|
|
9
|
-
source
|
|
10
|
-
dimensions
|
|
11
|
-
sourceHeader
|
|
7
|
+
id?: string;
|
|
8
|
+
config?: any;
|
|
9
|
+
source?: object | any[];
|
|
10
|
+
dimensions?: any[];
|
|
11
|
+
sourceHeader?: boolean;
|
|
12
12
|
constructor(_optionsService: TdChartOptionsService);
|
|
13
13
|
ngOnChanges(): void;
|
|
14
14
|
ngOnDestroy(): void;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnChanges, OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { TdChartOptionsService } from '../chart-options.service';
|
|
3
|
-
import { ITdSeriesTooltip } from '
|
|
3
|
+
import { ITdSeriesTooltip } from './series.interface';
|
|
4
4
|
import { ITdAnimation } from '../base.types';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export interface ITdSeries extends ITdAnimation {
|
|
@@ -16,20 +16,20 @@ export declare abstract class TdSeriesDirective implements ITdSeries, OnChanges,
|
|
|
16
16
|
get type(): string;
|
|
17
17
|
_state: any;
|
|
18
18
|
_options: any;
|
|
19
|
-
config
|
|
20
|
-
id
|
|
21
|
-
name
|
|
22
|
-
color
|
|
23
|
-
data
|
|
24
|
-
animation
|
|
25
|
-
animationThreshold
|
|
26
|
-
animationDuration
|
|
27
|
-
animationEasing
|
|
28
|
-
animationDelay
|
|
29
|
-
animationDurationUpdate
|
|
30
|
-
animationEasingUpdate
|
|
31
|
-
animationDelayUpdate
|
|
32
|
-
tooltip
|
|
19
|
+
config?: any;
|
|
20
|
+
id?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
color?: string;
|
|
23
|
+
data?: any[];
|
|
24
|
+
animation?: boolean;
|
|
25
|
+
animationThreshold?: number;
|
|
26
|
+
animationDuration?: number | Function;
|
|
27
|
+
animationEasing?: string;
|
|
28
|
+
animationDelay?: number | Function;
|
|
29
|
+
animationDurationUpdate?: number | Function;
|
|
30
|
+
animationEasingUpdate?: string;
|
|
31
|
+
animationDelayUpdate?: number | Function;
|
|
32
|
+
tooltip?: ITdSeriesTooltip;
|
|
33
33
|
constructor(type: string, optionsService: TdChartOptionsService);
|
|
34
34
|
ngOnInit(): void;
|
|
35
35
|
ngOnChanges(): void;
|
|
@@ -6,22 +6,22 @@
|
|
|
6
6
|
|
|
7
7
|
#### Inputs
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
- config?: any
|
|
10
|
+
- Sets the JS config object if you choose to not use the property inputs.
|
|
11
|
+
- Note: [config] input properties will override input values
|
|
12
12
|
|
|
13
13
|
There are also lots of property inputs like:
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
- id?: string
|
|
16
|
+
- It can be used to refer the component in option or API.
|
|
17
|
+
- name?: string
|
|
18
|
+
- Location of axis name.
|
|
19
|
+
- type?: 'value' | 'category' | 'time' | 'log'
|
|
20
|
+
- Type of axis
|
|
21
|
+
- min?: number
|
|
22
|
+
- The minimun value of axis.
|
|
23
|
+
- max?: number
|
|
24
|
+
- The maximum value of axis.
|
|
25
25
|
|
|
26
26
|
And so many more.. for more info on xAxis [click here](https://echarts.apache.org/en/option.html#xAxis) and yAxis [click here](https://echarts.apache.org/en/option.html#yAxis)
|
|
27
27
|
|
|
@@ -47,12 +47,12 @@ Basic Tooltip Example:
|
|
|
47
47
|
|
|
48
48
|
```html
|
|
49
49
|
<td-chart>
|
|
50
|
-
<td-chart-x-axis
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
<td-chart-x-axis
|
|
51
|
+
[show]="true"
|
|
52
|
+
[type]="'category'"
|
|
53
|
+
[data]="['Electronics', 'Toys', 'Grocery', 'Appliances', 'Automotive', 'Sports']"
|
|
54
|
+
>
|
|
53
55
|
</td-chart-x-axis>
|
|
54
|
-
<td-chart-y-axis [show]="true"
|
|
55
|
-
[type]="'value'">
|
|
56
|
-
</td-chart-y-axis>
|
|
56
|
+
<td-chart-y-axis [show]="true" [type]="'value'"> </td-chart-y-axis>
|
|
57
57
|
</td-chart>
|
|
58
58
|
```
|
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
#### Inputs
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
- config?: any
|
|
10
|
+
- Sets the JS config object if you choose to not use the property inputs.
|
|
11
|
+
- Note: [config] input properties will override input values
|
|
12
12
|
|
|
13
13
|
There are also has several property inputs:s
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
- id?: string
|
|
16
|
+
- It can be used to refer the component in option or API.
|
|
17
|
+
- source?: object | any[]
|
|
18
|
+
- Source data. Chart data described in a tabular or 2d array format. series.data will override dataset.source.
|
|
19
|
+
- dimensions?: any[]
|
|
20
|
+
- dimensions can be used to define dimension info for series.data or dataset.source.
|
|
21
|
+
- sourceHeader?: boolean
|
|
22
|
+
- Whether the first row/column of dataset.source represents dimension names.
|
|
23
23
|
|
|
24
24
|
For more info [click here](https://echarts.apache.org/en/option.html#dataset)
|
|
25
25
|
|
|
@@ -47,16 +47,18 @@ Basic Example:
|
|
|
47
47
|
<td-chart [style.height.px]="300">
|
|
48
48
|
<td-chart-x-axis></td-chart-x-axis>
|
|
49
49
|
<td-chart-y-axis [type]="'category'"> </td-chart-y-axis>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
<td-chart-series td-bar></td-chart-series>
|
|
51
|
+
<td-chart-series td-bar></td-chart-series>
|
|
52
|
+
<td-chart-series td-bar></td-chart-series>
|
|
53
53
|
<td-chart-dataset
|
|
54
54
|
[source]="[['product', '2015', '2016', '2017'],
|
|
55
55
|
['Matcha Latte', 43.3, 85.8, 93.7], ['Milk Tea', 83.1, 73.4, 55.1],
|
|
56
|
-
['Cheese Cocoa', 86.4, 65.2, 82.5], ['Walnut Brownie', 72.4, 53.9, 39.1]]"
|
|
56
|
+
['Cheese Cocoa', 86.4, 65.2, 82.5], ['Walnut Brownie', 72.4, 53.9, 39.1]]"
|
|
57
|
+
>
|
|
57
58
|
</td-chart-dataset>
|
|
58
59
|
</td-chart>
|
|
59
60
|
```
|
|
61
|
+
|
|
60
62
|
Dimensions Input property Example:
|
|
61
63
|
|
|
62
64
|
```html
|
|
@@ -71,7 +73,8 @@ Dimensions Input property Example:
|
|
|
71
73
|
[source]="[{product: 'Matcha Latte', '2015': 43.3, '2016': 85.8, '2017': 93.7},
|
|
72
74
|
{product: 'Milk Tea', '2015': 83.1, '2016': 73.4, '2017': 55.1},
|
|
73
75
|
{product: 'Cheese Cocoa', '2015': 86.4, '2016': 65.2, '2017': 82.5},
|
|
74
|
-
{product: 'Walnut Brownie', '2015': 72.4, '2016': 53.9, '2017': 39.1}]"
|
|
76
|
+
{product: 'Walnut Brownie', '2015': 72.4, '2016': 53.9, '2017': 39.1}]"
|
|
77
|
+
>
|
|
75
78
|
</td-chart-dataset>
|
|
76
79
|
</td-chart>
|
|
77
80
|
```
|
package/covalent-echarts.d.ts
CHANGED