genesys-spark-chart-components 4.12.1-beta.1 → 4.29.1-beta.0

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 (90) hide show
  1. package/LICENSE +2 -2
  2. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  3. package/dist/cjs/genesys-chart-webcomponents.cjs.js +5 -3
  4. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +124 -123
  5. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +213 -212
  6. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +120 -119
  7. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +96 -95
  8. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +126 -125
  9. package/dist/cjs/gux-visualization-beta.cjs.entry.js +213 -213
  10. package/dist/cjs/{index-1e13a15f.js → index-a4712860.js} +185 -63
  11. package/dist/cjs/loader.cjs.js +4 -2
  12. package/dist/cjs/log-error-28c7064e.js +21 -0
  13. package/dist/cjs/{usage-30f04ec3.js → usage-c351d7fb.js} +63 -63
  14. package/dist/collection/collection-manifest.json +2 -2
  15. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +324 -324
  16. package/dist/collection/components/beta/gux-chart-column/gux-chart-column.locale.js +88 -88
  17. package/dist/collection/components/beta/gux-chart-column/tests/gux-column-chart.spec.js +16 -16
  18. package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +550 -550
  19. package/dist/collection/components/beta/gux-chart-donut/tests/gux-chart-donut.spec.js +5 -5
  20. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +375 -375
  21. package/dist/collection/components/beta/gux-chart-line/gux-chart-line.locale.js +88 -88
  22. package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.e2e.js +13 -13
  23. package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.spec.js +16 -16
  24. package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +266 -266
  25. package/dist/collection/components/beta/gux-chart-pie/tests/gux-chart-pie.spec.js +5 -5
  26. package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +347 -347
  27. package/dist/collection/components/beta/gux-chart-scatter-plot/tests/gux-chart-scatter-plot.spec.js +27 -27
  28. package/dist/collection/components/beta/gux-visualization/gux-visualization.js +133 -133
  29. package/dist/collection/components/beta/gux-visualization/gux-visualization.locale.js +88 -88
  30. package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.e2e.js +25 -25
  31. package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.spec.js +26 -26
  32. package/dist/collection/i18n/fetchResources.js +7 -7
  33. package/dist/collection/i18n/index.js +56 -56
  34. package/dist/collection/test/axeConfig.js +4 -4
  35. package/dist/collection/test/e2eTestUtils.js +14 -14
  36. package/dist/collection/test/specTestUtils.js +5 -5
  37. package/dist/collection/utils/dom/get-closest-element.js +12 -12
  38. package/dist/collection/utils/error/log-error.js +2 -2
  39. package/dist/collection/utils/theme/color-palette.js +10 -10
  40. package/dist/collection/utils/tracking/usage.js +47 -47
  41. package/dist/collection/utils/tracking/usage.spec.js +108 -108
  42. package/dist/esm/app-globals-0f993ce5.js +3 -0
  43. package/dist/esm/genesys-chart-webcomponents.js +6 -4
  44. package/dist/esm/gux-chart-column-beta.entry.js +124 -123
  45. package/dist/esm/gux-chart-donut-beta.entry.js +213 -212
  46. package/dist/esm/gux-chart-line-beta.entry.js +120 -119
  47. package/dist/esm/gux-chart-pie-beta.entry.js +96 -95
  48. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +126 -125
  49. package/dist/esm/gux-visualization-beta.entry.js +213 -213
  50. package/dist/esm/{index-701d93cf.js → index-82fd7406.js} +185 -63
  51. package/dist/esm/loader.js +5 -3
  52. package/dist/esm/log-error-ff9bdda4.js +18 -0
  53. package/dist/esm/{usage-61eee3bd.js → usage-6655c04e.js} +63 -63
  54. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.css +1 -1
  55. package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
  56. package/dist/genesys-chart-webcomponents/p-1bc0cc3a.js +2 -0
  57. package/dist/genesys-chart-webcomponents/{p-d4a346df.entry.js → p-291b128b.entry.js} +1 -1
  58. package/dist/genesys-chart-webcomponents/p-51f2502a.entry.js +11 -0
  59. package/dist/genesys-chart-webcomponents/{p-137f5b8f.entry.js → p-64f0b385.entry.js} +1 -1
  60. package/dist/genesys-chart-webcomponents/{p-b5179379.entry.js → p-65020b8a.entry.js} +1 -1
  61. package/dist/genesys-chart-webcomponents/{p-d9928f8c.entry.js → p-83283e73.entry.js} +1 -1
  62. package/dist/genesys-chart-webcomponents/p-e1255160.js +1 -0
  63. package/dist/genesys-chart-webcomponents/{p-c3aa8578.entry.js → p-e42dd3ba.entry.js} +1 -1
  64. package/dist/genesys-chart-webcomponents/{p-97c45977.js → p-f6832775.js} +1 -1
  65. package/dist/stencil-wrapper.js +1 -1
  66. package/dist/types/components/beta/gux-chart-column/gux-chart-column.d.ts +45 -45
  67. package/dist/types/components/beta/gux-chart-column/gux-chart-column.locale.d.ts +20 -20
  68. package/dist/types/components/beta/gux-chart-donut/gux-chart-donut.d.ts +30 -30
  69. package/dist/types/components/beta/gux-chart-line/gux-chart-line.d.ts +44 -44
  70. package/dist/types/components/beta/gux-chart-line/gux-chart-line.locale.d.ts +20 -20
  71. package/dist/types/components/beta/gux-chart-pie/gux-chart-pie.d.ts +19 -19
  72. package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +48 -48
  73. package/dist/types/components/beta/gux-visualization/gux-visualization.d.ts +13 -13
  74. package/dist/types/components/beta/gux-visualization/gux-visualization.locale.d.ts +20 -20
  75. package/dist/types/components.d.ts +12 -0
  76. package/dist/types/i18n/fetchResources.d.ts +3 -3
  77. package/dist/types/i18n/index.d.ts +1 -1
  78. package/dist/types/stencil-public-runtime.d.ts +10 -0
  79. package/dist/types/stencil-wrapper.d.ts +1 -1
  80. package/dist/types/test/axeConfig.d.ts +4 -4
  81. package/dist/types/test/e2eTestUtils.d.ts +4 -4
  82. package/dist/types/test/jestMatcherUtils.d.ts +4 -4
  83. package/dist/types/utils/tracking/usage.d.ts +11 -11
  84. package/package.json +24 -24
  85. package/dist/cjs/log-error-c46b4b4c.js +0 -21
  86. package/dist/component-specs.json +0 -187
  87. package/dist/esm/log-error-0fc61f6f.js +0 -18
  88. package/dist/genesys-chart-webcomponents/p-3e4b3dbc.js +0 -2
  89. package/dist/genesys-chart-webcomponents/p-b901e9e0.entry.js +0 -11
  90. /package/dist/genesys-chart-webcomponents/{p-82f0ea01.js → p-f50e3789.js} +0 -0
@@ -4,340 +4,340 @@ import { trackComponent } from "../../../utils/tracking/usage";
4
4
  import { VISUALIZATION_COLORS } from "../../../utils/theme/color-palette";
5
5
  import { logError } from "../../../utils/error/log-error";
6
6
  export class GuxColumnChart {
7
- constructor() {
8
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
- this.baseChartSpec = {
10
- $schema: 'https://vega.github.io/schema/vega-lite/v5.json',
11
- mark: { type: 'bar' },
12
- config: {
13
- axis: {
14
- ticks: false,
15
- titlePadding: 8
16
- },
17
- axisX: {
18
- labelAngle: 0
19
- },
20
- scale: {
21
- bandPaddingInner: 0.4,
22
- bandPaddingOuter: 0.4 // padding between leftmost/rightmost column/bar from axes
23
- },
24
- legend: {
25
- symbolType: 'circle'
26
- },
27
- bar: {
28
- color: VISUALIZATION_COLORS[0]
7
+ constructor() {
8
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
+ this.baseChartSpec = {
10
+ $schema: 'https://vega.github.io/schema/vega-lite/v5.json',
11
+ mark: { type: 'bar' },
12
+ config: {
13
+ axis: {
14
+ ticks: false,
15
+ titlePadding: 8
16
+ },
17
+ axisX: {
18
+ labelAngle: 0
19
+ },
20
+ scale: {
21
+ bandPaddingInner: 0.4, // padding between columns / bars
22
+ bandPaddingOuter: 0.4 // padding between leftmost/rightmost column/bar from axes
23
+ },
24
+ legend: {
25
+ symbolType: 'circle'
26
+ },
27
+ bar: {
28
+ color: VISUALIZATION_COLORS[0]
29
+ }
30
+ },
31
+ encoding: {
32
+ x: { type: 'nominal' },
33
+ y: { type: 'quantitative' },
34
+ tooltip: { aggregate: 'count', type: 'quantitative' }
35
+ }
36
+ };
37
+ this.chartData = undefined;
38
+ this.xTickLabelSlant = undefined;
39
+ this.includeLegend = undefined;
40
+ this.xFieldName = undefined;
41
+ this.yFieldName = undefined;
42
+ this.xAxisTitle = undefined;
43
+ this.yAxisTitle = undefined;
44
+ this.legendTitle = undefined;
45
+ this.legendPosition = 'right';
46
+ this.chartLayers = undefined;
47
+ this.embedOptions = undefined;
48
+ }
49
+ parseData() {
50
+ if (!this.xFieldName || !this.yFieldName) {
51
+ logError(this.root, 'requires x-field-name and y-field-name');
52
+ }
53
+ let chartData = {};
54
+ if (this.chartData) {
55
+ chartData = { data: this.chartData };
56
+ }
57
+ if (this.xTickLabelSlant) {
58
+ this.baseChartSpec.config.axisX.labelAngle = 45;
59
+ }
60
+ if (this.includeLegend) {
61
+ this.baseChartSpec.encoding.color = { field: 'category' };
62
+ }
63
+ if (this.legendPosition) {
64
+ this.baseChartSpec.config.legend.orient = this.legendPosition;
65
+ }
66
+ const xFieldName = this.xFieldName;
67
+ const yFieldName = this.yFieldName;
68
+ const xAxisTitle = this.xAxisTitle;
69
+ const yAxisTitle = this.yAxisTitle;
70
+ const legendTitle = this.legendTitle;
71
+ if (this.chartLayers) {
72
+ const layers = this.chartLayers.map(layerName => {
73
+ return {
74
+ mark: 'bar',
75
+ transform: [
76
+ {
77
+ filter: { field: 'series', equal: layerName }
78
+ }
79
+ ],
80
+ encoding: {
81
+ x: {
82
+ field: xFieldName,
83
+ type: 'nominal'
84
+ },
85
+ y: {
86
+ field: yFieldName,
87
+ type: 'quantitative'
88
+ }
89
+ }
90
+ };
91
+ });
92
+ this.baseChartSpec.layer = layers;
29
93
  }
30
- },
31
- encoding: {
32
- x: { type: 'nominal' },
33
- y: { type: 'quantitative' },
34
- tooltip: { aggregate: 'count', type: 'quantitative' }
35
- }
36
- };
37
- this.chartData = undefined;
38
- this.xTickLabelSlant = undefined;
39
- this.includeLegend = undefined;
40
- this.xFieldName = undefined;
41
- this.yFieldName = undefined;
42
- this.xAxisTitle = undefined;
43
- this.yAxisTitle = undefined;
44
- this.legendTitle = undefined;
45
- this.legendPosition = 'right';
46
- this.chartLayers = undefined;
47
- this.embedOptions = undefined;
48
- }
49
- parseData() {
50
- if (!this.xFieldName || !this.yFieldName) {
51
- logError(this.root, 'requires x-field-name and y-field-name');
94
+ else {
95
+ if (xFieldName) {
96
+ this.baseChartSpec.encoding.x.field = xFieldName;
97
+ }
98
+ if (yFieldName) {
99
+ this.baseChartSpec.encoding.y.field = yFieldName;
100
+ }
101
+ if (xAxisTitle) {
102
+ this.baseChartSpec.encoding.x.title = xAxisTitle;
103
+ }
104
+ if (yAxisTitle) {
105
+ this.baseChartSpec.encoding.y.title = yAxisTitle;
106
+ }
107
+ if (legendTitle) {
108
+ this.baseChartSpec.encoding.color.title = legendTitle;
109
+ }
110
+ }
111
+ // Set up colors for legend and bars
112
+ const rangeField = xFieldName;
113
+ const rangeConfig = {
114
+ [rangeField]: VISUALIZATION_COLORS
115
+ };
116
+ this.baseChartSpec.config.range = rangeConfig;
117
+ const spec = Object.assign(this.baseChartSpec, chartData);
118
+ this.visualizationSpec = spec;
52
119
  }
53
- let chartData = {};
54
- if (this.chartData) {
55
- chartData = { data: this.chartData };
120
+ componentWillLoad() {
121
+ trackComponent(this.root);
122
+ this.parseData();
56
123
  }
57
- if (this.xTickLabelSlant) {
58
- this.baseChartSpec.config.axisX.labelAngle = 45;
124
+ render() {
125
+ return (h("gux-visualization-beta", { key: '204c508da5ccda0059c2500fa91b06ad6ac91c2d', visualizationSpec: this.visualizationSpec }));
59
126
  }
60
- if (this.includeLegend) {
61
- this.baseChartSpec.encoding.color = { field: 'category' };
127
+ static get is() { return "gux-chart-column-beta"; }
128
+ static get encapsulation() { return "shadow"; }
129
+ static get originalStyleUrls() {
130
+ return {
131
+ "$": ["gux-chart-column.scss"]
132
+ };
62
133
  }
63
- if (this.legendPosition) {
64
- this.baseChartSpec.config.legend.orient = this.legendPosition;
134
+ static get styleUrls() {
135
+ return {
136
+ "$": ["gux-chart-column.css"]
137
+ };
65
138
  }
66
- const xFieldName = this.xFieldName;
67
- const yFieldName = this.yFieldName;
68
- const xAxisTitle = this.xAxisTitle;
69
- const yAxisTitle = this.yAxisTitle;
70
- const legendTitle = this.legendTitle;
71
- if (this.chartLayers) {
72
- const layers = this.chartLayers.map(layerName => {
139
+ static get properties() {
73
140
  return {
74
- mark: 'bar',
75
- transform: [
76
- {
77
- filter: { field: 'series', equal: layerName }
78
- }
79
- ],
80
- encoding: {
81
- x: {
82
- field: xFieldName,
83
- type: 'nominal'
141
+ "chartData": {
142
+ "type": "unknown",
143
+ "mutable": false,
144
+ "complexType": {
145
+ "original": "Record<string, any>",
146
+ "resolved": "{ [x: string]: any; }",
147
+ "references": {
148
+ "Record": {
149
+ "location": "global",
150
+ "id": "global::Record"
151
+ }
152
+ }
153
+ },
154
+ "required": false,
155
+ "optional": false,
156
+ "docs": {
157
+ "tags": [],
158
+ "text": "Data to be rendered in the chart.\nData field names must match the values you set in xFieldName and yFieldName"
159
+ }
160
+ },
161
+ "xTickLabelSlant": {
162
+ "type": "boolean",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "boolean",
166
+ "resolved": "boolean",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": false,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": "If true, then make Axis tick label 45 degrees"
174
+ },
175
+ "attribute": "x-tick-label-slant",
176
+ "reflect": false
177
+ },
178
+ "includeLegend": {
179
+ "type": "boolean",
180
+ "mutable": false,
181
+ "complexType": {
182
+ "original": "boolean",
183
+ "resolved": "boolean",
184
+ "references": {}
185
+ },
186
+ "required": false,
187
+ "optional": false,
188
+ "docs": {
189
+ "tags": [],
190
+ "text": ""
191
+ },
192
+ "attribute": "include-legend",
193
+ "reflect": false
194
+ },
195
+ "xFieldName": {
196
+ "type": "string",
197
+ "mutable": false,
198
+ "complexType": {
199
+ "original": "string",
200
+ "resolved": "string",
201
+ "references": {}
202
+ },
203
+ "required": false,
204
+ "optional": false,
205
+ "docs": {
206
+ "tags": [],
207
+ "text": "Name for the data field to use to populate the chart's x-axis\ne.g. xFieldName of \"category\" will map any \"category\" fields in chartData to the x-axis"
208
+ },
209
+ "attribute": "x-field-name",
210
+ "reflect": false
211
+ },
212
+ "yFieldName": {
213
+ "type": "string",
214
+ "mutable": false,
215
+ "complexType": {
216
+ "original": "string",
217
+ "resolved": "string",
218
+ "references": {}
219
+ },
220
+ "required": false,
221
+ "optional": false,
222
+ "docs": {
223
+ "tags": [],
224
+ "text": "Name for the data field to use to populate the chart's x-axis\ne.g. yFieldName of \"value\" will map any \"value\" fields in chartData to the y-axis"
225
+ },
226
+ "attribute": "y-field-name",
227
+ "reflect": false
228
+ },
229
+ "xAxisTitle": {
230
+ "type": "string",
231
+ "mutable": false,
232
+ "complexType": {
233
+ "original": "string",
234
+ "resolved": "string",
235
+ "references": {}
236
+ },
237
+ "required": false,
238
+ "optional": false,
239
+ "docs": {
240
+ "tags": [],
241
+ "text": "Title to display along the x-axis"
242
+ },
243
+ "attribute": "x-axis-title",
244
+ "reflect": false
245
+ },
246
+ "yAxisTitle": {
247
+ "type": "string",
248
+ "mutable": false,
249
+ "complexType": {
250
+ "original": "string",
251
+ "resolved": "string",
252
+ "references": {}
253
+ },
254
+ "required": false,
255
+ "optional": false,
256
+ "docs": {
257
+ "tags": [],
258
+ "text": "Title to display along the y-axis"
259
+ },
260
+ "attribute": "y-axis-title",
261
+ "reflect": false
84
262
  },
85
- y: {
86
- field: yFieldName,
87
- type: 'quantitative'
263
+ "legendTitle": {
264
+ "type": "string",
265
+ "mutable": false,
266
+ "complexType": {
267
+ "original": "string",
268
+ "resolved": "string",
269
+ "references": {}
270
+ },
271
+ "required": false,
272
+ "optional": false,
273
+ "docs": {
274
+ "tags": [],
275
+ "text": "Title to display above the optional legend"
276
+ },
277
+ "attribute": "legend-title",
278
+ "reflect": false
279
+ },
280
+ "legendPosition": {
281
+ "type": "string",
282
+ "mutable": false,
283
+ "complexType": {
284
+ "original": "| 'left'\n | 'right'\n | 'top'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-right'\n | 'none'",
285
+ "resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"none\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
286
+ "references": {}
287
+ },
288
+ "required": false,
289
+ "optional": false,
290
+ "docs": {
291
+ "tags": [],
292
+ "text": ""
293
+ },
294
+ "attribute": "legend-position",
295
+ "reflect": false,
296
+ "defaultValue": "'right'"
297
+ },
298
+ "chartLayers": {
299
+ "type": "unknown",
300
+ "mutable": false,
301
+ "complexType": {
302
+ "original": "string[]",
303
+ "resolved": "string[]",
304
+ "references": {}
305
+ },
306
+ "required": false,
307
+ "optional": false,
308
+ "docs": {
309
+ "tags": [],
310
+ "text": "List specifying the order of optional chart layers.\nFor correct chart layering, each chartData entry must also include a \"series\" field with a value indicating which layer the entry belongs to, e.g 'series': 'group1'"
311
+ }
312
+ },
313
+ "embedOptions": {
314
+ "type": "unknown",
315
+ "mutable": false,
316
+ "complexType": {
317
+ "original": "EmbedOptions",
318
+ "resolved": "EmbedOptions<string, Renderers>",
319
+ "references": {
320
+ "EmbedOptions": {
321
+ "location": "import",
322
+ "path": "vega-embed",
323
+ "id": "../../node_modules/vega-embed/build/vega-embed.module.d.ts::EmbedOptions"
324
+ }
325
+ }
326
+ },
327
+ "required": false,
328
+ "optional": false,
329
+ "docs": {
330
+ "tags": [],
331
+ "text": ""
332
+ }
88
333
  }
89
- }
90
334
  };
91
- });
92
- this.baseChartSpec.layer = layers;
93
335
  }
94
- else {
95
- if (xFieldName) {
96
- this.baseChartSpec.encoding.x.field = xFieldName;
97
- }
98
- if (yFieldName) {
99
- this.baseChartSpec.encoding.y.field = yFieldName;
100
- }
101
- if (xAxisTitle) {
102
- this.baseChartSpec.encoding.x.title = xAxisTitle;
103
- }
104
- if (yAxisTitle) {
105
- this.baseChartSpec.encoding.y.title = yAxisTitle;
106
- }
107
- if (legendTitle) {
108
- this.baseChartSpec.encoding.color.title = legendTitle;
109
- }
336
+ static get elementRef() { return "root"; }
337
+ static get watchers() {
338
+ return [{
339
+ "propName": "chartData",
340
+ "methodName": "parseData"
341
+ }];
110
342
  }
111
- // Set up colors for legend and bars
112
- const rangeField = xFieldName;
113
- const rangeConfig = {
114
- [rangeField]: VISUALIZATION_COLORS
115
- };
116
- this.baseChartSpec.config.range = rangeConfig;
117
- const spec = Object.assign(this.baseChartSpec, chartData);
118
- this.visualizationSpec = spec;
119
- }
120
- componentWillLoad() {
121
- trackComponent(this.root);
122
- this.parseData();
123
- }
124
- render() {
125
- return (h("gux-visualization-beta", { visualizationSpec: this.visualizationSpec }));
126
- }
127
- static get is() { return "gux-chart-column-beta"; }
128
- static get encapsulation() { return "shadow"; }
129
- static get originalStyleUrls() {
130
- return {
131
- "$": ["gux-chart-column.scss"]
132
- };
133
- }
134
- static get styleUrls() {
135
- return {
136
- "$": ["gux-chart-column.css"]
137
- };
138
- }
139
- static get properties() {
140
- return {
141
- "chartData": {
142
- "type": "unknown",
143
- "mutable": false,
144
- "complexType": {
145
- "original": "Record<string, any>",
146
- "resolved": "{ [x: string]: any; }",
147
- "references": {
148
- "Record": {
149
- "location": "global",
150
- "id": "global::Record"
151
- }
152
- }
153
- },
154
- "required": false,
155
- "optional": false,
156
- "docs": {
157
- "tags": [],
158
- "text": "Data to be rendered in the chart.\nData field names must match the values you set in xFieldName and yFieldName"
159
- }
160
- },
161
- "xTickLabelSlant": {
162
- "type": "boolean",
163
- "mutable": false,
164
- "complexType": {
165
- "original": "boolean",
166
- "resolved": "boolean",
167
- "references": {}
168
- },
169
- "required": false,
170
- "optional": false,
171
- "docs": {
172
- "tags": [],
173
- "text": "If true, then make Axis tick label 45 degrees"
174
- },
175
- "attribute": "x-tick-label-slant",
176
- "reflect": false
177
- },
178
- "includeLegend": {
179
- "type": "boolean",
180
- "mutable": false,
181
- "complexType": {
182
- "original": "boolean",
183
- "resolved": "boolean",
184
- "references": {}
185
- },
186
- "required": false,
187
- "optional": false,
188
- "docs": {
189
- "tags": [],
190
- "text": ""
191
- },
192
- "attribute": "include-legend",
193
- "reflect": false
194
- },
195
- "xFieldName": {
196
- "type": "string",
197
- "mutable": false,
198
- "complexType": {
199
- "original": "string",
200
- "resolved": "string",
201
- "references": {}
202
- },
203
- "required": false,
204
- "optional": false,
205
- "docs": {
206
- "tags": [],
207
- "text": "Name for the data field to use to populate the chart's x-axis\ne.g. xFieldName of \"category\" will map any \"category\" fields in chartData to the x-axis"
208
- },
209
- "attribute": "x-field-name",
210
- "reflect": false
211
- },
212
- "yFieldName": {
213
- "type": "string",
214
- "mutable": false,
215
- "complexType": {
216
- "original": "string",
217
- "resolved": "string",
218
- "references": {}
219
- },
220
- "required": false,
221
- "optional": false,
222
- "docs": {
223
- "tags": [],
224
- "text": "Name for the data field to use to populate the chart's x-axis\ne.g. yFieldName of \"value\" will map any \"value\" fields in chartData to the y-axis"
225
- },
226
- "attribute": "y-field-name",
227
- "reflect": false
228
- },
229
- "xAxisTitle": {
230
- "type": "string",
231
- "mutable": false,
232
- "complexType": {
233
- "original": "string",
234
- "resolved": "string",
235
- "references": {}
236
- },
237
- "required": false,
238
- "optional": false,
239
- "docs": {
240
- "tags": [],
241
- "text": "Title to display along the x-axis"
242
- },
243
- "attribute": "x-axis-title",
244
- "reflect": false
245
- },
246
- "yAxisTitle": {
247
- "type": "string",
248
- "mutable": false,
249
- "complexType": {
250
- "original": "string",
251
- "resolved": "string",
252
- "references": {}
253
- },
254
- "required": false,
255
- "optional": false,
256
- "docs": {
257
- "tags": [],
258
- "text": "Title to display along the y-axis"
259
- },
260
- "attribute": "y-axis-title",
261
- "reflect": false
262
- },
263
- "legendTitle": {
264
- "type": "string",
265
- "mutable": false,
266
- "complexType": {
267
- "original": "string",
268
- "resolved": "string",
269
- "references": {}
270
- },
271
- "required": false,
272
- "optional": false,
273
- "docs": {
274
- "tags": [],
275
- "text": "Title to display above the optional legend"
276
- },
277
- "attribute": "legend-title",
278
- "reflect": false
279
- },
280
- "legendPosition": {
281
- "type": "string",
282
- "mutable": false,
283
- "complexType": {
284
- "original": "| 'left'\n | 'right'\n | 'top'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-right'\n | 'none'",
285
- "resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"none\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
286
- "references": {}
287
- },
288
- "required": false,
289
- "optional": false,
290
- "docs": {
291
- "tags": [],
292
- "text": ""
293
- },
294
- "attribute": "legend-position",
295
- "reflect": false,
296
- "defaultValue": "'right'"
297
- },
298
- "chartLayers": {
299
- "type": "unknown",
300
- "mutable": false,
301
- "complexType": {
302
- "original": "string[]",
303
- "resolved": "string[]",
304
- "references": {}
305
- },
306
- "required": false,
307
- "optional": false,
308
- "docs": {
309
- "tags": [],
310
- "text": "List specifying the order of optional chart layers.\nFor correct chart layering, each chartData entry must also include a \"series\" field with a value indicating which layer the entry belongs to, e.g 'series': 'group1'"
311
- }
312
- },
313
- "embedOptions": {
314
- "type": "unknown",
315
- "mutable": false,
316
- "complexType": {
317
- "original": "EmbedOptions",
318
- "resolved": "EmbedOptions<string, Renderers>",
319
- "references": {
320
- "EmbedOptions": {
321
- "location": "import",
322
- "path": "vega-embed",
323
- "id": "../../node_modules/vega-embed/build/vega-embed.module.d.ts::EmbedOptions"
324
- }
325
- }
326
- },
327
- "required": false,
328
- "optional": false,
329
- "docs": {
330
- "tags": [],
331
- "text": ""
332
- }
333
- }
334
- };
335
- }
336
- static get elementRef() { return "root"; }
337
- static get watchers() {
338
- return [{
339
- "propName": "chartData",
340
- "methodName": "parseData"
341
- }];
342
- }
343
343
  }