genesys-spark-chart-components 4.12.1-beta.1 → 4.29.0-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-3d9281d1.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-4d835ee1.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-01bbadbf.entry.js +11 -0
  57. package/dist/genesys-chart-webcomponents/{p-137f5b8f.entry.js → p-12eb9928.entry.js} +1 -1
  58. package/dist/genesys-chart-webcomponents/p-1bc0cc3a.js +2 -0
  59. package/dist/genesys-chart-webcomponents/{p-b5179379.entry.js → p-25bdbf17.entry.js} +1 -1
  60. package/dist/genesys-chart-webcomponents/{p-c3aa8578.entry.js → p-74011efc.entry.js} +1 -1
  61. package/dist/genesys-chart-webcomponents/{p-97c45977.js → p-7e62b207.js} +1 -1
  62. package/dist/genesys-chart-webcomponents/p-e1255160.js +1 -0
  63. package/dist/genesys-chart-webcomponents/{p-d9928f8c.entry.js → p-e80b1b1c.entry.js} +1 -1
  64. package/dist/genesys-chart-webcomponents/{p-d4a346df.entry.js → p-f6cebcf8.entry.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
@@ -5,361 +5,361 @@ import { VISUALIZATION_COLORS } from "../../../utils/theme/color-palette";
5
5
  import { logError } from "../../../utils/error/log-error";
6
6
  const DEFAULT_COLOR_FIELD_NAME = 'category';
7
7
  export class GuxScatterPlotChart {
8
- constructor() {
9
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
- this.baseChartSpec = {
11
- $schema: 'https://vega.github.io/schema/vega-lite/v5.json',
12
- params: [
13
- {
14
- name: 'onHover',
15
- select: { type: 'point', on: 'mouseover' }
8
+ constructor() {
9
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
+ this.baseChartSpec = {
11
+ $schema: 'https://vega.github.io/schema/vega-lite/v5.json',
12
+ params: [
13
+ {
14
+ name: 'onHover',
15
+ select: { type: 'point', on: 'mouseover' }
16
+ }
17
+ ],
18
+ config: {
19
+ axis: {
20
+ ticks: false,
21
+ titlePadding: 8,
22
+ gridColor: '#F6F7F9'
23
+ },
24
+ axisX: {
25
+ labelAngle: 0,
26
+ grid: true
27
+ },
28
+ legend: {
29
+ symbolType: 'circle'
30
+ }
31
+ },
32
+ width: { step: 40 },
33
+ encoding: {
34
+ x: { type: 'nominal' },
35
+ y: { type: 'quantitative' },
36
+ color: {
37
+ field: DEFAULT_COLOR_FIELD_NAME,
38
+ type: 'nominal',
39
+ scale: { range: VISUALIZATION_COLORS },
40
+ legend: null
41
+ },
42
+ size: {
43
+ condition: [
44
+ {
45
+ param: 'onHover',
46
+ empty: false,
47
+ value: 100
48
+ }
49
+ ],
50
+ value: 40
51
+ }
52
+ }
53
+ };
54
+ this.chartData = undefined;
55
+ this.xTickLabelSlant = undefined;
56
+ this.includeLegend = undefined;
57
+ this.legendPosition = 'right';
58
+ this.xFieldName = undefined;
59
+ this.xAxisTitle = undefined;
60
+ this.yFieldName = undefined;
61
+ this.yAxisTitle = undefined;
62
+ this.legendTitle = undefined;
63
+ this.colorFieldName = undefined;
64
+ this.useShape = undefined;
65
+ this.embedOptions = undefined;
66
+ }
67
+ parseData() {
68
+ if (!this.xFieldName || !this.yFieldName) {
69
+ logError(this.root, 'requires x-field-name and y-field-name');
16
70
  }
17
- ],
18
- config: {
19
- axis: {
20
- ticks: false,
21
- titlePadding: 8,
22
- gridColor: '#F6F7F9'
23
- },
24
- axisX: {
25
- labelAngle: 0,
26
- grid: true
27
- },
28
- legend: {
29
- symbolType: 'circle'
71
+ let chartData = {};
72
+ if (this.chartData) {
73
+ chartData = { data: this.chartData };
30
74
  }
31
- },
32
- width: { step: 40 },
33
- encoding: {
34
- x: { type: 'nominal' },
35
- y: { type: 'quantitative' },
36
- color: {
37
- field: DEFAULT_COLOR_FIELD_NAME,
38
- type: 'nominal',
39
- scale: { range: VISUALIZATION_COLORS },
40
- legend: null
41
- },
42
- size: {
43
- condition: [
44
- {
45
- param: 'onHover',
46
- empty: false,
47
- value: 100
48
- }
49
- ],
50
- value: 40
75
+ if (this.xTickLabelSlant) {
76
+ this.baseChartSpec.config.axisX.labelAngle = -45;
51
77
  }
52
- }
53
- };
54
- this.chartData = undefined;
55
- this.xTickLabelSlant = undefined;
56
- this.includeLegend = undefined;
57
- this.legendPosition = 'right';
58
- this.xFieldName = undefined;
59
- this.xAxisTitle = undefined;
60
- this.yFieldName = undefined;
61
- this.yAxisTitle = undefined;
62
- this.legendTitle = undefined;
63
- this.colorFieldName = undefined;
64
- this.useShape = undefined;
65
- this.embedOptions = undefined;
66
- }
67
- parseData() {
68
- if (!this.xFieldName || !this.yFieldName) {
69
- logError(this.root, 'requires x-field-name and y-field-name');
70
- }
71
- let chartData = {};
72
- if (this.chartData) {
73
- chartData = { data: this.chartData };
74
- }
75
- if (this.xTickLabelSlant) {
76
- this.baseChartSpec.config.axisX.labelAngle = -45;
77
- }
78
- if (this.legendPosition) {
79
- this.baseChartSpec.config.legend.orient = this.legendPosition;
80
- }
81
- const xFieldName = this.xFieldName;
82
- const xAxisTitle = this.xAxisTitle;
83
- const yFieldName = this.yFieldName;
84
- const yAxisTitle = this.yAxisTitle;
85
- const legendTitle = this.legendTitle;
86
- const useShape = this.useShape || 'circle';
87
- const colorFieldName = this.colorFieldName || DEFAULT_COLOR_FIELD_NAME;
88
- if (this.includeLegend) {
89
- this.baseChartSpec.encoding.color.legend = true;
78
+ if (this.legendPosition) {
79
+ this.baseChartSpec.config.legend.orient = this.legendPosition;
80
+ }
81
+ const xFieldName = this.xFieldName;
82
+ const xAxisTitle = this.xAxisTitle;
83
+ const yFieldName = this.yFieldName;
84
+ const yAxisTitle = this.yAxisTitle;
85
+ const legendTitle = this.legendTitle;
86
+ const useShape = this.useShape || 'circle';
87
+ const colorFieldName = this.colorFieldName || DEFAULT_COLOR_FIELD_NAME;
88
+ if (this.includeLegend) {
89
+ this.baseChartSpec.encoding.color.legend = true;
90
+ }
91
+ if (xFieldName) {
92
+ this.baseChartSpec.encoding.x.field = xFieldName;
93
+ }
94
+ if (xAxisTitle) {
95
+ this.baseChartSpec.encoding.x.title = xAxisTitle;
96
+ }
97
+ if (yFieldName) {
98
+ this.baseChartSpec.encoding.y.field = yFieldName;
99
+ }
100
+ if (yAxisTitle) {
101
+ this.baseChartSpec.encoding.y.title = yAxisTitle;
102
+ }
103
+ if (colorFieldName) {
104
+ this.baseChartSpec.encoding.color.field = colorFieldName;
105
+ }
106
+ if (legendTitle) {
107
+ this.baseChartSpec.encoding.color.title = legendTitle;
108
+ }
109
+ this.baseChartSpec.mark = { type: useShape, filled: true };
110
+ this.baseChartSpec.config.legend.symbolType = useShape;
111
+ this.baseChartSpec.encoding.shape = {
112
+ field: colorFieldName,
113
+ type: 'nominal'
114
+ };
115
+ this.baseChartSpec.encoding.tooltip = [
116
+ { field: xFieldName, type: 'nominal', title: xAxisTitle },
117
+ { field: yFieldName, type: 'quantitative', title: yAxisTitle },
118
+ { field: colorFieldName, type: 'nominal', title: legendTitle }
119
+ ];
120
+ const spec = Object.assign(this.baseChartSpec, chartData);
121
+ this.visualizationSpec = spec;
90
122
  }
91
- if (xFieldName) {
92
- this.baseChartSpec.encoding.x.field = xFieldName;
123
+ componentWillLoad() {
124
+ trackComponent(this.root);
125
+ this.parseData();
93
126
  }
94
- if (xAxisTitle) {
95
- this.baseChartSpec.encoding.x.title = xAxisTitle;
127
+ render() {
128
+ return (h("gux-visualization-beta", { key: '94b4f927328d22a8764207acdd36cb8bef342ea0', visualizationSpec: this.visualizationSpec }));
96
129
  }
97
- if (yFieldName) {
98
- this.baseChartSpec.encoding.y.field = yFieldName;
130
+ static get is() { return "gux-chart-scatter-plot-beta"; }
131
+ static get encapsulation() { return "shadow"; }
132
+ static get originalStyleUrls() {
133
+ return {
134
+ "$": ["gux-chart-scatter-plot.scss"]
135
+ };
99
136
  }
100
- if (yAxisTitle) {
101
- this.baseChartSpec.encoding.y.title = yAxisTitle;
137
+ static get styleUrls() {
138
+ return {
139
+ "$": ["gux-chart-scatter-plot.css"]
140
+ };
102
141
  }
103
- if (colorFieldName) {
104
- this.baseChartSpec.encoding.color.field = colorFieldName;
142
+ static get properties() {
143
+ return {
144
+ "chartData": {
145
+ "type": "unknown",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "Record<string, any>",
149
+ "resolved": "{ [x: string]: any; }",
150
+ "references": {
151
+ "Record": {
152
+ "location": "global",
153
+ "id": "global::Record"
154
+ }
155
+ }
156
+ },
157
+ "required": false,
158
+ "optional": false,
159
+ "docs": {
160
+ "tags": [],
161
+ "text": "Data to be rendered in the chart.\nData field names must match the values you set in xFieldName and yFieldName"
162
+ }
163
+ },
164
+ "xTickLabelSlant": {
165
+ "type": "boolean",
166
+ "mutable": false,
167
+ "complexType": {
168
+ "original": "boolean",
169
+ "resolved": "boolean",
170
+ "references": {}
171
+ },
172
+ "required": false,
173
+ "optional": false,
174
+ "docs": {
175
+ "tags": [],
176
+ "text": "If true, then make Axis tick label 45 degrees"
177
+ },
178
+ "attribute": "x-tick-label-slant",
179
+ "reflect": false
180
+ },
181
+ "includeLegend": {
182
+ "type": "boolean",
183
+ "mutable": false,
184
+ "complexType": {
185
+ "original": "boolean",
186
+ "resolved": "boolean",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": false,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": ""
194
+ },
195
+ "attribute": "include-legend",
196
+ "reflect": false
197
+ },
198
+ "legendPosition": {
199
+ "type": "string",
200
+ "mutable": false,
201
+ "complexType": {
202
+ "original": "| 'left'\n | 'right'\n | 'top'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-right'\n | 'none'",
203
+ "resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"none\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
204
+ "references": {}
205
+ },
206
+ "required": false,
207
+ "optional": false,
208
+ "docs": {
209
+ "tags": [],
210
+ "text": ""
211
+ },
212
+ "attribute": "legend-position",
213
+ "reflect": false,
214
+ "defaultValue": "'right'"
215
+ },
216
+ "xFieldName": {
217
+ "type": "string",
218
+ "mutable": false,
219
+ "complexType": {
220
+ "original": "string",
221
+ "resolved": "string",
222
+ "references": {}
223
+ },
224
+ "required": false,
225
+ "optional": false,
226
+ "docs": {
227
+ "tags": [],
228
+ "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"
229
+ },
230
+ "attribute": "x-field-name",
231
+ "reflect": false
232
+ },
233
+ "xAxisTitle": {
234
+ "type": "string",
235
+ "mutable": false,
236
+ "complexType": {
237
+ "original": "string",
238
+ "resolved": "string",
239
+ "references": {}
240
+ },
241
+ "required": false,
242
+ "optional": false,
243
+ "docs": {
244
+ "tags": [],
245
+ "text": "Title to display along the x-axis"
246
+ },
247
+ "attribute": "x-axis-title",
248
+ "reflect": false
249
+ },
250
+ "yFieldName": {
251
+ "type": "string",
252
+ "mutable": false,
253
+ "complexType": {
254
+ "original": "string",
255
+ "resolved": "string",
256
+ "references": {}
257
+ },
258
+ "required": false,
259
+ "optional": false,
260
+ "docs": {
261
+ "tags": [],
262
+ "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"
263
+ },
264
+ "attribute": "y-field-name",
265
+ "reflect": false
266
+ },
267
+ "yAxisTitle": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "string",
272
+ "resolved": "string",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": false,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": "Title to display along the y-axis"
280
+ },
281
+ "attribute": "y-axis-title",
282
+ "reflect": false
283
+ },
284
+ "legendTitle": {
285
+ "type": "string",
286
+ "mutable": false,
287
+ "complexType": {
288
+ "original": "string",
289
+ "resolved": "string",
290
+ "references": {}
291
+ },
292
+ "required": false,
293
+ "optional": false,
294
+ "docs": {
295
+ "tags": [],
296
+ "text": "Title to display above the optional legend"
297
+ },
298
+ "attribute": "legend-title",
299
+ "reflect": false
300
+ },
301
+ "colorFieldName": {
302
+ "type": "string",
303
+ "mutable": false,
304
+ "complexType": {
305
+ "original": "string",
306
+ "resolved": "string",
307
+ "references": {}
308
+ },
309
+ "required": false,
310
+ "optional": false,
311
+ "docs": {
312
+ "tags": [],
313
+ "text": "Type of category to plot in the chart"
314
+ },
315
+ "attribute": "color-field-name",
316
+ "reflect": false
317
+ },
318
+ "useShape": {
319
+ "type": "string",
320
+ "mutable": false,
321
+ "complexType": {
322
+ "original": "string",
323
+ "resolved": "string",
324
+ "references": {}
325
+ },
326
+ "required": false,
327
+ "optional": false,
328
+ "docs": {
329
+ "tags": [],
330
+ "text": "The shape of the plotting in the chart - Square, Circle and Point"
331
+ },
332
+ "attribute": "use-shape",
333
+ "reflect": false
334
+ },
335
+ "embedOptions": {
336
+ "type": "unknown",
337
+ "mutable": false,
338
+ "complexType": {
339
+ "original": "EmbedOptions",
340
+ "resolved": "EmbedOptions<string, Renderers>",
341
+ "references": {
342
+ "EmbedOptions": {
343
+ "location": "import",
344
+ "path": "vega-embed",
345
+ "id": "../../node_modules/vega-embed/build/vega-embed.module.d.ts::EmbedOptions"
346
+ }
347
+ }
348
+ },
349
+ "required": false,
350
+ "optional": false,
351
+ "docs": {
352
+ "tags": [],
353
+ "text": ""
354
+ }
355
+ }
356
+ };
105
357
  }
106
- if (legendTitle) {
107
- this.baseChartSpec.encoding.color.title = legendTitle;
358
+ static get elementRef() { return "root"; }
359
+ static get watchers() {
360
+ return [{
361
+ "propName": "chartData",
362
+ "methodName": "parseData"
363
+ }];
108
364
  }
109
- this.baseChartSpec.mark = { type: useShape, filled: true };
110
- this.baseChartSpec.config.legend.symbolType = useShape;
111
- this.baseChartSpec.encoding.shape = {
112
- field: colorFieldName,
113
- type: 'nominal'
114
- };
115
- this.baseChartSpec.encoding.tooltip = [
116
- { field: xFieldName, type: 'nominal', title: xAxisTitle },
117
- { field: yFieldName, type: 'quantitative', title: yAxisTitle },
118
- { field: colorFieldName, type: 'nominal', title: legendTitle }
119
- ];
120
- const spec = Object.assign(this.baseChartSpec, chartData);
121
- this.visualizationSpec = spec;
122
- }
123
- componentWillLoad() {
124
- trackComponent(this.root);
125
- this.parseData();
126
- }
127
- render() {
128
- return (h("gux-visualization-beta", { visualizationSpec: this.visualizationSpec }));
129
- }
130
- static get is() { return "gux-chart-scatter-plot-beta"; }
131
- static get encapsulation() { return "shadow"; }
132
- static get originalStyleUrls() {
133
- return {
134
- "$": ["gux-chart-scatter-plot.scss"]
135
- };
136
- }
137
- static get styleUrls() {
138
- return {
139
- "$": ["gux-chart-scatter-plot.css"]
140
- };
141
- }
142
- static get properties() {
143
- return {
144
- "chartData": {
145
- "type": "unknown",
146
- "mutable": false,
147
- "complexType": {
148
- "original": "Record<string, any>",
149
- "resolved": "{ [x: string]: any; }",
150
- "references": {
151
- "Record": {
152
- "location": "global",
153
- "id": "global::Record"
154
- }
155
- }
156
- },
157
- "required": false,
158
- "optional": false,
159
- "docs": {
160
- "tags": [],
161
- "text": "Data to be rendered in the chart.\nData field names must match the values you set in xFieldName and yFieldName"
162
- }
163
- },
164
- "xTickLabelSlant": {
165
- "type": "boolean",
166
- "mutable": false,
167
- "complexType": {
168
- "original": "boolean",
169
- "resolved": "boolean",
170
- "references": {}
171
- },
172
- "required": false,
173
- "optional": false,
174
- "docs": {
175
- "tags": [],
176
- "text": "If true, then make Axis tick label 45 degrees"
177
- },
178
- "attribute": "x-tick-label-slant",
179
- "reflect": false
180
- },
181
- "includeLegend": {
182
- "type": "boolean",
183
- "mutable": false,
184
- "complexType": {
185
- "original": "boolean",
186
- "resolved": "boolean",
187
- "references": {}
188
- },
189
- "required": false,
190
- "optional": false,
191
- "docs": {
192
- "tags": [],
193
- "text": ""
194
- },
195
- "attribute": "include-legend",
196
- "reflect": false
197
- },
198
- "legendPosition": {
199
- "type": "string",
200
- "mutable": false,
201
- "complexType": {
202
- "original": "| 'left'\n | 'right'\n | 'top'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-right'\n | 'none'",
203
- "resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"none\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
204
- "references": {}
205
- },
206
- "required": false,
207
- "optional": false,
208
- "docs": {
209
- "tags": [],
210
- "text": ""
211
- },
212
- "attribute": "legend-position",
213
- "reflect": false,
214
- "defaultValue": "'right'"
215
- },
216
- "xFieldName": {
217
- "type": "string",
218
- "mutable": false,
219
- "complexType": {
220
- "original": "string",
221
- "resolved": "string",
222
- "references": {}
223
- },
224
- "required": false,
225
- "optional": false,
226
- "docs": {
227
- "tags": [],
228
- "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"
229
- },
230
- "attribute": "x-field-name",
231
- "reflect": false
232
- },
233
- "xAxisTitle": {
234
- "type": "string",
235
- "mutable": false,
236
- "complexType": {
237
- "original": "string",
238
- "resolved": "string",
239
- "references": {}
240
- },
241
- "required": false,
242
- "optional": false,
243
- "docs": {
244
- "tags": [],
245
- "text": "Title to display along the x-axis"
246
- },
247
- "attribute": "x-axis-title",
248
- "reflect": false
249
- },
250
- "yFieldName": {
251
- "type": "string",
252
- "mutable": false,
253
- "complexType": {
254
- "original": "string",
255
- "resolved": "string",
256
- "references": {}
257
- },
258
- "required": false,
259
- "optional": false,
260
- "docs": {
261
- "tags": [],
262
- "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"
263
- },
264
- "attribute": "y-field-name",
265
- "reflect": false
266
- },
267
- "yAxisTitle": {
268
- "type": "string",
269
- "mutable": false,
270
- "complexType": {
271
- "original": "string",
272
- "resolved": "string",
273
- "references": {}
274
- },
275
- "required": false,
276
- "optional": false,
277
- "docs": {
278
- "tags": [],
279
- "text": "Title to display along the y-axis"
280
- },
281
- "attribute": "y-axis-title",
282
- "reflect": false
283
- },
284
- "legendTitle": {
285
- "type": "string",
286
- "mutable": false,
287
- "complexType": {
288
- "original": "string",
289
- "resolved": "string",
290
- "references": {}
291
- },
292
- "required": false,
293
- "optional": false,
294
- "docs": {
295
- "tags": [],
296
- "text": "Title to display above the optional legend"
297
- },
298
- "attribute": "legend-title",
299
- "reflect": false
300
- },
301
- "colorFieldName": {
302
- "type": "string",
303
- "mutable": false,
304
- "complexType": {
305
- "original": "string",
306
- "resolved": "string",
307
- "references": {}
308
- },
309
- "required": false,
310
- "optional": false,
311
- "docs": {
312
- "tags": [],
313
- "text": "Type of category to plot in the chart"
314
- },
315
- "attribute": "color-field-name",
316
- "reflect": false
317
- },
318
- "useShape": {
319
- "type": "string",
320
- "mutable": false,
321
- "complexType": {
322
- "original": "string",
323
- "resolved": "string",
324
- "references": {}
325
- },
326
- "required": false,
327
- "optional": false,
328
- "docs": {
329
- "tags": [],
330
- "text": "The shape of the plotting in the chart - Square, Circle and Point"
331
- },
332
- "attribute": "use-shape",
333
- "reflect": false
334
- },
335
- "embedOptions": {
336
- "type": "unknown",
337
- "mutable": false,
338
- "complexType": {
339
- "original": "EmbedOptions",
340
- "resolved": "EmbedOptions<string, Renderers>",
341
- "references": {
342
- "EmbedOptions": {
343
- "location": "import",
344
- "path": "vega-embed",
345
- "id": "../../node_modules/vega-embed/build/vega-embed.module.d.ts::EmbedOptions"
346
- }
347
- }
348
- },
349
- "required": false,
350
- "optional": false,
351
- "docs": {
352
- "tags": [],
353
- "text": ""
354
- }
355
- }
356
- };
357
- }
358
- static get elementRef() { return "root"; }
359
- static get watchers() {
360
- return [{
361
- "propName": "chartData",
362
- "methodName": "parseData"
363
- }];
364
- }
365
365
  }