@covalent/echarts 0.0.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/README.md +7 -0
- package/bar/README.md +65 -0
- package/bar/bar.component.d.ts +68 -0
- package/bar/bar.module.d.ts +10 -0
- package/bar/covalent-echarts-bar.d.ts +5 -0
- package/bar/package.json +10 -0
- package/bar/public_api.d.ts +2 -0
- package/base/README.md +59 -0
- package/base/axis/axis.component.d.ts +48 -0
- package/base/axis/axis.interface.d.ts +157 -0
- package/base/axis/x-axis.component.d.ts +10 -0
- package/base/axis/y-axis.component.d.ts +10 -0
- package/base/base.module.d.ts +13 -0
- package/base/base.types.d.ts +141 -0
- package/base/chart-options.service.d.ts +17 -0
- package/base/chart.component.d.ts +60 -0
- package/base/covalent-echarts-base.d.ts +5 -0
- package/base/dataset/dataset.component.d.ts +19 -0
- package/base/package.json +10 -0
- package/base/public_api.d.ts +12 -0
- package/base/series/series.component.d.ts +44 -0
- package/base/series/series.interface.d.ts +84 -0
- package/base/src/axis/README.md +58 -0
- package/base/src/dataset/README.md +80 -0
- package/base/themes/aqua-splash.d.ts +459 -0
- package/base/themes/california-coast.d.ts +459 -0
- package/base/themes/hawaiian-sunrise.d.ts +459 -0
- package/base/themes/passion-flower.d.ts +459 -0
- package/base/themes/razzleberry-pie.d.ts +459 -0
- package/base/themes/teradata-classic.d.ts +459 -0
- package/base/themes/teradata-default.d.ts +459 -0
- package/base/themes/urban-sunrise.d.ts +459 -0
- package/base/themes/volcanic-eruption.d.ts +459 -0
- package/base/utils/assign-defined.d.ts +1 -0
- package/base/utils/echarts.d.ts +15 -0
- package/base/utils/index.d.ts +2 -0
- package/covalent-echarts.d.ts +5 -0
- package/esm2020/bar/bar.component.mjs +135 -0
- package/esm2020/bar/bar.module.mjs +19 -0
- package/esm2020/bar/covalent-echarts-bar.mjs +5 -0
- package/esm2020/bar/public_api.mjs +3 -0
- package/esm2020/base/axis/axis.component.mjs +127 -0
- package/esm2020/base/axis/axis.interface.mjs +2 -0
- package/esm2020/base/axis/x-axis.component.mjs +55 -0
- package/esm2020/base/axis/y-axis.component.mjs +55 -0
- package/esm2020/base/base.module.mjs +35 -0
- package/esm2020/base/base.types.mjs +2 -0
- package/esm2020/base/chart-options.service.mjs +65 -0
- package/esm2020/base/chart.component.mjs +195 -0
- package/esm2020/base/covalent-echarts-base.mjs +5 -0
- package/esm2020/base/dataset/dataset.component.mjs +52 -0
- package/esm2020/base/public_api.mjs +10 -0
- package/esm2020/base/series/series.component.mjs +91 -0
- package/esm2020/base/series/series.interface.mjs +2 -0
- package/esm2020/base/themes/aqua-splash.mjs +487 -0
- package/esm2020/base/themes/california-coast.mjs +460 -0
- package/esm2020/base/themes/hawaiian-sunrise.mjs +460 -0
- package/esm2020/base/themes/passion-flower.mjs +460 -0
- package/esm2020/base/themes/razzleberry-pie.mjs +487 -0
- package/esm2020/base/themes/teradata-classic.mjs +487 -0
- package/esm2020/base/themes/teradata-default.mjs +460 -0
- package/esm2020/base/themes/urban-sunrise.mjs +460 -0
- package/esm2020/base/themes/volcanic-eruption.mjs +460 -0
- package/esm2020/base/utils/assign-defined.mjs +25 -0
- package/esm2020/base/utils/echarts.mjs +49 -0
- package/esm2020/base/utils/index.mjs +3 -0
- package/esm2020/covalent-echarts.mjs +5 -0
- package/esm2020/graph/covalent-echarts-graph.mjs +5 -0
- package/esm2020/graph/graph.component.mjs +185 -0
- package/esm2020/graph/graph.module.mjs +21 -0
- package/esm2020/graph/public_api.mjs +3 -0
- package/esm2020/line/covalent-echarts-line.mjs +5 -0
- package/esm2020/line/line.component.mjs +159 -0
- package/esm2020/line/line.module.mjs +19 -0
- package/esm2020/line/public_api.mjs +3 -0
- package/esm2020/map/covalent-echarts-map.mjs +5 -0
- package/esm2020/map/map.component.mjs +132 -0
- package/esm2020/map/map.module.mjs +19 -0
- package/esm2020/map/public_api.mjs +3 -0
- package/esm2020/pie/covalent-echarts-pie.mjs +5 -0
- package/esm2020/pie/pie.component.mjs +127 -0
- package/esm2020/pie/pie.module.mjs +19 -0
- package/esm2020/pie/public_api.mjs +3 -0
- package/esm2020/public_api.mjs +2 -0
- package/esm2020/sankey/covalent-echarts-sankey.mjs +5 -0
- package/esm2020/sankey/public_api.mjs +3 -0
- package/esm2020/sankey/sankey.component.mjs +117 -0
- package/esm2020/sankey/sankey.module.mjs +21 -0
- package/esm2020/scatter/covalent-echarts-scatter.mjs +5 -0
- package/esm2020/scatter/public_api.mjs +3 -0
- package/esm2020/scatter/scatter.component.mjs +144 -0
- package/esm2020/scatter/scatter.module.mjs +21 -0
- package/esm2020/toolbox/covalent-echarts-toolbox.mjs +5 -0
- package/esm2020/toolbox/public_api.mjs +3 -0
- package/esm2020/toolbox/toolbox.component.mjs +135 -0
- package/esm2020/toolbox/toolbox.module.mjs +24 -0
- package/esm2020/tooltip/covalent-echarts-tooltip.mjs +5 -0
- package/esm2020/tooltip/public_api.mjs +4 -0
- package/esm2020/tooltip/series-tooltip.component.mjs +102 -0
- package/esm2020/tooltip/tooltip.component.mjs +156 -0
- package/esm2020/tooltip/tooltip.module.mjs +28 -0
- package/esm2020/tree/covalent-echarts-tree.mjs +5 -0
- package/esm2020/tree/public_api.mjs +3 -0
- package/esm2020/tree/tree.component.mjs +117 -0
- package/esm2020/tree/tree.module.mjs +19 -0
- package/esm2020/treemap/covalent-echarts-treemap.mjs +5 -0
- package/esm2020/treemap/public_api.mjs +3 -0
- package/esm2020/treemap/treemap.component.mjs +149 -0
- package/esm2020/treemap/treemap.module.mjs +21 -0
- package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +5 -0
- package/esm2020/wordcloud/public_api.mjs +3 -0
- package/esm2020/wordcloud/wordcloud.component.mjs +92 -0
- package/esm2020/wordcloud/wordcloud.module.mjs +21 -0
- package/fesm2015/covalent-echarts-bar.mjs +158 -0
- package/fesm2015/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2015/covalent-echarts-base.mjs +4931 -0
- package/fesm2015/covalent-echarts-base.mjs.map +1 -0
- package/fesm2015/covalent-echarts-graph.mjs +210 -0
- package/fesm2015/covalent-echarts-graph.mjs.map +1 -0
- package/fesm2015/covalent-echarts-line.mjs +182 -0
- package/fesm2015/covalent-echarts-line.mjs.map +1 -0
- package/fesm2015/covalent-echarts-map.mjs +155 -0
- package/fesm2015/covalent-echarts-map.mjs.map +1 -0
- package/fesm2015/covalent-echarts-pie.mjs +150 -0
- package/fesm2015/covalent-echarts-pie.mjs.map +1 -0
- package/fesm2015/covalent-echarts-sankey.mjs +142 -0
- package/fesm2015/covalent-echarts-sankey.mjs.map +1 -0
- package/fesm2015/covalent-echarts-scatter.mjs +169 -0
- package/fesm2015/covalent-echarts-scatter.mjs.map +1 -0
- package/fesm2015/covalent-echarts-toolbox.mjs +158 -0
- package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -0
- package/fesm2015/covalent-echarts-tooltip.mjs +283 -0
- package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2015/covalent-echarts-tree.mjs +140 -0
- package/fesm2015/covalent-echarts-tree.mjs.map +1 -0
- package/fesm2015/covalent-echarts-treemap.mjs +174 -0
- package/fesm2015/covalent-echarts-treemap.mjs.map +1 -0
- package/fesm2015/covalent-echarts-wordcloud.mjs +117 -0
- package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2015/covalent-echarts.mjs +4 -0
- package/fesm2015/covalent-echarts.mjs.map +1 -0
- package/fesm2020/covalent-echarts-bar.mjs +158 -0
- package/fesm2020/covalent-echarts-bar.mjs.map +1 -0
- package/fesm2020/covalent-echarts-base.mjs +4930 -0
- package/fesm2020/covalent-echarts-base.mjs.map +1 -0
- package/fesm2020/covalent-echarts-graph.mjs +210 -0
- package/fesm2020/covalent-echarts-graph.mjs.map +1 -0
- package/fesm2020/covalent-echarts-line.mjs +182 -0
- package/fesm2020/covalent-echarts-line.mjs.map +1 -0
- package/fesm2020/covalent-echarts-map.mjs +155 -0
- package/fesm2020/covalent-echarts-map.mjs.map +1 -0
- package/fesm2020/covalent-echarts-pie.mjs +150 -0
- package/fesm2020/covalent-echarts-pie.mjs.map +1 -0
- package/fesm2020/covalent-echarts-sankey.mjs +142 -0
- package/fesm2020/covalent-echarts-sankey.mjs.map +1 -0
- package/fesm2020/covalent-echarts-scatter.mjs +169 -0
- package/fesm2020/covalent-echarts-scatter.mjs.map +1 -0
- package/fesm2020/covalent-echarts-toolbox.mjs +163 -0
- package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -0
- package/fesm2020/covalent-echarts-tooltip.mjs +283 -0
- package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -0
- package/fesm2020/covalent-echarts-tree.mjs +140 -0
- package/fesm2020/covalent-echarts-tree.mjs.map +1 -0
- package/fesm2020/covalent-echarts-treemap.mjs +174 -0
- package/fesm2020/covalent-echarts-treemap.mjs.map +1 -0
- package/fesm2020/covalent-echarts-wordcloud.mjs +117 -0
- package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -0
- package/fesm2020/covalent-echarts.mjs +4 -0
- package/fesm2020/covalent-echarts.mjs.map +1 -0
- package/graph/README.md +90 -0
- package/graph/covalent-echarts-graph.d.ts +5 -0
- package/graph/graph.component.d.ts +129 -0
- package/graph/graph.module.d.ts +10 -0
- package/graph/package.json +10 -0
- package/graph/public_api.d.ts +2 -0
- package/line/README.md +78 -0
- package/line/covalent-echarts-line.d.ts +5 -0
- package/line/line.component.d.ts +86 -0
- package/line/line.module.d.ts +10 -0
- package/line/package.json +10 -0
- package/line/public_api.d.ts +2 -0
- package/map/README.md +119 -0
- package/map/covalent-echarts-map.d.ts +5 -0
- package/map/map.component.d.ts +75 -0
- package/map/map.module.d.ts +10 -0
- package/map/package.json +10 -0
- package/map/public_api.d.ts +2 -0
- package/package.json +146 -0
- package/pie/README.md +62 -0
- package/pie/covalent-echarts-pie.d.ts +5 -0
- package/pie/package.json +10 -0
- package/pie/pie.component.d.ts +64 -0
- package/pie/pie.module.d.ts +10 -0
- package/pie/public_api.d.ts +2 -0
- package/public_api.d.ts +1 -0
- package/sankey/README.md +91 -0
- package/sankey/covalent-echarts-sankey.d.ts +5 -0
- package/sankey/package.json +10 -0
- package/sankey/public_api.d.ts +2 -0
- package/sankey/sankey.component.d.ts +65 -0
- package/sankey/sankey.module.d.ts +10 -0
- package/scatter/README.md +66 -0
- package/scatter/covalent-echarts-scatter.d.ts +5 -0
- package/scatter/package.json +10 -0
- package/scatter/public_api.d.ts +2 -0
- package/scatter/scatter.component.d.ts +76 -0
- package/scatter/scatter.module.d.ts +10 -0
- package/toolbox/README.md +57 -0
- package/toolbox/covalent-echarts-toolbox.d.ts +5 -0
- package/toolbox/package.json +10 -0
- package/toolbox/public_api.d.ts +2 -0
- package/toolbox/toolbox.component.d.ts +142 -0
- package/toolbox/toolbox.module.d.ts +10 -0
- package/tooltip/README.md +116 -0
- package/tooltip/covalent-echarts-tooltip.d.ts +5 -0
- package/tooltip/package.json +10 -0
- package/tooltip/public_api.d.ts +3 -0
- package/tooltip/series-tooltip.component.d.ts +36 -0
- package/tooltip/tooltip.component.d.ts +49 -0
- package/tooltip/tooltip.module.d.ts +11 -0
- package/tree/README.md +60 -0
- package/tree/covalent-echarts-tree.d.ts +5 -0
- package/tree/package.json +10 -0
- package/tree/public_api.d.ts +2 -0
- package/tree/tree.component.d.ts +83 -0
- package/tree/tree.module.d.ts +10 -0
- package/treemap/README.md +185 -0
- package/treemap/covalent-echarts-treemap.d.ts +5 -0
- package/treemap/package.json +10 -0
- package/treemap/public_api.d.ts +2 -0
- package/treemap/treemap.component.d.ts +134 -0
- package/treemap/treemap.module.d.ts +10 -0
- package/wordcloud/README.md +89 -0
- package/wordcloud/covalent-echarts-wordcloud.d.ts +5 -0
- package/wordcloud/package.json +10 -0
- package/wordcloud/public_api.d.ts +2 -0
- package/wordcloud/wordcloud.component.d.ts +55 -0
- package/wordcloud/wordcloud.module.d.ts +10 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# td-chart-series[td-treemap]
|
|
2
|
+
|
|
3
|
+
`td-chart-series[td-treemap]` element generates a treemap series echarts visualization inside a `td-chart`. Its the equivalent of creating a JS series object `type="treemap"` in echarts.
|
|
4
|
+
|
|
5
|
+
## API Summary
|
|
6
|
+
|
|
7
|
+
#### Inputs
|
|
8
|
+
|
|
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
|
+
|
|
13
|
+
There are also lots of property inputs like:
|
|
14
|
+
|
|
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
|
+
- leafDepth?: number
|
|
20
|
+
- Represents how many levels are shown at most.
|
|
21
|
+
- roam?: boolean
|
|
22
|
+
- Whether to enable dragging roam (move and zoom).
|
|
23
|
+
|
|
24
|
+
And so many more.. for more info [click here](https://echarts.apache.org/en/option.html#series-treemap)
|
|
25
|
+
|
|
26
|
+
## Setup
|
|
27
|
+
|
|
28
|
+
Import the [CovalentTreemapEchartsModule] in your NgModule:
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { CovalentBaseEchartsModule } from '@covalent/echarts/base';
|
|
32
|
+
import { CovalentTreemapEchartsModule } from '@covalent/echarts/treemap';
|
|
33
|
+
@NgModule({
|
|
34
|
+
imports: [
|
|
35
|
+
CovalentBaseEchartsModule,
|
|
36
|
+
CovalentTreemapEchartsModule,
|
|
37
|
+
...
|
|
38
|
+
],
|
|
39
|
+
...
|
|
40
|
+
})
|
|
41
|
+
export class MyModule {}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
Basic Example:
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<td-chart>
|
|
50
|
+
<td-chart-series
|
|
51
|
+
td-treemap
|
|
52
|
+
[top]="'10%'"
|
|
53
|
+
[left]="'10%'"
|
|
54
|
+
[bottom]="'10%'"
|
|
55
|
+
[right]="'10%'"
|
|
56
|
+
[data]="[{
|
|
57
|
+
value: 40,
|
|
58
|
+
name: 'Accessibility',
|
|
59
|
+
path: 'Accessibility'
|
|
60
|
+
}, {
|
|
61
|
+
value: 180,
|
|
62
|
+
name: 'Accounts',
|
|
63
|
+
path: 'Accounts',
|
|
64
|
+
children: [{
|
|
65
|
+
value: 76,
|
|
66
|
+
name: 'Access',
|
|
67
|
+
path: 'Accounts/Access',
|
|
68
|
+
children: [{
|
|
69
|
+
value: 12,
|
|
70
|
+
name: 'DefaultAccessPlugin.bundle',
|
|
71
|
+
path: 'Accounts/Access/DefaultAccessPlugin.bundle'
|
|
72
|
+
}, {
|
|
73
|
+
value: 28,
|
|
74
|
+
name: 'FacebookAccessPlugin.bundle',
|
|
75
|
+
path: 'Accounts/Access/FacebookAccessPlugin.bundle'
|
|
76
|
+
}, {
|
|
77
|
+
value: 20,
|
|
78
|
+
name: 'LinkedInAccessPlugin.bundle',
|
|
79
|
+
path: 'Accounts/Access/LinkedInAccessPlugin.bundle'
|
|
80
|
+
}, {
|
|
81
|
+
value: 16,
|
|
82
|
+
name: 'TencentWeiboAccessPlugin.bundle',
|
|
83
|
+
path: 'Accounts/Access/TencentWeiboAccessPlugin.bundle'
|
|
84
|
+
}]
|
|
85
|
+
}, {
|
|
86
|
+
value: 92,
|
|
87
|
+
name: 'Authentication',
|
|
88
|
+
path: 'Accounts/Authentication',
|
|
89
|
+
children: [{
|
|
90
|
+
value: 24,
|
|
91
|
+
name: 'FacebookAuthenticationPlugin.bundle',
|
|
92
|
+
path: 'Accounts/Authentication/FacebookAuthenticationPlugin.bundle'
|
|
93
|
+
}, {
|
|
94
|
+
value: 16,
|
|
95
|
+
name: 'LinkedInAuthenticationPlugin.bundle',
|
|
96
|
+
path: 'Accounts/Authentication/LinkedInAuthenticationPlugin.bundle'
|
|
97
|
+
}, {
|
|
98
|
+
value: 20,
|
|
99
|
+
name: 'TencentWeiboAuthenticationPlugin.bundle',
|
|
100
|
+
path: 'Accounts/Authentication/TencentWeiboAuthenticationPlugin.bundle'
|
|
101
|
+
}, {
|
|
102
|
+
value: 16,
|
|
103
|
+
name: 'TwitterAuthenticationPlugin.bundle',
|
|
104
|
+
path: 'Accounts/Authentication/TwitterAuthenticationPlugin.bundle'
|
|
105
|
+
}, {
|
|
106
|
+
value: 16,
|
|
107
|
+
name: 'WeiboAuthenticationPlugin.bundle',
|
|
108
|
+
path: 'Accounts/Authentication/WeiboAuthenticationPlugin.bundle'
|
|
109
|
+
}]
|
|
110
|
+
}, {
|
|
111
|
+
value: 12,
|
|
112
|
+
name: 'Notification',
|
|
113
|
+
path: 'Accounts/Notification',
|
|
114
|
+
children: [{
|
|
115
|
+
value: 12,
|
|
116
|
+
name: 'SPAAccountsNotificationPlugin.bundle',
|
|
117
|
+
path: 'Accounts/Notification/SPAAccountsNotificationPlugin.bundle'
|
|
118
|
+
}]
|
|
119
|
+
}]
|
|
120
|
+
}, {
|
|
121
|
+
value: 1904,
|
|
122
|
+
name: 'AddressBook Plug-Ins',
|
|
123
|
+
path: 'AddressBook Plug-Ins',
|
|
124
|
+
children: [{
|
|
125
|
+
value: 744,
|
|
126
|
+
name: 'CardDAVPlugin.sourcebundle',
|
|
127
|
+
path: 'AddressBook Plug-Ins/CardDAVPlugin.sourcebundle',
|
|
128
|
+
children: [{
|
|
129
|
+
value: 744,
|
|
130
|
+
name: 'Contents',
|
|
131
|
+
path: 'AddressBook Plug-Ins/CardDAVPlugin.sourcebundle/Contents'
|
|
132
|
+
}]
|
|
133
|
+
}, {
|
|
134
|
+
value: 28,
|
|
135
|
+
name: 'DirectoryServices.sourcebundle',
|
|
136
|
+
path: 'AddressBook Plug-Ins/DirectoryServices.sourcebundle',
|
|
137
|
+
children: [{
|
|
138
|
+
value: 28,
|
|
139
|
+
name: 'Contents',
|
|
140
|
+
path: 'AddressBook Plug-Ins/DirectoryServices.sourcebundle/Contents'
|
|
141
|
+
}]
|
|
142
|
+
}, {
|
|
143
|
+
value: 680,
|
|
144
|
+
name: 'Exchange.sourcebundle',
|
|
145
|
+
path: 'AddressBook Plug-Ins/Exchange.sourcebundle',
|
|
146
|
+
children: [{
|
|
147
|
+
value: 680,
|
|
148
|
+
name: 'Contents',
|
|
149
|
+
path: 'AddressBook Plug-Ins/Exchange.sourcebundle/Contents'
|
|
150
|
+
}]
|
|
151
|
+
}, {
|
|
152
|
+
value: 432,
|
|
153
|
+
name: 'LDAP.sourcebundle',
|
|
154
|
+
path: 'AddressBook Plug-Ins/LDAP.sourcebundle',
|
|
155
|
+
children: [{
|
|
156
|
+
value: 432,
|
|
157
|
+
name: 'Contents',
|
|
158
|
+
path: 'AddressBook Plug-Ins/LDAP.sourcebundle/Contents'
|
|
159
|
+
}]
|
|
160
|
+
}, {
|
|
161
|
+
value: 20,
|
|
162
|
+
name: 'LocalSource.sourcebundle',
|
|
163
|
+
path: 'AddressBook Plug-Ins/LocalSource.sourcebundle',
|
|
164
|
+
children: [{
|
|
165
|
+
value: 20,
|
|
166
|
+
name: 'Contents',
|
|
167
|
+
path: 'AddressBook Plug-Ins/LocalSource.sourcebundle/Contents'
|
|
168
|
+
}]
|
|
169
|
+
}]
|
|
170
|
+
}]"
|
|
171
|
+
[visibleMin]="300"
|
|
172
|
+
[label]="{
|
|
173
|
+
show: true,
|
|
174
|
+
formatter: '{b}'
|
|
175
|
+
}"
|
|
176
|
+
[itemStyle]="{
|
|
177
|
+
normal: {
|
|
178
|
+
borderColor: '#fff'
|
|
179
|
+
}
|
|
180
|
+
}"
|
|
181
|
+
[levels]="[{itemStyle: {normal: {borderWidth: 0, gapWidth: 5 }}},{itemStyle: {normal: {gapWidth: 1}}},{colorSaturation: [0.35, 0.5], itemStyle: {normal: {gapWidth: 1, borderColorSaturation: 0.6}}}]"
|
|
182
|
+
>
|
|
183
|
+
</td-chart-series>
|
|
184
|
+
</td-chart>
|
|
185
|
+
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": "../fesm2015/covalent-echarts-treemap.mjs",
|
|
3
|
+
"es2020": "../fesm2020/covalent-echarts-treemap.mjs",
|
|
4
|
+
"esm2020": "../esm2020/treemap/covalent-echarts-treemap.mjs",
|
|
5
|
+
"fesm2020": "../fesm2020/covalent-echarts-treemap.mjs",
|
|
6
|
+
"fesm2015": "../fesm2015/covalent-echarts-treemap.mjs",
|
|
7
|
+
"typings": "covalent-echarts-treemap.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@covalent/echarts/treemap"
|
|
10
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { TdChartOptionsService, ITdItemStyle, ITdSeriesTooltip, ITdLabel, ITdSeries, TdSeriesDirective, ITdEmphasis, ITdShadow } from '@covalent/echarts/base';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* ECHART OPTION DOCS
|
|
5
|
+
* https://ecomfe.github.io/echarts-examples/public/index.html#chart-type-treemap
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export interface ITdTreemapEmphasisLineStyle extends ITdShadow {
|
|
9
|
+
color?: any;
|
|
10
|
+
width?: number;
|
|
11
|
+
curveness?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ITdTreemapEmphasis extends ITdEmphasis {
|
|
14
|
+
lineStyle: ITdTreemapEmphasisLineStyle;
|
|
15
|
+
}
|
|
16
|
+
export interface ITdTreemapUpperLabel {
|
|
17
|
+
show?: boolean;
|
|
18
|
+
position?: string | any[];
|
|
19
|
+
distance?: string | number;
|
|
20
|
+
rotate?: string | number;
|
|
21
|
+
offset?: any[];
|
|
22
|
+
formatter?: string;
|
|
23
|
+
color?: any;
|
|
24
|
+
fontStyle?: string;
|
|
25
|
+
fontWeight?: string;
|
|
26
|
+
fontFamily?: string;
|
|
27
|
+
fontSize?: string | number;
|
|
28
|
+
align?: string;
|
|
29
|
+
verticalAlign?: string;
|
|
30
|
+
lineHeight?: string | number;
|
|
31
|
+
backgroundColor?: any;
|
|
32
|
+
borderColor?: string;
|
|
33
|
+
borderWidth?: string | number;
|
|
34
|
+
borderRadius?: string | number;
|
|
35
|
+
padding?: number | any[];
|
|
36
|
+
shadowColor?: string;
|
|
37
|
+
shadowBlur?: string | number;
|
|
38
|
+
shadowOffsetX?: string | number;
|
|
39
|
+
shadowOffsetY?: string | number;
|
|
40
|
+
width?: string | number;
|
|
41
|
+
height?: string | number;
|
|
42
|
+
textBorderColor?: string;
|
|
43
|
+
textBorderWidth?: string | number;
|
|
44
|
+
textShadowColor?: string;
|
|
45
|
+
textShadowBlur?: string | number;
|
|
46
|
+
textShadowOffsetX?: string | number;
|
|
47
|
+
textShadowOffsetY?: string | number;
|
|
48
|
+
rich?: any;
|
|
49
|
+
ellipsis?: any;
|
|
50
|
+
}
|
|
51
|
+
export interface ITdTreemapBreadcrumb {
|
|
52
|
+
show?: boolean;
|
|
53
|
+
left?: string | number;
|
|
54
|
+
top?: string | number;
|
|
55
|
+
right?: string | number;
|
|
56
|
+
bottom?: string | number;
|
|
57
|
+
height?: string | number;
|
|
58
|
+
emptyItemWidth?: string | number;
|
|
59
|
+
itemStyle?: ITdItemStyle;
|
|
60
|
+
emphasis?: ITdTreemapEmphasis;
|
|
61
|
+
}
|
|
62
|
+
interface ITdTreemapSeries extends ITdSeries {
|
|
63
|
+
zlevel?: number;
|
|
64
|
+
z?: number;
|
|
65
|
+
left?: string | number;
|
|
66
|
+
top?: string | number;
|
|
67
|
+
right?: string | number;
|
|
68
|
+
bottom?: string | number;
|
|
69
|
+
width?: string | number;
|
|
70
|
+
height?: string | number;
|
|
71
|
+
squareRatio?: string | number;
|
|
72
|
+
leafDepth?: string | number;
|
|
73
|
+
drillDownIcon?: string;
|
|
74
|
+
roam?: boolean | string;
|
|
75
|
+
nodeClick?: boolean | string;
|
|
76
|
+
zoomToNodeRatio?: string | number;
|
|
77
|
+
levels?: any[];
|
|
78
|
+
silent?: boolean;
|
|
79
|
+
visualDimension?: string | number;
|
|
80
|
+
visualMin?: string | number;
|
|
81
|
+
visualMax?: string | number;
|
|
82
|
+
colorAlpha?: any[];
|
|
83
|
+
colorSaturation?: string | number;
|
|
84
|
+
colorMappingBy?: string;
|
|
85
|
+
visibleMin?: string | number;
|
|
86
|
+
childrenVisibleMin?: string | number;
|
|
87
|
+
itemStyle?: ITdItemStyle;
|
|
88
|
+
label?: ITdLabel;
|
|
89
|
+
upperLabel?: ITdTreemapUpperLabel;
|
|
90
|
+
breadcrumb?: ITdTreemapBreadcrumb;
|
|
91
|
+
emphasis?: ITdTreemapEmphasis;
|
|
92
|
+
data?: any[];
|
|
93
|
+
}
|
|
94
|
+
export declare class TdChartSeriesTreemapComponent extends TdSeriesDirective implements ITdTreemapSeries {
|
|
95
|
+
config?: any;
|
|
96
|
+
id?: string;
|
|
97
|
+
name?: string;
|
|
98
|
+
data?: any;
|
|
99
|
+
zlevel?: number;
|
|
100
|
+
z?: number;
|
|
101
|
+
left?: string | number;
|
|
102
|
+
top?: string | number;
|
|
103
|
+
right?: string | number;
|
|
104
|
+
bottom?: string | number;
|
|
105
|
+
width?: string | number;
|
|
106
|
+
height?: string | number;
|
|
107
|
+
squareRatio?: string | number;
|
|
108
|
+
leafDepth?: string | number;
|
|
109
|
+
drillDownIcon?: string;
|
|
110
|
+
roam?: boolean | string;
|
|
111
|
+
nodeClick?: boolean | string;
|
|
112
|
+
zoomToNodeRatio?: string | number;
|
|
113
|
+
levels?: any[];
|
|
114
|
+
silent?: boolean;
|
|
115
|
+
visualDimension?: string | number;
|
|
116
|
+
visualMin?: string | number;
|
|
117
|
+
visualMax?: string | number;
|
|
118
|
+
colorAlpha?: any[];
|
|
119
|
+
colorSaturation?: string | number;
|
|
120
|
+
colorMappingBy?: string;
|
|
121
|
+
visibleMin?: string | number;
|
|
122
|
+
childrenVisibleMin?: string | number;
|
|
123
|
+
itemStyle?: ITdItemStyle;
|
|
124
|
+
label?: ITdLabel;
|
|
125
|
+
upperLabel?: ITdTreemapUpperLabel;
|
|
126
|
+
breadcrumb?: ITdTreemapBreadcrumb;
|
|
127
|
+
emphasis?: ITdTreemapEmphasis;
|
|
128
|
+
tooltip?: ITdSeriesTooltip;
|
|
129
|
+
constructor(_optionsService: TdChartOptionsService);
|
|
130
|
+
getConfig(): any;
|
|
131
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartSeriesTreemapComponent, never>;
|
|
132
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdChartSeriesTreemapComponent, "td-chart-series[td-treemap]", 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"; "zlevel": "zlevel"; "z": "z"; "left": "left"; "top": "top"; "right": "right"; "bottom": "bottom"; "width": "width"; "height": "height"; "squareRatio": "squareRatio"; "leafDepth": "leafDepth"; "drillDownIcon": "drillDownIcon"; "roam": "roam"; "nodeClick": "nodeClick"; "zoomToNodeRatio": "zoomToNodeRatio"; "levels": "levels"; "silent": "silent"; "visualDimension": "visualDimension"; "visualMin": "visualMin"; "visualMax": "visualMax"; "colorAlpha": "colorAlpha"; "colorSaturation": "colorSaturation"; "colorMappingBy": "colorMappingBy"; "visibleMin": "visibleMin"; "childrenVisibleMin": "childrenVisibleMin"; "itemStyle": "itemStyle"; "label": "label"; "upperLabel": "upperLabel"; "breadcrumb": "breadcrumb"; "emphasis": "emphasis"; }, {}, never, never>;
|
|
133
|
+
}
|
|
134
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./treemap.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export declare const TREEMAP_MODULE_COMPONENTS: Type<any>[];
|
|
6
|
+
export declare class CovalentTreemapEchartsModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentTreemapEchartsModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentTreemapEchartsModule, [typeof i1.TdChartSeriesTreemapComponent], [typeof i2.CommonModule], [typeof i1.TdChartSeriesTreemapComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentTreemapEchartsModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# td-chart-series[td-wordCloud]
|
|
2
|
+
|
|
3
|
+
`td-chart-series[td-wordCloud]` element generates a graph series echarts visualization inside a `td-chart`. Its the equivalent of creating a JS series object `type="wordCloud"` in echarts.
|
|
4
|
+
|
|
5
|
+
## API Summary
|
|
6
|
+
|
|
7
|
+
#### Inputs
|
|
8
|
+
|
|
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
|
+
|
|
13
|
+
There are also lots of property inputs like:
|
|
14
|
+
|
|
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
|
+
- value: number
|
|
20
|
+
- Series value used for varying the size of the labels.
|
|
21
|
+
- color?: string | () => string
|
|
22
|
+
- Global color for the series. It can be generated by a function
|
|
23
|
+
- gridSize?: number
|
|
24
|
+
- Size of the grid in pixels for marking the availability of the canvas the larger the grid size, the bigger the gap between words.
|
|
25
|
+
|
|
26
|
+
And so many more.. for more info [click here](https://github.com/ecomfe/echarts-wordcloud)
|
|
27
|
+
|
|
28
|
+
## Setup
|
|
29
|
+
|
|
30
|
+
Import the [CovalentWordcloudEchartsModule] in your NgModule:
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { CovalentBaseEchartsModule } from '@covalent/echarts/base';
|
|
34
|
+
import { CovalentWordcloudEchartsModule } from '@covalent/echarts/wordcloud';
|
|
35
|
+
@NgModule({
|
|
36
|
+
imports: [
|
|
37
|
+
CovalentBaseEchartsModule,
|
|
38
|
+
CovalentWordcloudEchartsModule,
|
|
39
|
+
...
|
|
40
|
+
],
|
|
41
|
+
...
|
|
42
|
+
})
|
|
43
|
+
export class MyModule {}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Usage
|
|
47
|
+
|
|
48
|
+
Basic Example:
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<td-chart [style.height.px]="500">
|
|
52
|
+
<td-chart-series
|
|
53
|
+
td-wordCloud
|
|
54
|
+
[shape]="circle"
|
|
55
|
+
[sizeRange]="[12, 60]"
|
|
56
|
+
[rotationRange]="[-90, 90]"
|
|
57
|
+
[rotationStep]="45"
|
|
58
|
+
[gridSize]="8"
|
|
59
|
+
[drawOutOfBound]="false"
|
|
60
|
+
[textStyle]="{
|
|
61
|
+
normal: {
|
|
62
|
+
fontFamily: 'sans-serif',
|
|
63
|
+
fontWeight: 'bold',
|
|
64
|
+
color: '#ccc'
|
|
65
|
+
},
|
|
66
|
+
emphasis: {
|
|
67
|
+
shadowBlur: 10,
|
|
68
|
+
shadowColor: '#333'
|
|
69
|
+
}
|
|
70
|
+
}"
|
|
71
|
+
[data]="[{
|
|
72
|
+
name: 'Benjamin Abraham',
|
|
73
|
+
value: 366,
|
|
74
|
+
normal: {
|
|
75
|
+
fontFamily: 'arial',
|
|
76
|
+
fontWeight: '100',
|
|
77
|
+
color: 'red'
|
|
78
|
+
},
|
|
79
|
+
}, {
|
|
80
|
+
name: 'Mary Stuart',
|
|
81
|
+
value: 366
|
|
82
|
+
}, {
|
|
83
|
+
name: 'John Doe',
|
|
84
|
+
value: 350
|
|
85
|
+
}]"
|
|
86
|
+
>
|
|
87
|
+
</td-chart-series>
|
|
88
|
+
</td-chart>
|
|
89
|
+
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"module": "../fesm2015/covalent-echarts-wordcloud.mjs",
|
|
3
|
+
"es2020": "../fesm2020/covalent-echarts-wordcloud.mjs",
|
|
4
|
+
"esm2020": "../esm2020/wordcloud/covalent-echarts-wordcloud.mjs",
|
|
5
|
+
"fesm2020": "../fesm2020/covalent-echarts-wordcloud.mjs",
|
|
6
|
+
"fesm2015": "../fesm2015/covalent-echarts-wordcloud.mjs",
|
|
7
|
+
"typings": "covalent-echarts-wordcloud.d.ts",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"name": "@covalent/echarts/wordcloud"
|
|
10
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { TdChartOptionsService, ITdSeries, TdSeriesDirective } from '@covalent/echarts/base';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare type TdWordcloudShape = 'circle' | 'cardioid' | 'diamond' | 'triangle-forward' | 'triangle' | 'pentagon' | 'star';
|
|
4
|
+
export interface ITdWordcloudTextStyle {
|
|
5
|
+
normal?: {
|
|
6
|
+
fontFamily?: string;
|
|
7
|
+
fontWeight?: string;
|
|
8
|
+
color?: string | ((x: any) => string);
|
|
9
|
+
};
|
|
10
|
+
emphasis?: {
|
|
11
|
+
shadowBlur?: number;
|
|
12
|
+
shadowColor?: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface ITdWordCloudData {
|
|
16
|
+
name: string;
|
|
17
|
+
value: number;
|
|
18
|
+
textStyle?: ITdWordcloudTextStyle;
|
|
19
|
+
}
|
|
20
|
+
export interface ITdWordcloudSeries extends ITdSeries {
|
|
21
|
+
data?: ITdWordCloudData[];
|
|
22
|
+
shape?: TdWordcloudShape;
|
|
23
|
+
left?: string | number;
|
|
24
|
+
top?: string | number;
|
|
25
|
+
width?: string | number;
|
|
26
|
+
height?: string | number;
|
|
27
|
+
right?: string | number;
|
|
28
|
+
bottom?: string | number;
|
|
29
|
+
sizeRange?: number[];
|
|
30
|
+
rotationRange?: number[];
|
|
31
|
+
rotationStep?: number;
|
|
32
|
+
gridSize?: number;
|
|
33
|
+
drawOutOfBound?: boolean;
|
|
34
|
+
textStyle?: ITdWordcloudTextStyle;
|
|
35
|
+
}
|
|
36
|
+
export declare class TdChartSeriesWordcloudComponent extends TdSeriesDirective implements ITdWordcloudSeries {
|
|
37
|
+
data?: ITdWordCloudData[];
|
|
38
|
+
shape?: TdWordcloudShape;
|
|
39
|
+
left?: string | number;
|
|
40
|
+
top?: string | number;
|
|
41
|
+
width?: string | number;
|
|
42
|
+
height?: string | number;
|
|
43
|
+
right?: string | number;
|
|
44
|
+
bottom?: string | number;
|
|
45
|
+
sizeRange?: number[];
|
|
46
|
+
rotationRange?: number[];
|
|
47
|
+
rotationStep?: number;
|
|
48
|
+
gridSize?: number;
|
|
49
|
+
drawOutOfBound?: boolean;
|
|
50
|
+
textStyle?: ITdWordcloudTextStyle;
|
|
51
|
+
constructor(_optionsService: TdChartOptionsService);
|
|
52
|
+
getConfig(): any;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TdChartSeriesWordcloudComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TdChartSeriesWordcloudComponent, "td-chart-series[td-wordCloud]", 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"; "shape": "shape"; "left": "left"; "top": "top"; "width": "width"; "height": "height"; "right": "right"; "bottom": "bottom"; "sizeRange": "sizeRange"; "rotationRange": "rotationRange"; "rotationStep": "rotationStep"; "gridSize": "gridSize"; "drawOutOfBound": "drawOutOfBound"; "textStyle": "textStyle"; }, {}, never, never>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./wordcloud.component";
|
|
4
|
+
import * as i2 from "@angular/common";
|
|
5
|
+
export declare const WORDCLOUD_MODULE_COMPONENTS: Type<any>[];
|
|
6
|
+
export declare class CovalentWordcloudEchartsModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CovalentWordcloudEchartsModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CovalentWordcloudEchartsModule, [typeof i1.TdChartSeriesWordcloudComponent], [typeof i2.CommonModule], [typeof i1.TdChartSeriesWordcloudComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CovalentWordcloudEchartsModule>;
|
|
10
|
+
}
|