@covalent/echarts 4.0.0-beta.2 → 4.1.0-develop.2

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.
Files changed (233) hide show
  1. package/README.md +4 -90
  2. package/bar/README.md +23 -21
  3. package/bar/bar.component.d.ts +27 -27
  4. package/bar/covalent-echarts-bar.d.ts +1 -1
  5. package/bar/{public-api.d.ts → public_api.d.ts} +0 -0
  6. package/base/README.md +26 -26
  7. package/base/axis/axis.component.d.ts +29 -29
  8. package/base/chart.component.d.ts +3 -3
  9. package/base/covalent-echarts-base.d.ts +1 -1
  10. package/base/dataset/dataset.component.d.ts +5 -5
  11. package/base/{public-api.d.ts → public_api.d.ts} +0 -0
  12. package/base/series/series.component.d.ts +15 -15
  13. package/base/{axis → src/axis}/README.md +19 -19
  14. package/base/{dataset → src/dataset}/README.md +19 -16
  15. package/covalent-echarts.d.ts +1 -1
  16. package/esm2020/bar/bar.component.mjs +95 -96
  17. package/esm2020/bar/bar.module.mjs +12 -13
  18. package/esm2020/bar/covalent-echarts-bar.mjs +2 -2
  19. package/esm2020/bar/public_api.mjs +3 -0
  20. package/esm2020/base/axis/axis.component.mjs +66 -66
  21. package/esm2020/base/axis/axis.interface.mjs +1 -1
  22. package/esm2020/base/axis/x-axis.component.mjs +45 -45
  23. package/esm2020/base/axis/y-axis.component.mjs +45 -45
  24. package/esm2020/base/base.module.mjs +13 -14
  25. package/esm2020/base/base.types.mjs +1 -1
  26. package/esm2020/base/chart-options.service.mjs +6 -6
  27. package/esm2020/base/chart.component.mjs +42 -38
  28. package/esm2020/base/covalent-echarts-base.mjs +2 -2
  29. package/esm2020/base/dataset/dataset.component.mjs +22 -22
  30. package/esm2020/base/public_api.mjs +10 -0
  31. package/esm2020/base/series/series.component.mjs +34 -34
  32. package/esm2020/base/series/series.interface.mjs +1 -1
  33. package/esm2020/base/themes/aqua-splash.mjs +31 -4
  34. package/esm2020/base/themes/california-coast.mjs +1 -1
  35. package/esm2020/base/themes/hawaiian-sunrise.mjs +1 -1
  36. package/esm2020/base/themes/passion-flower.mjs +1 -1
  37. package/esm2020/base/themes/razzleberry-pie.mjs +31 -4
  38. package/esm2020/base/themes/teradata-classic.mjs +31 -4
  39. package/esm2020/base/themes/teradata-default.mjs +1 -1
  40. package/esm2020/base/themes/urban-sunrise.mjs +1 -1
  41. package/esm2020/base/themes/volcanic-eruption.mjs +1 -1
  42. package/esm2020/base/utils/assign-defined.mjs +1 -1
  43. package/esm2020/base/utils/echarts.mjs +1 -1
  44. package/esm2020/base/utils/index.mjs +1 -1
  45. package/esm2020/covalent-echarts.mjs +2 -2
  46. package/esm2020/graph/covalent-echarts-graph.mjs +2 -2
  47. package/esm2020/graph/graph.component.mjs +129 -130
  48. package/esm2020/graph/graph.module.mjs +15 -14
  49. package/esm2020/graph/public_api.mjs +3 -0
  50. package/esm2020/line/covalent-echarts-line.mjs +2 -2
  51. package/esm2020/line/line.component.mjs +111 -112
  52. package/esm2020/line/line.module.mjs +12 -13
  53. package/esm2020/line/public_api.mjs +3 -0
  54. package/esm2020/map/covalent-echarts-map.mjs +2 -2
  55. package/esm2020/map/map.component.mjs +93 -94
  56. package/esm2020/map/map.module.mjs +12 -13
  57. package/esm2020/map/public_api.mjs +3 -0
  58. package/esm2020/pie/covalent-echarts-pie.mjs +2 -2
  59. package/esm2020/pie/pie.component.mjs +91 -92
  60. package/esm2020/pie/pie.module.mjs +12 -13
  61. package/esm2020/pie/public_api.mjs +3 -0
  62. package/esm2020/public_api.mjs +2 -0
  63. package/esm2020/sankey/covalent-echarts-sankey.mjs +2 -2
  64. package/esm2020/sankey/public_api.mjs +3 -0
  65. package/esm2020/sankey/sankey.component.mjs +83 -84
  66. package/esm2020/sankey/sankey.module.mjs +15 -14
  67. package/esm2020/scatter/covalent-echarts-scatter.mjs +2 -2
  68. package/esm2020/scatter/public_api.mjs +3 -0
  69. package/esm2020/scatter/scatter.component.mjs +101 -102
  70. package/esm2020/scatter/scatter.module.mjs +15 -14
  71. package/esm2020/toolbox/covalent-echarts-toolbox.mjs +2 -2
  72. package/esm2020/toolbox/public_api.mjs +3 -0
  73. package/esm2020/toolbox/toolbox.component.mjs +60 -76
  74. package/esm2020/toolbox/toolbox.module.mjs +19 -15
  75. package/esm2020/tooltip/covalent-echarts-tooltip.mjs +2 -2
  76. package/esm2020/tooltip/public_api.mjs +4 -0
  77. package/esm2020/tooltip/series-tooltip.component.mjs +40 -49
  78. package/esm2020/tooltip/tooltip.component.mjs +71 -80
  79. package/esm2020/tooltip/tooltip.module.mjs +14 -15
  80. package/esm2020/tree/covalent-echarts-tree.mjs +2 -2
  81. package/esm2020/tree/public_api.mjs +3 -0
  82. package/esm2020/tree/tree.component.mjs +83 -84
  83. package/esm2020/tree/tree.module.mjs +12 -13
  84. package/esm2020/treemap/covalent-echarts-treemap.mjs +2 -2
  85. package/esm2020/treemap/public_api.mjs +3 -0
  86. package/esm2020/treemap/treemap.component.mjs +107 -108
  87. package/esm2020/treemap/treemap.module.mjs +15 -14
  88. package/esm2020/wordcloud/covalent-echarts-wordcloud.mjs +2 -2
  89. package/esm2020/wordcloud/public_api.mjs +3 -0
  90. package/esm2020/wordcloud/wordcloud.component.mjs +68 -69
  91. package/esm2020/wordcloud/wordcloud.module.mjs +15 -14
  92. package/fesm2015/covalent-echarts-bar.mjs +16 -22
  93. package/fesm2015/covalent-echarts-bar.mjs.map +1 -1
  94. package/fesm2015/covalent-echarts-base.mjs +148 -81
  95. package/fesm2015/covalent-echarts-base.mjs.map +1 -1
  96. package/fesm2015/covalent-echarts-graph.mjs +19 -23
  97. package/fesm2015/covalent-echarts-graph.mjs.map +1 -1
  98. package/fesm2015/covalent-echarts-line.mjs +16 -22
  99. package/fesm2015/covalent-echarts-line.mjs.map +1 -1
  100. package/fesm2015/covalent-echarts-map.mjs +16 -22
  101. package/fesm2015/covalent-echarts-map.mjs.map +1 -1
  102. package/fesm2015/covalent-echarts-pie.mjs +16 -22
  103. package/fesm2015/covalent-echarts-pie.mjs.map +1 -1
  104. package/fesm2015/covalent-echarts-sankey.mjs +19 -23
  105. package/fesm2015/covalent-echarts-sankey.mjs.map +1 -1
  106. package/fesm2015/covalent-echarts-scatter.mjs +19 -23
  107. package/fesm2015/covalent-echarts-scatter.mjs.map +1 -1
  108. package/fesm2015/covalent-echarts-toolbox.mjs +23 -49
  109. package/fesm2015/covalent-echarts-toolbox.mjs.map +1 -1
  110. package/fesm2015/covalent-echarts-tooltip.mjs +43 -90
  111. package/fesm2015/covalent-echarts-tooltip.mjs.map +1 -1
  112. package/fesm2015/covalent-echarts-tree.mjs +16 -22
  113. package/fesm2015/covalent-echarts-tree.mjs.map +1 -1
  114. package/fesm2015/covalent-echarts-treemap.mjs +19 -23
  115. package/fesm2015/covalent-echarts-treemap.mjs.map +1 -1
  116. package/fesm2015/covalent-echarts-wordcloud.mjs +19 -23
  117. package/fesm2015/covalent-echarts-wordcloud.mjs.map +1 -1
  118. package/fesm2015/covalent-echarts.mjs.map +1 -1
  119. package/fesm2020/covalent-echarts-bar.mjs +104 -106
  120. package/fesm2020/covalent-echarts-bar.mjs.map +1 -1
  121. package/fesm2020/covalent-echarts-base.mjs +353 -269
  122. package/fesm2020/covalent-echarts-base.mjs.map +1 -1
  123. package/fesm2020/covalent-echarts-graph.mjs +141 -141
  124. package/fesm2020/covalent-echarts-graph.mjs.map +1 -1
  125. package/fesm2020/covalent-echarts-line.mjs +120 -122
  126. package/fesm2020/covalent-echarts-line.mjs.map +1 -1
  127. package/fesm2020/covalent-echarts-map.mjs +102 -104
  128. package/fesm2020/covalent-echarts-map.mjs.map +1 -1
  129. package/fesm2020/covalent-echarts-pie.mjs +100 -102
  130. package/fesm2020/covalent-echarts-pie.mjs.map +1 -1
  131. package/fesm2020/covalent-echarts-sankey.mjs +95 -95
  132. package/fesm2020/covalent-echarts-sankey.mjs.map +1 -1
  133. package/fesm2020/covalent-echarts-scatter.mjs +113 -113
  134. package/fesm2020/covalent-echarts-scatter.mjs.map +1 -1
  135. package/fesm2020/covalent-echarts-toolbox.mjs +76 -88
  136. package/fesm2020/covalent-echarts-toolbox.mjs.map +1 -1
  137. package/fesm2020/covalent-echarts-tooltip.mjs +120 -139
  138. package/fesm2020/covalent-echarts-tooltip.mjs.map +1 -1
  139. package/fesm2020/covalent-echarts-tree.mjs +92 -94
  140. package/fesm2020/covalent-echarts-tree.mjs.map +1 -1
  141. package/fesm2020/covalent-echarts-treemap.mjs +119 -119
  142. package/fesm2020/covalent-echarts-treemap.mjs.map +1 -1
  143. package/fesm2020/covalent-echarts-wordcloud.mjs +79 -79
  144. package/fesm2020/covalent-echarts-wordcloud.mjs.map +1 -1
  145. package/fesm2020/covalent-echarts.mjs.map +1 -1
  146. package/graph/README.md +21 -19
  147. package/graph/covalent-echarts-graph.d.ts +1 -1
  148. package/graph/graph.component.d.ts +60 -60
  149. package/graph/{public-api.d.ts → public_api.d.ts} +0 -0
  150. package/line/README.md +19 -21
  151. package/line/covalent-echarts-line.d.ts +1 -1
  152. package/line/line.component.d.ts +35 -35
  153. package/line/{public-api.d.ts → public_api.d.ts} +0 -0
  154. package/map/README.md +19 -17
  155. package/map/covalent-echarts-map.d.ts +1 -1
  156. package/map/map.component.d.ts +27 -27
  157. package/map/{public-api.d.ts → public_api.d.ts} +0 -0
  158. package/package.json +11 -31
  159. package/pie/README.md +17 -15
  160. package/pie/covalent-echarts-pie.d.ts +1 -1
  161. package/pie/pie.component.d.ts +26 -26
  162. package/pie/{public-api.d.ts → public_api.d.ts} +0 -0
  163. package/{index.d.ts → public_api.d.ts} +0 -0
  164. package/sankey/README.md +22 -20
  165. package/sankey/covalent-echarts-sankey.d.ts +1 -1
  166. package/sankey/{public-api.d.ts → public_api.d.ts} +0 -0
  167. package/sankey/sankey.component.d.ts +22 -22
  168. package/scatter/README.md +19 -21
  169. package/scatter/covalent-echarts-scatter.d.ts +1 -1
  170. package/scatter/{public-api.d.ts → public_api.d.ts} +0 -0
  171. package/scatter/scatter.component.d.ts +31 -31
  172. package/toolbox/README.md +12 -11
  173. package/toolbox/covalent-echarts-toolbox.d.ts +1 -1
  174. package/toolbox/{public-api.d.ts → public_api.d.ts} +0 -0
  175. package/toolbox/toolbox.component.d.ts +10 -10
  176. package/tooltip/README.md +30 -26
  177. package/tooltip/covalent-echarts-tooltip.d.ts +1 -1
  178. package/tooltip/{public-api.d.ts → public_api.d.ts} +0 -0
  179. package/tooltip/series-tooltip.component.d.ts +11 -9
  180. package/tooltip/tooltip.component.d.ts +16 -16
  181. package/tree/README.md +20 -18
  182. package/tree/covalent-echarts-tree.d.ts +1 -1
  183. package/tree/{public-api.d.ts → public_api.d.ts} +0 -0
  184. package/tree/tree.component.d.ts +24 -24
  185. package/treemap/README.md +23 -21
  186. package/treemap/covalent-echarts-treemap.d.ts +1 -1
  187. package/treemap/{public-api.d.ts → public_api.d.ts} +0 -0
  188. package/treemap/treemap.component.d.ts +37 -37
  189. package/wordcloud/README.md +25 -23
  190. package/wordcloud/covalent-echarts-wordcloud.d.ts +1 -1
  191. package/wordcloud/{public-api.d.ts → public_api.d.ts} +0 -0
  192. package/wordcloud/wordcloud.component.d.ts +14 -14
  193. package/bar/index.d.ts +0 -1
  194. package/base/chart.component.scss +0 -4
  195. package/base/index.d.ts +0 -1
  196. package/esm2020/bar/index.mjs +0 -2
  197. package/esm2020/bar/public-api.mjs +0 -3
  198. package/esm2020/base/index.mjs +0 -2
  199. package/esm2020/base/public-api.mjs +0 -10
  200. package/esm2020/graph/index.mjs +0 -2
  201. package/esm2020/graph/public-api.mjs +0 -3
  202. package/esm2020/index.mjs +0 -2
  203. package/esm2020/line/index.mjs +0 -2
  204. package/esm2020/line/public-api.mjs +0 -3
  205. package/esm2020/map/index.mjs +0 -2
  206. package/esm2020/map/public-api.mjs +0 -3
  207. package/esm2020/pie/index.mjs +0 -2
  208. package/esm2020/pie/public-api.mjs +0 -3
  209. package/esm2020/sankey/index.mjs +0 -2
  210. package/esm2020/sankey/public-api.mjs +0 -3
  211. package/esm2020/scatter/index.mjs +0 -2
  212. package/esm2020/scatter/public-api.mjs +0 -3
  213. package/esm2020/toolbox/index.mjs +0 -2
  214. package/esm2020/toolbox/public-api.mjs +0 -3
  215. package/esm2020/tooltip/index.mjs +0 -2
  216. package/esm2020/tooltip/public-api.mjs +0 -4
  217. package/esm2020/tree/index.mjs +0 -2
  218. package/esm2020/tree/public-api.mjs +0 -3
  219. package/esm2020/treemap/index.mjs +0 -2
  220. package/esm2020/treemap/public-api.mjs +0 -3
  221. package/esm2020/wordcloud/index.mjs +0 -2
  222. package/esm2020/wordcloud/public-api.mjs +0 -3
  223. package/graph/index.d.ts +0 -1
  224. package/line/index.d.ts +0 -1
  225. package/map/index.d.ts +0 -1
  226. package/pie/index.d.ts +0 -1
  227. package/sankey/index.d.ts +0 -1
  228. package/scatter/index.d.ts +0 -1
  229. package/toolbox/index.d.ts +0 -1
  230. package/tooltip/index.d.ts +0 -1
  231. package/tree/index.d.ts +0 -1
  232. package/treemap/index.d.ts +0 -1
  233. package/wordcloud/index.d.ts +0 -1
package/README.md CHANGED
@@ -1,93 +1,7 @@
1
- # Covalent ECharts
1
+ # angular-echarts
2
2
 
3
- ### What's Echarts?
3
+ This library was generated with [Nx](https://nx.dev).
4
4
 
5
- [Echarts](https://echarts.apache.org/en/index.html) is a massive visualization library built on canvas by Baidu and open-sourced under the Apache License as an official Apache Incubator.
5
+ ## Running unit tests
6
6
 
7
- ### Why Covalent Echarts?
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
- + 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
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
- + 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.
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 [show]="true"
51
- [type]="'category'"
52
- [data]="['Electronics', 'Toys', 'Grocery', 'Appliances', 'Automotive', 'Sports']">
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>
57
- <td-chart-series td-bar
58
- [name]="'name'"
59
- [data]="[150, 130, 150, 120, 150, 120]"
60
- [color]="'#F2724B'">
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
  ```
@@ -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: 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[];
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: TdSeriesLayoutBy;
58
- datasetIndex: number;
59
- markPoint: ITdMarkPoint;
60
- markLine: ITdMarkLine;
61
- markArea: ITdMarkArea;
62
- zlevel: number;
63
- z: number;
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>;
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  /// <amd-module name="@covalent/echarts/bar" />
5
- export * from './index';
5
+ export * from './public_api';
File without changes
package/base/README.md CHANGED
@@ -6,27 +6,25 @@
6
6
 
7
7
  #### Inputs
8
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
- + 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
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
- + chartClick
24
- + event thrown when a chart element has been clicked.
25
- + chartDblclick
26
- + event thrown when a chart element has been double clicked.
27
- + chartContextmenu
28
- + event thrown when a chart element has been right-clicked.
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 [style.height.px]="300"
51
- [config]="{...}"
52
- [themeName]="'light'"
53
- [renderer]="'canvas'"
54
- [group]="'group1'"
55
- (chartClick)="doSomething()"
56
- (chartDblclick)="doSomething()"
57
- (chartContextmenu)="doSomething()">
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: string;
11
- show: boolean;
12
- gridIndex: number;
13
- offset: number;
10
+ id?: string;
11
+ show?: boolean;
12
+ gridIndex?: number;
13
+ offset?: number;
14
14
  abstract position: TdXAxisPosition | TdYAxisPosition;
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;
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: any;
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: string;
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: string;
36
+ themeName?: string | null;
37
37
  /**
38
38
  * renderer: 'svg' | 'canvas'
39
39
  * sets the rendering mode for the chart.
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  /// <amd-module name="@covalent/echarts/base" />
5
- export * from './index';
5
+ export * from './public_api';
@@ -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: string;
8
- config: any;
9
- source: object | any[];
10
- dimensions: any[];
11
- sourceHeader: boolean;
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 '../series/series.interface';
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: 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;
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
- + 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
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
- + 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.
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 [show]="true"
51
- [type]="'category'"
52
- [data]="['Electronics', 'Toys', 'Grocery', 'Appliances', 'Automotive', 'Sports']">
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
- + 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
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
- + 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.
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
- <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>
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
  ```
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  /// <amd-module name="@covalent/echarts" />
5
- export * from './index';
5
+ export * from './public_api';