@carbon/charts-angular 1.9.0-rc.3 → 1.9.0-rc.4

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 (173) hide show
  1. package/esm2022/carbon-charts-angular.mjs +5 -0
  2. package/esm2022/index.mjs +14 -0
  3. package/esm2022/lib/charts/alluvial-chart.component.mjs +32 -0
  4. package/esm2022/lib/charts/area-chart-stacked.component.mjs +32 -0
  5. package/esm2022/lib/charts/area-chart.component.mjs +32 -0
  6. package/esm2022/lib/charts/bar-chart-grouped.component.mjs +32 -0
  7. package/esm2022/lib/charts/bar-chart-simple.component.mjs +32 -0
  8. package/esm2022/lib/charts/bar-chart-stacked.component.mjs +32 -0
  9. package/esm2022/lib/charts/base-chart.component.mjs +75 -0
  10. package/esm2022/lib/charts/boxplot-chart.component.mjs +32 -0
  11. package/esm2022/lib/charts/bubble-chart.component.mjs +32 -0
  12. package/esm2022/lib/charts/bullet-chart.component.mjs +32 -0
  13. package/esm2022/lib/charts/charts.module.mjs +123 -0
  14. package/esm2022/lib/charts/choropleth.component.mjs +32 -0
  15. package/esm2022/lib/charts/circle-pack-chart.component.mjs +32 -0
  16. package/esm2022/lib/charts/combo-chart.component.mjs +32 -0
  17. package/esm2022/lib/charts/donut-chart.component.mjs +32 -0
  18. package/esm2022/lib/charts/gauge-chart.component.mjs +32 -0
  19. package/esm2022/lib/charts/heatmap-chart.component.mjs +32 -0
  20. package/esm2022/lib/charts/histogram-chart.component.mjs +32 -0
  21. package/esm2022/lib/charts/index.mjs +28 -0
  22. package/esm2022/lib/charts/line-chart.component.mjs +32 -0
  23. package/esm2022/lib/charts/lollipop-chart.component.mjs +32 -0
  24. package/esm2022/lib/charts/meter-chart.component.mjs +32 -0
  25. package/esm2022/lib/charts/pie-chart.component.mjs +32 -0
  26. package/esm2022/lib/charts/radar-chart.component.mjs +32 -0
  27. package/esm2022/lib/charts/scatter-chart.component.mjs +32 -0
  28. package/esm2022/lib/charts/tree-chart.component.mjs +32 -0
  29. package/esm2022/lib/charts/treemap-chart.component.mjs +32 -0
  30. package/esm2022/lib/charts/wordcloud-chart.component.mjs +32 -0
  31. package/esm2022/lib/diagrams/config.mjs +2 -0
  32. package/esm2022/lib/diagrams/edges/edge.component.mjs +73 -0
  33. package/esm2022/lib/diagrams/edges/edge.module.mjs +20 -0
  34. package/esm2022/lib/diagrams/edges/marker/marker.component.mjs +161 -0
  35. package/esm2022/lib/diagrams/edges/marker/marker.module.mjs +48 -0
  36. package/esm2022/lib/diagrams/index.mjs +5 -0
  37. package/esm2022/lib/diagrams/nodes/cards/card-node-column.component.mjs +38 -0
  38. package/esm2022/lib/diagrams/nodes/cards/card-node-label.component.mjs +28 -0
  39. package/esm2022/lib/diagrams/nodes/cards/card-node-subtitle.component.mjs +28 -0
  40. package/esm2022/lib/diagrams/nodes/cards/card-node-title.component.mjs +28 -0
  41. package/esm2022/lib/diagrams/nodes/cards/card-node.component.mjs +191 -0
  42. package/esm2022/lib/diagrams/nodes/cards/card-node.module.mjs +44 -0
  43. package/esm2022/lib/diagrams/nodes/shape/shape-node.component.mjs +241 -0
  44. package/esm2022/lib/diagrams/nodes/shape/shape-node.module.mjs +20 -0
  45. package/esm2022/lib/index.mjs +3 -0
  46. package/fesm2022/carbon-charts-angular.mjs +1728 -0
  47. package/fesm2022/carbon-charts-angular.mjs.map +1 -0
  48. package/index.d.ts +5 -0
  49. package/lib/charts/alluvial-chart.component.d.ts +16 -0
  50. package/lib/charts/area-chart-stacked.component.d.ts +16 -0
  51. package/lib/charts/area-chart.component.d.ts +16 -0
  52. package/lib/charts/bar-chart-grouped.component.d.ts +16 -0
  53. package/lib/charts/bar-chart-simple.component.d.ts +16 -0
  54. package/lib/charts/bar-chart-stacked.component.d.ts +16 -0
  55. package/lib/charts/base-chart.component.d.ts +46 -0
  56. package/lib/charts/boxplot-chart.component.d.ts +16 -0
  57. package/lib/charts/bubble-chart.component.d.ts +16 -0
  58. package/lib/charts/bullet-chart.component.d.ts +16 -0
  59. package/lib/charts/charts.module.d.ts +33 -0
  60. package/lib/charts/choropleth.component.d.ts +16 -0
  61. package/lib/charts/circle-pack-chart.component.d.ts +16 -0
  62. package/lib/charts/combo-chart.component.d.ts +16 -0
  63. package/lib/charts/donut-chart.component.d.ts +16 -0
  64. package/lib/charts/gauge-chart.component.d.ts +16 -0
  65. package/lib/charts/heatmap-chart.component.d.ts +16 -0
  66. package/lib/charts/histogram-chart.component.d.ts +16 -0
  67. package/{src/lib/charts/index.ts → lib/charts/index.d.ts} +27 -28
  68. package/lib/charts/line-chart.component.d.ts +16 -0
  69. package/lib/charts/lollipop-chart.component.d.ts +16 -0
  70. package/lib/charts/meter-chart.component.d.ts +16 -0
  71. package/lib/charts/pie-chart.component.d.ts +16 -0
  72. package/lib/charts/radar-chart.component.d.ts +16 -0
  73. package/lib/charts/scatter-chart.component.d.ts +16 -0
  74. package/lib/charts/tree-chart.component.d.ts +16 -0
  75. package/lib/charts/treemap-chart.component.d.ts +16 -0
  76. package/lib/charts/wordcloud-chart.component.d.ts +16 -0
  77. package/lib/diagrams/config.d.ts +1 -0
  78. package/lib/diagrams/edges/edge.component.d.ts +20 -0
  79. package/lib/diagrams/edges/edge.module.d.ts +9 -0
  80. package/lib/diagrams/edges/marker/marker.component.d.ts +52 -0
  81. package/lib/diagrams/edges/marker/marker.module.d.ts +10 -0
  82. package/lib/diagrams/index.d.ts +4 -0
  83. package/lib/diagrams/nodes/cards/card-node-column.component.d.ts +7 -0
  84. package/lib/diagrams/nodes/cards/card-node-label.component.d.ts +6 -0
  85. package/lib/diagrams/nodes/cards/card-node-subtitle.component.d.ts +6 -0
  86. package/lib/diagrams/nodes/cards/card-node-title.component.d.ts +6 -0
  87. package/lib/diagrams/nodes/cards/card-node.component.d.ts +20 -0
  88. package/lib/diagrams/nodes/cards/card-node.module.d.ts +18 -0
  89. package/lib/diagrams/nodes/shape/shape-node.component.d.ts +25 -0
  90. package/lib/diagrams/nodes/shape/shape-node.module.d.ts +9 -0
  91. package/lib/index.d.ts +2 -0
  92. package/package.json +17 -71
  93. package/styles.css +28264 -0
  94. package/styles.css.map +1 -0
  95. package/styles.min.css +1 -0
  96. package/styles.min.css.map +1 -0
  97. package/.eslintrc.json +0 -51
  98. package/.storybook/carbon-charts-theme.ts +0 -8
  99. package/.storybook/main.ts +0 -39
  100. package/.storybook/manager-head.html +0 -22
  101. package/.storybook/manager.ts +0 -6
  102. package/.storybook/preview-head.html +0 -6
  103. package/.storybook/preview.ts +0 -42
  104. package/.storybook/tsconfig.json +0 -21
  105. package/.storybook/typings.d.ts +0 -4
  106. package/angular.json +0 -91
  107. package/carbon.yml +0 -277
  108. package/ng-package.json +0 -14
  109. package/src/index.ts +0 -53
  110. package/src/lib/charts/alluvial-chart.component.ts +0 -30
  111. package/src/lib/charts/area-chart-stacked.component.ts +0 -30
  112. package/src/lib/charts/area-chart.component.ts +0 -30
  113. package/src/lib/charts/bar-chart-grouped.component.ts +0 -30
  114. package/src/lib/charts/bar-chart-simple.component.ts +0 -30
  115. package/src/lib/charts/bar-chart-stacked.component.ts +0 -30
  116. package/src/lib/charts/base-chart.component.ts +0 -91
  117. package/src/lib/charts/boxplot-chart.component.ts +0 -30
  118. package/src/lib/charts/bubble-chart.component.ts +0 -30
  119. package/src/lib/charts/bullet-chart.component.ts +0 -30
  120. package/src/lib/charts/charts.module.ts +0 -92
  121. package/src/lib/charts/choropleth.component.ts +0 -33
  122. package/src/lib/charts/circle-pack-chart.component.ts +0 -30
  123. package/src/lib/charts/combo-chart.component.ts +0 -30
  124. package/src/lib/charts/donut-chart.component.ts +0 -30
  125. package/src/lib/charts/gauge-chart.component.ts +0 -30
  126. package/src/lib/charts/heatmap-chart.component.ts +0 -30
  127. package/src/lib/charts/histogram-chart.component.ts +0 -30
  128. package/src/lib/charts/line-chart.component.ts +0 -30
  129. package/src/lib/charts/lollipop-chart.component.ts +0 -30
  130. package/src/lib/charts/meter-chart.component.ts +0 -30
  131. package/src/lib/charts/pie-chart.component.ts +0 -30
  132. package/src/lib/charts/radar-chart.component.ts +0 -30
  133. package/src/lib/charts/scatter-chart.component.ts +0 -30
  134. package/src/lib/charts/tree-chart.component.ts +0 -30
  135. package/src/lib/charts/treemap-chart.component.ts +0 -30
  136. package/src/lib/charts/wordcloud-chart.component.ts +0 -30
  137. package/src/lib/diagrams/config.ts +0 -1
  138. package/src/lib/diagrams/edges/edge.component.ts +0 -41
  139. package/src/lib/diagrams/edges/edge.module.ts +0 -11
  140. package/src/lib/diagrams/edges/marker/marker.component.ts +0 -112
  141. package/src/lib/diagrams/edges/marker/marker.module.ts +0 -43
  142. package/src/lib/diagrams/index.ts +0 -23
  143. package/src/lib/diagrams/nodes/cards/card-node-column.component.ts +0 -22
  144. package/src/lib/diagrams/nodes/cards/card-node-label.component.ts +0 -14
  145. package/src/lib/diagrams/nodes/cards/card-node-subtitle.component.ts +0 -14
  146. package/src/lib/diagrams/nodes/cards/card-node-title.component.ts +0 -14
  147. package/src/lib/diagrams/nodes/cards/card-node.component.ts +0 -98
  148. package/src/lib/diagrams/nodes/cards/card-node.module.ts +0 -32
  149. package/src/lib/diagrams/nodes/shape/shape-node.component.ts +0 -120
  150. package/src/lib/diagrams/nodes/shape/shape-node.module.ts +0 -11
  151. package/src/lib/index.ts +0 -50
  152. package/src/stories/0-api.stories.mdx +0 -69
  153. package/src/stories/1-color-palette.stories.mdx +0 -73
  154. package/src/stories/2-combo-charts.stories.mdx +0 -107
  155. package/src/stories/3-dual-axes-charts.stories.mdx +0 -51
  156. package/src/stories/4-event-listeners.stories.mdx +0 -26
  157. package/src/stories/5-tabular-data-format.stories.mdx +0 -132
  158. package/src/stories/6-themes.stories.mdx +0 -50
  159. package/src/stories/all.stories.ts +0 -104
  160. package/src/stories/angular.stories.mdx +0 -136
  161. package/src/stories/diagrams/0-diagrams-start-here.stories.ts +0 -219
  162. package/src/stories/diagrams/diagrams-edges-marker.stories.ts +0 -189
  163. package/src/stories/diagrams/diagrams-edges.stories.ts +0 -177
  164. package/src/stories/diagrams/diagrams-nodes-card.stories.ts +0 -245
  165. package/src/stories/diagrams/diagrams-nodes-shape.stories.ts +0 -141
  166. package/src/stories/diagrams/utils.ts +0 -5
  167. package/src/test.ts +0 -28
  168. package/tsconfig.json +0 -43
  169. package/tsconfig.lib.json +0 -14
  170. package/tsconfig.lib.prod.json +0 -11
  171. package/tsconfig.spec.json +0 -17
  172. package/tsconfig.vite.json +0 -13
  173. package/vite.config.ts +0 -22
package/carbon.yml DELETED
@@ -1,277 +0,0 @@
1
- # yaml-language-server: $schema=https://unpkg.com/@carbon-platform/schemas@v1/carbon-resources.schema.json
2
- library:
3
- id: carbon-charts-angular
4
- name: Carbon Charts Angular
5
- description:
6
- Tell accurate stories around data with beautiful and accessible
7
- visualizations.
8
- inherits: carbon-charts
9
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
10
- demoLinks:
11
- - type: storybook
12
- name: Storybook
13
- action: link
14
- url: https://charts.carbondesignsystem.com/angular
15
- assets:
16
- alluvial:
17
- status: stable
18
- framework: angular
19
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#alluvialsankey-diagrams
20
- demoLinks:
21
- - type: storybook
22
- name: Storybook
23
- action: link
24
- url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-alluvial
25
- area-simple:
26
- status: stable
27
- framework: angular
28
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#area-(simple)
29
- demoLinks:
30
- - type: storybook
31
- name: Storybook
32
- action: link
33
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-area-simple
34
- area-stacked:
35
- status: stable
36
- framework: angular
37
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#area-(stacked)
38
- demoLinks:
39
- - type: storybook
40
- name: Storybook
41
- action: link
42
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-area-stacked
43
- bar-floating:
44
- status: stable
45
- framework: angular
46
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bar-(floating)
47
- demoLinks:
48
- - type: storybook
49
- name: Storybook
50
- action: link
51
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-floating
52
- bar-grouped:
53
- status: stable
54
- framework: angular
55
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bar-(grouped)
56
- demoLinks:
57
- - type: storybook
58
- name: Storybook
59
- action: link
60
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-grouped
61
- bar-simple:
62
- status: stable
63
- framework: angular
64
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bar-(simple)
65
- demoLinks:
66
- - type: storybook
67
- name: Storybook
68
- action: link
69
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-simple
70
- bar-stacked:
71
- status: stable
72
- framework: angular
73
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#bar-(stacked)
74
- demoLinks:
75
- - type: storybook
76
- name: Storybook
77
- action: link
78
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bar-stacked
79
- boxplot:
80
- status: stable
81
- framework: angular
82
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#boxplot
83
- demoLinks:
84
- - type: storybook
85
- name: Storybook
86
- action: link
87
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-boxplot
88
- bubble:
89
- status: stable
90
- framework: angular
91
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#bubble
92
- demoLinks:
93
- - type: storybook
94
- name: Storybook
95
- action: link
96
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bubble
97
- bullet:
98
- status: stable
99
- framework: angular
100
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#bullet
101
- demoLinks:
102
- - type: storybook
103
- name: Storybook
104
- action: link
105
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-bullet
106
- circle-pack:
107
- status: stable
108
- framework: angular
109
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#circle-packs
110
- demoLinks:
111
- - type: storybook
112
- name: Storybook
113
- action: link
114
- url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-circle-pack
115
- combo:
116
- status: stable
117
- framework: angular
118
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
119
- demoLinks:
120
- - type: storybook
121
- name: Storybook
122
- action: link
123
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-combo
124
- donut:
125
- status: stable
126
- framework: angular
127
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#donut
128
- demoLinks:
129
- - type: storybook
130
- name: Storybook
131
- action: link
132
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-donut
133
- gauge:
134
- status: stable
135
- framework: angular
136
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#gauge
137
- demoLinks:
138
- - type: storybook
139
- name: Storybook
140
- action: link
141
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-gauge
142
- heatmap:
143
- status: stable
144
- framework: angular
145
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#heat-maps
146
- demoLinks:
147
- - type: storybook
148
- name: Storybook
149
- action: link
150
- url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-heatmap
151
- histogram:
152
- status: stable
153
- framework: angular
154
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#histogram
155
- demoLinks:
156
- - type: storybook
157
- name: Storybook
158
- action: link
159
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-histogram
160
- line:
161
- status: stable
162
- framework: angular
163
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#line
164
- demoLinks:
165
- - type: storybook
166
- name: Storybook
167
- action: link
168
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-line
169
- lollipop:
170
- status: stable
171
- framework: angular
172
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#lollipop
173
- demoLinks:
174
- - type: storybook
175
- name: Storybook
176
- action: link
177
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-lollipop
178
- meter:
179
- status: stable
180
- framework: angular
181
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#meter
182
- demoLinks:
183
- - type: storybook
184
- name: Storybook
185
- action: link
186
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-meter
187
- meter-proportional:
188
- status: stable
189
- framework: angular
190
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts/#meter
191
- demoLinks:
192
- - type: storybook
193
- name: Storybook
194
- action: link
195
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-meter-proportional
196
- network-diagram:
197
- status: stable
198
- framework: angular
199
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#network-diagrams
200
- demoLinks:
201
- - type: storybook
202
- name: Storybook
203
- action: link
204
- url: https://charts.carbondesignsystem.com/angular/?path=/story/diagrams
205
- pie:
206
- status: stable
207
- framework: angular
208
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#pie
209
- demoLinks:
210
- - type: storybook
211
- name: Storybook
212
- action: link
213
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-pie
214
- radar:
215
- status: stable
216
- framework: angular
217
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#radar
218
- demoLinks:
219
- - type: storybook
220
- name: Storybook
221
- action: link
222
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-radar
223
- scatter:
224
- name: Scatter
225
- status: stable
226
- framework: angular
227
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#scatter
228
- demoLinks:
229
- - type: storybook
230
- name: Storybook
231
- action: link
232
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-scatter
233
- sparkline:
234
- status: stable
235
- framework: angular
236
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
237
- demoLinks:
238
- - type: storybook
239
- name: Storybook
240
- action: link
241
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-sparkline
242
- step:
243
- status: stable
244
- framework: angular
245
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/getting-started
246
- demoLinks:
247
- - type: storybook
248
- name: Storybook
249
- action: link
250
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-step
251
- tree:
252
- status: stable
253
- framework: angular
254
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#tree-diagrams
255
- demoLinks:
256
- - type: storybook
257
- name: Storybook
258
- action: link
259
- url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-tree
260
- treemap:
261
- status: stable
262
- framework: angular
263
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/complex-charts#tree-maps
264
- demoLinks:
265
- - type: storybook
266
- name: Storybook
267
- action: link
268
- url: https://charts.carbondesignsystem.com/angular/?path=/story/complex-charts-treemap
269
- word-cloud:
270
- status: stable
271
- framework: angular
272
- externalDocsUrl: https://www.carbondesignsystem.com/data-visualization/simple-charts#word-cloud
273
- demoLinks:
274
- - type: storybook
275
- name: Storybook
276
- action: link
277
- url: https://charts.carbondesignsystem.com/angular/?path=/story/simple-charts-word-cloud
package/ng-package.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "./dist",
4
- "lib": {
5
- "entryFile": "src/index.ts"
6
- },
7
- "allowedNonPeerDependencies": [
8
- "@angular/common",
9
- "@angular/core",
10
- "@carbon/charts",
11
- "@carbon/icons-angular",
12
- "@carbon/telemetry"
13
- ]
14
- }
package/src/index.ts DELETED
@@ -1,53 +0,0 @@
1
- /*
2
- * Public API Surface of charts-angular
3
- */
4
-
5
- export {
6
- // charts
7
- AlluvialChartComponent,
8
- AreaChartComponent,
9
- BaseChartComponent,
10
- BoxplotChartComponent,
11
- BubbleChartComponent,
12
- BulletChartComponent,
13
- ChartsModule, // <-- Module
14
- CirclePackChartComponent,
15
- ComboChartComponent,
16
- DonutChartComponent,
17
- ExperimentalChoroplethChartComponent,
18
- GaugeChartComponent,
19
- GroupedBarChartComponent,
20
- HeatmapChartComponent,
21
- HistogramChartComponent,
22
- LineChartComponent,
23
- LollipopChartComponent,
24
- MeterChartComponent,
25
- PieChartComponent,
26
- RadarChartComponent,
27
- ScatterChartComponent,
28
- SimpleBarChartComponent,
29
- StackedAreaChartComponent,
30
- StackedBarChartComponent,
31
- TreeChartComponent,
32
- TreemapChartComponent,
33
- WordCloudChartComponent,
34
- // diagrams
35
- CardNodeColumnComponent,
36
- CardNodeComponent,
37
- CardNodeLabelComponent,
38
- CardNodeSubtitleComponent,
39
- CardNodeTitleComponent,
40
- CardNodeModule, // <-- Module
41
- EdgeComponent,
42
- EdgeModule, // <-- Module
43
- MarkerArrowLeftComponent,
44
- MarkerArrowRightComponent,
45
- MarkerComponent,
46
- MarkerDiamondComponent,
47
- MarkerModule, // <-- Module
48
- MarkerShapeNodeComponent,
49
- MarkerSquareComponent,
50
- MarkerTeeComponent,
51
- ShapeNodeComponent,
52
- ShapeNodeModule // <-- Module
53
- } from './lib'
@@ -1,30 +0,0 @@
1
- import { Component, AfterViewInit } from '@angular/core'
2
- import { BaseChartComponent } from './base-chart.component'
3
- import {
4
- AlluvialChart as AlluvialChartCore,
5
- type AlluvialChartOptions,
6
- type ChartTabularData
7
- } from '@carbon/charts'
8
-
9
- /**
10
- * Wrapper around `Alluvial` in carbon charts library
11
- *
12
- * Most functions just call their equivalent from the chart library.
13
- */
14
- @Component({
15
- selector: 'ibm-alluvial-chart',
16
- template: ``
17
- })
18
- export class AlluvialChartComponent extends BaseChartComponent implements AfterViewInit {
19
- /**
20
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
21
- */
22
- override ngAfterViewInit() {
23
- this.chart = new AlluvialChartCore(this.elementRef.nativeElement, {
24
- data: this.data as ChartTabularData,
25
- options: this.options as AlluvialChartOptions
26
- })
27
-
28
- Object.assign(this, this.chart)
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- import { Component, AfterViewInit } from '@angular/core'
2
- import { BaseChartComponent } from './base-chart.component'
3
- import {
4
- StackedAreaChart as StackedAreaChartCore,
5
- type StackedAreaChartOptions,
6
- type ChartTabularData
7
- } from '@carbon/charts'
8
-
9
- /**
10
- * Wrapper around `StackedAreaChart` in carbon charts library
11
- *
12
- * Most functions just call their equivalent from the chart library.
13
- */
14
- @Component({
15
- selector: 'ibm-stacked-area-chart',
16
- template: ``
17
- })
18
- export class StackedAreaChartComponent extends BaseChartComponent implements AfterViewInit {
19
- /**
20
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
21
- */
22
- override ngAfterViewInit() {
23
- this.chart = new StackedAreaChartCore(this.elementRef.nativeElement, {
24
- data: this.data as ChartTabularData,
25
- options: this.options as StackedAreaChartOptions
26
- })
27
-
28
- Object.assign(this, this.chart)
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- import { Component, AfterViewInit } from '@angular/core'
2
- import { BaseChartComponent } from './base-chart.component'
3
- import {
4
- AreaChart as AreaChartCore,
5
- type AreaChartOptions,
6
- type ChartTabularData
7
- } from '@carbon/charts'
8
-
9
- /**
10
- * Wrapper around `AreaChart` in carbon charts library
11
- *
12
- * Most functions just call their equivalent from the chart library.
13
- */
14
- @Component({
15
- selector: 'ibm-area-chart',
16
- template: ``
17
- })
18
- export class AreaChartComponent extends BaseChartComponent implements AfterViewInit {
19
- /**
20
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
21
- */
22
- override ngAfterViewInit() {
23
- this.chart = new AreaChartCore(this.elementRef.nativeElement, {
24
- data: this.data as ChartTabularData,
25
- options: this.options as AreaChartOptions
26
- })
27
-
28
- Object.assign(this, this.chart)
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- import { Component, AfterViewInit } from '@angular/core'
2
- import { BaseChartComponent } from './base-chart.component'
3
- import {
4
- GroupedBarChart as GroupedBarChartCore,
5
- type ChartTabularData,
6
- type BarChartOptions
7
- } from '@carbon/charts'
8
-
9
- /**
10
- * Wrapper around `GroupedBarChart` in carbon charts library
11
- *
12
- * Most functions just call their equivalent from the chart library.
13
- */
14
- @Component({
15
- selector: 'ibm-grouped-bar-chart',
16
- template: ``
17
- })
18
- export class GroupedBarChartComponent extends BaseChartComponent implements AfterViewInit {
19
- /**
20
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
21
- */
22
- override ngAfterViewInit() {
23
- this.chart = new GroupedBarChartCore(this.elementRef.nativeElement, {
24
- data: this.data as ChartTabularData,
25
- options: this.options as BarChartOptions
26
- })
27
-
28
- Object.assign(this, this.chart)
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- import { Component, AfterViewInit } from '@angular/core'
2
- import { BaseChartComponent } from './base-chart.component'
3
- import {
4
- SimpleBarChart as SimpleBarChartCore,
5
- type ChartTabularData,
6
- type BarChartOptions
7
- } from '@carbon/charts'
8
-
9
- /**
10
- * Wrapper around `SimpleBarChart` in carbon charts library
11
- *
12
- * Most functions just call their equivalent from the chart library.
13
- */
14
- @Component({
15
- selector: 'ibm-simple-bar-chart',
16
- template: ``
17
- })
18
- export class SimpleBarChartComponent extends BaseChartComponent implements AfterViewInit {
19
- /**
20
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
21
- */
22
- override ngAfterViewInit() {
23
- this.chart = new SimpleBarChartCore(this.elementRef.nativeElement, {
24
- data: this.data as ChartTabularData,
25
- options: this.options as BarChartOptions
26
- })
27
-
28
- Object.assign(this, this.chart)
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- import { Component, AfterViewInit } from '@angular/core'
2
- import { BaseChartComponent } from './base-chart.component'
3
- import {
4
- StackedBarChart as StackedBarChartCore,
5
- type ChartTabularData,
6
- type StackedBarChartOptions
7
- } from '@carbon/charts'
8
-
9
- /**
10
- * Wrapper around `StackedBarChart` in carbon charts library
11
- *
12
- * Most functions just call their equivalent from the chart library.
13
- */
14
- @Component({
15
- selector: 'ibm-stacked-bar-chart',
16
- template: ``
17
- })
18
- export class StackedBarChartComponent extends BaseChartComponent implements AfterViewInit {
19
- /**
20
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
21
- */
22
- override ngAfterViewInit() {
23
- this.chart = new StackedBarChartCore(this.elementRef.nativeElement, {
24
- data: this.data as ChartTabularData,
25
- options: this.options as StackedBarChartOptions
26
- })
27
-
28
- Object.assign(this, this.chart)
29
- }
30
- }
@@ -1,91 +0,0 @@
1
- import { Component, Input, OnInit, AfterViewInit, ElementRef } from '@angular/core'
2
- import type { BaseChartOptions, ChartTabularData, Charts } from '@carbon/charts'
3
-
4
- /**
5
- * Wrapper around `BaseChart` in carbon charts library
6
- *
7
- * Most functions just call their equivalent from the chart library.
8
- */
9
- @Component({
10
- selector: 'ibm-base-chart',
11
- template: ``
12
- })
13
- export class BaseChartComponent implements AfterViewInit, OnInit {
14
- /**
15
- * Data passed to charts library for displaying
16
- */
17
- @Input() set data(newData: ChartTabularData) {
18
- // If data already exists, that means the chart has been initialized
19
- const dataExistsAlready = !!this._data
20
-
21
- this._data = newData
22
-
23
- if (dataExistsAlready) {
24
- this.chart?.model.setData(newData)
25
- }
26
- }
27
-
28
- get data(): ChartTabularData {
29
- return this._data
30
- }
31
-
32
- /**
33
- * Options passed to charts library
34
- */
35
- @Input() set options(newOptions: BaseChartOptions) {
36
- // If data already exists, that means the chart has been initialized
37
- const optionsExistAlready = !!this._options
38
-
39
- this._options = newOptions
40
-
41
- if (optionsExistAlready) {
42
- this.chart?.model.setOptions(newOptions)
43
- }
44
- }
45
-
46
- get options() {
47
- return this._options
48
- }
49
-
50
- /**
51
- * Chart width
52
- */
53
- @Input() width?: string
54
-
55
- /**
56
- * Chart height
57
- */
58
- @Input() height?: string
59
-
60
- /**
61
- * Chart object instance
62
- *
63
- * You can use this to do whatever you would normally do with a chart if you used
64
- * charts library directly.
65
- */
66
- chart!: Charts
67
-
68
- private _data!: ChartTabularData
69
- private _options!: BaseChartOptions
70
-
71
- constructor(protected elementRef: ElementRef) {}
72
-
73
- ngOnInit() {
74
- // Width prop is mandatory for the wrappers
75
- if (this.width) {
76
- this.options.width = this.width
77
- }
78
-
79
- // Height prop is mandatory for the wrappers
80
- if (this.height) {
81
- this.options.height = this.height
82
- }
83
- }
84
-
85
- /**
86
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
87
- */
88
- ngAfterViewInit() {
89
- console.log('Class that extended BaseChartComponent did not implement ngAfterViewInit().')
90
- }
91
- }
@@ -1,30 +0,0 @@
1
- import { Component, AfterViewInit } from '@angular/core'
2
- import { BaseChartComponent } from './base-chart.component'
3
- import {
4
- BoxplotChart as BoxplotChartCore,
5
- type ChartTabularData,
6
- type BoxplotChartOptions
7
- } from '@carbon/charts'
8
-
9
- /**
10
- * Wrapper around `BoxplotChart` in carbon charts library
11
- *
12
- * Most functions just call their equivalent from the chart library.
13
- */
14
- @Component({
15
- selector: 'ibm-boxplot-chart',
16
- template: ``
17
- })
18
- export class BoxplotChartComponent extends BaseChartComponent implements AfterViewInit {
19
- /**
20
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
21
- */
22
- override ngAfterViewInit() {
23
- this.chart = new BoxplotChartCore(this.elementRef.nativeElement, {
24
- data: this.data as ChartTabularData,
25
- options: this.options as BoxplotChartOptions
26
- })
27
-
28
- Object.assign(this, this.chart)
29
- }
30
- }
@@ -1,30 +0,0 @@
1
- import { Component, AfterViewInit } from '@angular/core'
2
- import { BaseChartComponent } from './base-chart.component'
3
- import {
4
- BubbleChart as BubbleChartCore,
5
- type BubbleChartOptions,
6
- type ChartTabularData
7
- } from '@carbon/charts'
8
-
9
- /**
10
- * Wrapper around `BubbleChart` in carbon charts library
11
- *
12
- * Most functions just call their equivalent from the chart library.
13
- */
14
- @Component({
15
- selector: 'ibm-bubble-chart',
16
- template: ``
17
- })
18
- export class BubbleChartComponent extends BaseChartComponent implements AfterViewInit {
19
- /**
20
- * Runs after view init to create a chart, attach it to `elementRef` and draw it.
21
- */
22
- override ngAfterViewInit() {
23
- this.chart = new BubbleChartCore(this.elementRef.nativeElement, {
24
- data: this.data as ChartTabularData,
25
- options: this.options as BubbleChartOptions
26
- })
27
-
28
- Object.assign(this, this.chart)
29
- }
30
- }