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
@@ -7,569 +7,569 @@ const DEFAULT_COLOR_FIELD_NAME = 'category';
7
7
  const DEFAULT_LABEL_FIELD_NAME = 'value';
8
8
  const DEFAULT_RING_WIDTH = 32;
9
9
  export class GuxDonutChart {
10
- constructor() {
11
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
- this.baseChartSpec = {
13
- $schema: 'https://vega.github.io/schema/vega-lite/v5.json',
14
- config: {
15
- legend: {
16
- symbolType: 'circle'
10
+ constructor() {
11
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
12
+ this.baseChartSpec = {
13
+ $schema: 'https://vega.github.io/schema/vega-lite/v5.json',
14
+ config: {
15
+ legend: {
16
+ symbolType: 'circle'
17
+ }
18
+ },
19
+ encoding: {
20
+ theta: { field: 'value', type: 'quantitative', stack: true },
21
+ color: {
22
+ field: DEFAULT_COLOR_FIELD_NAME,
23
+ type: 'nominal',
24
+ scale: { range: VISUALIZATION_COLORS },
25
+ legend: null
26
+ }
27
+ },
28
+ layer: [
29
+ {
30
+ mark: { type: 'arc', outerRadius: 80 }
31
+ },
32
+ {
33
+ mark: { type: 'text', radius: 90 },
34
+ encoding: {
35
+ text: { field: DEFAULT_LABEL_FIELD_NAME, type: 'quantitative' }
36
+ }
37
+ }
38
+ ],
39
+ view: { stroke: null }
40
+ };
41
+ this.chartData = undefined;
42
+ this.includeLegend = undefined;
43
+ this.legendPosition = 'right';
44
+ this.legendTitle = undefined;
45
+ this.colorFieldName = undefined;
46
+ this.outerRadius = undefined;
47
+ this.innerRadius = undefined;
48
+ this.labelRadius = undefined;
49
+ this.labelField = undefined;
50
+ this.gauge = undefined;
51
+ this.centerText = undefined;
52
+ this.centerSubText = undefined;
53
+ this.showTooltip = true;
54
+ this.tooltipOptions = undefined;
55
+ this.legendX = undefined;
56
+ this.legendY = undefined;
57
+ this.legendFontSize = undefined;
58
+ this.legendSymbolSize = undefined;
59
+ this.embedOptions = undefined;
60
+ }
61
+ parseData() {
62
+ if (!this.outerRadius && !this.innerRadius) {
63
+ logError(this.root, 'requires at least one of outer-radius or inner-radius');
17
64
  }
18
- },
19
- encoding: {
20
- theta: { field: 'value', type: 'quantitative', stack: true },
21
- color: {
22
- field: DEFAULT_COLOR_FIELD_NAME,
23
- type: 'nominal',
24
- scale: { range: VISUALIZATION_COLORS },
25
- legend: null
65
+ let chartData = {};
66
+ if (this.chartData) {
67
+ chartData = { data: this.chartData };
26
68
  }
27
- },
28
- layer: [
29
- {
30
- mark: { type: 'arc', outerRadius: 80 }
31
- },
32
- {
33
- mark: { type: 'text', radius: 90 },
34
- encoding: {
35
- text: { field: DEFAULT_LABEL_FIELD_NAME, type: 'quantitative' }
36
- }
69
+ if (this.legendPosition) {
70
+ this.baseChartSpec.config.legend.orient = this.legendPosition;
37
71
  }
38
- ],
39
- view: { stroke: null }
40
- };
41
- this.chartData = undefined;
42
- this.includeLegend = undefined;
43
- this.legendPosition = 'right';
44
- this.legendTitle = undefined;
45
- this.colorFieldName = undefined;
46
- this.outerRadius = undefined;
47
- this.innerRadius = undefined;
48
- this.labelRadius = undefined;
49
- this.labelField = undefined;
50
- this.gauge = undefined;
51
- this.centerText = undefined;
52
- this.centerSubText = undefined;
53
- this.showTooltip = true;
54
- this.tooltipOptions = undefined;
55
- this.legendX = undefined;
56
- this.legendY = undefined;
57
- this.legendFontSize = undefined;
58
- this.legendSymbolSize = undefined;
59
- this.embedOptions = undefined;
60
- }
61
- parseData() {
62
- if (!this.outerRadius && !this.innerRadius) {
63
- logError(this.root, 'requires at least one of outer-radius or inner-radius');
64
- }
65
- let chartData = {};
66
- if (this.chartData) {
67
- chartData = { data: this.chartData };
68
- }
69
- if (this.legendPosition) {
70
- this.baseChartSpec.config.legend.orient = this.legendPosition;
71
- }
72
- if (this.includeLegend) {
73
- this.baseChartSpec.encoding.color.legend = {};
74
- if (this.legendX || this.legendY) {
75
- this.baseChartSpec.config.legend.orient = 'none';
76
- if (this.legendX) {
77
- this.baseChartSpec.encoding.color.legend.legendX = this.legendX;
72
+ if (this.includeLegend) {
73
+ this.baseChartSpec.encoding.color.legend = {};
74
+ if (this.legendX || this.legendY) {
75
+ this.baseChartSpec.config.legend.orient = 'none';
76
+ if (this.legendX) {
77
+ this.baseChartSpec.encoding.color.legend.legendX = this.legendX;
78
+ }
79
+ if (this.legendY) {
80
+ this.baseChartSpec.encoding.color.legend.legendY = this.legendY;
81
+ }
82
+ }
83
+ if (this.legendFontSize) {
84
+ this.baseChartSpec.encoding.color.legend.labelFontSize =
85
+ this.legendFontSize;
86
+ }
87
+ if (this.legendSymbolSize) {
88
+ this.baseChartSpec.encoding.color.legend.symbolSize =
89
+ this.legendSymbolSize;
90
+ }
78
91
  }
79
- if (this.legendY) {
80
- this.baseChartSpec.encoding.color.legend.legendY = this.legendY;
92
+ else {
93
+ this.baseChartSpec.encoding.color.legend = null;
81
94
  }
82
- }
83
- if (this.legendFontSize) {
84
- this.baseChartSpec.encoding.color.legend.labelFontSize =
85
- this.legendFontSize;
86
- }
87
- if (this.legendSymbolSize) {
88
- this.baseChartSpec.encoding.color.legend.symbolSize =
89
- this.legendSymbolSize;
90
- }
91
- }
92
- else {
93
- this.baseChartSpec.encoding.color.legend = null;
94
- }
95
- const colorFieldName = this.colorFieldName || DEFAULT_COLOR_FIELD_NAME;
96
- if (colorFieldName) {
97
- this.baseChartSpec.encoding.color.field = colorFieldName;
98
- }
99
- const legendTitle = this.legendTitle;
100
- if (legendTitle) {
101
- this.baseChartSpec.encoding.color.title = legendTitle;
102
- }
103
- else {
104
- this.baseChartSpec.encoding.color.title = '';
105
- }
106
- let outerRadius = this.outerRadius;
107
- let innerRadius = this.innerRadius;
108
- if (!outerRadius) {
109
- outerRadius = innerRadius + DEFAULT_RING_WIDTH;
110
- }
111
- if (!innerRadius) {
112
- innerRadius = outerRadius - DEFAULT_RING_WIDTH;
113
- }
114
- let layerFiels = 1;
115
- if (this.gauge) {
116
- this.baseChartSpec.layer = [
117
- {
118
- data: { values: [{ progress: 'default', value: 100 }] },
119
- mark: { type: 'arc', innerRadius },
120
- encoding: {
121
- theta: { field: 'value', type: 'quantitative' },
122
- color: { value: '#E4E9F0' },
123
- tooltip: null
124
- }
125
- },
126
- {
127
- mark: { type: 'arc', outerRadius, innerRadius, padAngle: 0.01 }
128
- },
129
- {
130
- mark: { type: 'arc', innerRadius, padAngle: 0.01 }
95
+ const colorFieldName = this.colorFieldName || DEFAULT_COLOR_FIELD_NAME;
96
+ if (colorFieldName) {
97
+ this.baseChartSpec.encoding.color.field = colorFieldName;
131
98
  }
132
- ];
133
- layerFiels = 2;
134
- }
135
- else {
136
- this.baseChartSpec.layer = [
137
- {
138
- mark: { type: 'arc', outerRadius, innerRadius }
139
- },
140
- {
141
- mark: { type: 'arc', innerRadius, stroke: '#fff' }
99
+ const legendTitle = this.legendTitle;
100
+ if (legendTitle) {
101
+ this.baseChartSpec.encoding.color.title = legendTitle;
142
102
  }
143
- ];
144
- }
145
- const centerText = this.centerText;
146
- if (centerText) {
147
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call
148
- this.baseChartSpec.layer.push({
149
- data: { values: [{ centerText: centerText, value: 0 }] },
150
- mark: { align: 'center', type: 'text', baseline: 'middle' },
151
- encoding: {
152
- color: { value: '#4C5054' },
153
- text: { field: 'centerText' },
154
- size: { value: { expr: 'height * 0.09' } },
155
- tooltip: null
103
+ else {
104
+ this.baseChartSpec.encoding.color.title = '';
156
105
  }
157
- });
158
- }
159
- const centerSubText = this.centerSubText;
160
- if (centerSubText) {
161
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call
162
- this.baseChartSpec.layer.push({
163
- data: { values: [{ centerSubText: centerSubText, value: 0 }] },
164
- mark: {
165
- align: 'center',
166
- type: 'text',
167
- baseline: 'middle',
168
- y: { expr: 'height/2 + 20' }
169
- },
170
- encoding: {
171
- color: { value: '#6A6D70' },
172
- text: { field: 'centerSubText' },
173
- size: { value: { expr: 'height * 0.06' } },
174
- tooltip: null
106
+ let outerRadius = this.outerRadius;
107
+ let innerRadius = this.innerRadius;
108
+ if (!outerRadius) {
109
+ outerRadius = innerRadius + DEFAULT_RING_WIDTH;
175
110
  }
176
- });
177
- }
178
- const labelRadius = this.labelRadius;
179
- const labelField = this.labelField || DEFAULT_LABEL_FIELD_NAME;
180
- if (labelRadius) {
181
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call
182
- this.baseChartSpec.layer.push({
183
- mark: { type: 'text', radius: labelRadius },
184
- encoding: {
185
- text: { field: labelField, type: 'quantitative' }
111
+ if (!innerRadius) {
112
+ innerRadius = outerRadius - DEFAULT_RING_WIDTH;
186
113
  }
187
- });
114
+ let layerFiels = 1;
115
+ if (this.gauge) {
116
+ this.baseChartSpec.layer = [
117
+ {
118
+ data: { values: [{ progress: 'default', value: 100 }] },
119
+ mark: { type: 'arc', innerRadius },
120
+ encoding: {
121
+ theta: { field: 'value', type: 'quantitative' },
122
+ color: { value: '#E4E9F0' },
123
+ tooltip: null
124
+ }
125
+ },
126
+ {
127
+ mark: { type: 'arc', outerRadius, innerRadius, padAngle: 0.01 }
128
+ },
129
+ {
130
+ mark: { type: 'arc', innerRadius, padAngle: 0.01 }
131
+ }
132
+ ];
133
+ layerFiels = 2;
134
+ }
135
+ else {
136
+ this.baseChartSpec.layer = [
137
+ {
138
+ mark: { type: 'arc', outerRadius, innerRadius }
139
+ },
140
+ {
141
+ mark: { type: 'arc', innerRadius, stroke: '#fff' }
142
+ }
143
+ ];
144
+ }
145
+ const centerText = this.centerText;
146
+ if (centerText) {
147
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
148
+ this.baseChartSpec.layer.push({
149
+ data: { values: [{ centerText: centerText, value: 0 }] },
150
+ mark: { align: 'center', type: 'text', baseline: 'middle' },
151
+ encoding: {
152
+ color: { value: '#4C5054' },
153
+ text: { field: 'centerText' },
154
+ size: { value: { expr: 'height * 0.09' } },
155
+ tooltip: null
156
+ }
157
+ });
158
+ }
159
+ const centerSubText = this.centerSubText;
160
+ if (centerSubText) {
161
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
162
+ this.baseChartSpec.layer.push({
163
+ data: { values: [{ centerSubText: centerSubText, value: 0 }] },
164
+ mark: {
165
+ align: 'center',
166
+ type: 'text',
167
+ baseline: 'middle',
168
+ y: { expr: 'height/2 + 20' }
169
+ },
170
+ encoding: {
171
+ color: { value: '#6A6D70' },
172
+ text: { field: 'centerSubText' },
173
+ size: { value: { expr: 'height * 0.06' } },
174
+ tooltip: null
175
+ }
176
+ });
177
+ }
178
+ const labelRadius = this.labelRadius;
179
+ const labelField = this.labelField || DEFAULT_LABEL_FIELD_NAME;
180
+ if (labelRadius) {
181
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
182
+ this.baseChartSpec.layer.push({
183
+ mark: { type: 'text', radius: labelRadius },
184
+ encoding: {
185
+ text: { field: labelField, type: 'quantitative' }
186
+ }
187
+ });
188
+ }
189
+ if (this.showTooltip) {
190
+ if (this.tooltipOptions) {
191
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
192
+ this.baseChartSpec.layer[layerFiels].mark.tooltip = { content: 'data' };
193
+ this.tooltipSpec = {
194
+ actions: false,
195
+ tooltip: this.tooltipOptions
196
+ };
197
+ }
198
+ else {
199
+ this.baseChartSpec.encoding.tooltip = {
200
+ field: labelField,
201
+ aggregate: 'count',
202
+ type: 'quantitative'
203
+ };
204
+ }
205
+ }
206
+ const spec = Object.assign(this.baseChartSpec, chartData);
207
+ this.visualizationSpec = spec;
208
+ }
209
+ componentWillLoad() {
210
+ trackComponent(this.root);
211
+ this.parseData();
212
+ }
213
+ render() {
214
+ return (h("gux-visualization-beta", { key: '1841c32ed4312b87b8bdeca52a007a6905effce9', visualizationSpec: this.visualizationSpec, embedOptions: this.tooltipSpec }));
188
215
  }
189
- if (this.showTooltip) {
190
- if (this.tooltipOptions) {
191
- // eslint-disable-next-line @typescript-eslint/no-unsafe-call
192
- this.baseChartSpec.layer[layerFiels].mark.tooltip = { content: 'data' };
193
- this.tooltipSpec = {
194
- actions: false,
195
- tooltip: this.tooltipOptions
216
+ static get is() { return "gux-chart-donut-beta"; }
217
+ static get encapsulation() { return "shadow"; }
218
+ static get originalStyleUrls() {
219
+ return {
220
+ "$": ["gux-chart-donut.scss"]
196
221
  };
197
- }
198
- else {
199
- this.baseChartSpec.encoding.tooltip = {
200
- field: labelField,
201
- aggregate: 'count',
202
- type: 'quantitative'
222
+ }
223
+ static get styleUrls() {
224
+ return {
225
+ "$": ["gux-chart-donut.css"]
203
226
  };
204
- }
205
227
  }
206
- const spec = Object.assign(this.baseChartSpec, chartData);
207
- this.visualizationSpec = spec;
208
- }
209
- componentWillLoad() {
210
- trackComponent(this.root);
211
- this.parseData();
212
- }
213
- render() {
214
- return (h("gux-visualization-beta", { visualizationSpec: this.visualizationSpec, embedOptions: this.tooltipSpec }));
215
- }
216
- static get is() { return "gux-chart-donut-beta"; }
217
- static get encapsulation() { return "shadow"; }
218
- static get originalStyleUrls() {
219
- return {
220
- "$": ["gux-chart-donut.scss"]
221
- };
222
- }
223
- static get styleUrls() {
224
- return {
225
- "$": ["gux-chart-donut.css"]
226
- };
227
- }
228
- static get properties() {
229
- return {
230
- "chartData": {
231
- "type": "unknown",
232
- "mutable": false,
233
- "complexType": {
234
- "original": "Record<string, any>",
235
- "resolved": "{ [x: string]: any; }",
236
- "references": {
237
- "Record": {
238
- "location": "global",
239
- "id": "global::Record"
240
- }
241
- }
242
- },
243
- "required": false,
244
- "optional": false,
245
- "docs": {
246
- "tags": [],
247
- "text": "Data to be rendered in the chart.\nData field names must match the values you set in xFieldName and yFieldName"
248
- }
249
- },
250
- "includeLegend": {
251
- "type": "boolean",
252
- "mutable": false,
253
- "complexType": {
254
- "original": "boolean",
255
- "resolved": "boolean",
256
- "references": {}
257
- },
258
- "required": false,
259
- "optional": false,
260
- "docs": {
261
- "tags": [],
262
- "text": ""
263
- },
264
- "attribute": "include-legend",
265
- "reflect": false
266
- },
267
- "legendPosition": {
268
- "type": "string",
269
- "mutable": false,
270
- "complexType": {
271
- "original": "| 'left'\n | 'right'\n | 'top'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-right'\n | 'none'",
272
- "resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"none\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
273
- "references": {}
274
- },
275
- "required": false,
276
- "optional": false,
277
- "docs": {
278
- "tags": [],
279
- "text": ""
280
- },
281
- "attribute": "legend-position",
282
- "reflect": false,
283
- "defaultValue": "'right'"
284
- },
285
- "legendTitle": {
286
- "type": "string",
287
- "mutable": false,
288
- "complexType": {
289
- "original": "string",
290
- "resolved": "string",
291
- "references": {}
292
- },
293
- "required": false,
294
- "optional": false,
295
- "docs": {
296
- "tags": [],
297
- "text": ""
298
- },
299
- "attribute": "legend-title",
300
- "reflect": false
301
- },
302
- "colorFieldName": {
303
- "type": "string",
304
- "mutable": false,
305
- "complexType": {
306
- "original": "string",
307
- "resolved": "string",
308
- "references": {}
309
- },
310
- "required": false,
311
- "optional": false,
312
- "docs": {
313
- "tags": [],
314
- "text": ""
315
- },
316
- "attribute": "color-field-name",
317
- "reflect": false
318
- },
319
- "outerRadius": {
320
- "type": "number",
321
- "mutable": false,
322
- "complexType": {
323
- "original": "number",
324
- "resolved": "number",
325
- "references": {}
326
- },
327
- "required": false,
328
- "optional": false,
329
- "docs": {
330
- "tags": [],
331
- "text": ""
332
- },
333
- "attribute": "outer-radius",
334
- "reflect": false
335
- },
336
- "innerRadius": {
337
- "type": "number",
338
- "mutable": false,
339
- "complexType": {
340
- "original": "number",
341
- "resolved": "number",
342
- "references": {}
343
- },
344
- "required": false,
345
- "optional": false,
346
- "docs": {
347
- "tags": [],
348
- "text": ""
349
- },
350
- "attribute": "inner-radius",
351
- "reflect": false
352
- },
353
- "labelRadius": {
354
- "type": "number",
355
- "mutable": false,
356
- "complexType": {
357
- "original": "number",
358
- "resolved": "number",
359
- "references": {}
360
- },
361
- "required": false,
362
- "optional": false,
363
- "docs": {
364
- "tags": [],
365
- "text": ""
366
- },
367
- "attribute": "label-radius",
368
- "reflect": false
369
- },
370
- "labelField": {
371
- "type": "string",
372
- "mutable": false,
373
- "complexType": {
374
- "original": "string",
375
- "resolved": "string",
376
- "references": {}
377
- },
378
- "required": false,
379
- "optional": false,
380
- "docs": {
381
- "tags": [],
382
- "text": ""
383
- },
384
- "attribute": "label-field",
385
- "reflect": false
386
- },
387
- "gauge": {
388
- "type": "boolean",
389
- "mutable": false,
390
- "complexType": {
391
- "original": "boolean",
392
- "resolved": "boolean",
393
- "references": {}
394
- },
395
- "required": false,
396
- "optional": false,
397
- "docs": {
398
- "tags": [],
399
- "text": ""
400
- },
401
- "attribute": "gauge",
402
- "reflect": false
403
- },
404
- "centerText": {
405
- "type": "string",
406
- "mutable": false,
407
- "complexType": {
408
- "original": "string",
409
- "resolved": "string",
410
- "references": {}
411
- },
412
- "required": false,
413
- "optional": false,
414
- "docs": {
415
- "tags": [],
416
- "text": ""
417
- },
418
- "attribute": "center-text",
419
- "reflect": false
420
- },
421
- "centerSubText": {
422
- "type": "string",
423
- "mutable": false,
424
- "complexType": {
425
- "original": "string",
426
- "resolved": "string",
427
- "references": {}
428
- },
429
- "required": false,
430
- "optional": false,
431
- "docs": {
432
- "tags": [],
433
- "text": ""
434
- },
435
- "attribute": "center-sub-text",
436
- "reflect": false
437
- },
438
- "showTooltip": {
439
- "type": "boolean",
440
- "mutable": false,
441
- "complexType": {
442
- "original": "boolean",
443
- "resolved": "boolean",
444
- "references": {}
445
- },
446
- "required": false,
447
- "optional": false,
448
- "docs": {
449
- "tags": [],
450
- "text": ""
451
- },
452
- "attribute": "show-tooltip",
453
- "reflect": false,
454
- "defaultValue": "true"
455
- },
456
- "tooltipOptions": {
457
- "type": "unknown",
458
- "mutable": false,
459
- "complexType": {
460
- "original": "EmbedOptions",
461
- "resolved": "EmbedOptions<string, Renderers>",
462
- "references": {
463
- "EmbedOptions": {
464
- "location": "import",
465
- "path": "vega-embed",
466
- "id": "../../node_modules/vega-embed/build/vega-embed.module.d.ts::EmbedOptions"
467
- }
468
- }
469
- },
470
- "required": false,
471
- "optional": false,
472
- "docs": {
473
- "tags": [],
474
- "text": ""
475
- }
476
- },
477
- "legendX": {
478
- "type": "number",
479
- "mutable": false,
480
- "complexType": {
481
- "original": "number",
482
- "resolved": "number",
483
- "references": {}
484
- },
485
- "required": false,
486
- "optional": false,
487
- "docs": {
488
- "tags": [],
489
- "text": ""
490
- },
491
- "attribute": "legend-x",
492
- "reflect": false
493
- },
494
- "legendY": {
495
- "type": "number",
496
- "mutable": false,
497
- "complexType": {
498
- "original": "number",
499
- "resolved": "number",
500
- "references": {}
501
- },
502
- "required": false,
503
- "optional": false,
504
- "docs": {
505
- "tags": [],
506
- "text": ""
507
- },
508
- "attribute": "legend-y",
509
- "reflect": false
510
- },
511
- "legendFontSize": {
512
- "type": "number",
513
- "mutable": false,
514
- "complexType": {
515
- "original": "number",
516
- "resolved": "number",
517
- "references": {}
518
- },
519
- "required": false,
520
- "optional": false,
521
- "docs": {
522
- "tags": [],
523
- "text": ""
524
- },
525
- "attribute": "legend-font-size",
526
- "reflect": false
527
- },
528
- "legendSymbolSize": {
529
- "type": "number",
530
- "mutable": false,
531
- "complexType": {
532
- "original": "number",
533
- "resolved": "number",
534
- "references": {}
535
- },
536
- "required": false,
537
- "optional": false,
538
- "docs": {
539
- "tags": [],
540
- "text": ""
541
- },
542
- "attribute": "legend-symbol-size",
543
- "reflect": false
544
- },
545
- "embedOptions": {
546
- "type": "unknown",
547
- "mutable": false,
548
- "complexType": {
549
- "original": "EmbedOptions",
550
- "resolved": "EmbedOptions<string, Renderers>",
551
- "references": {
552
- "EmbedOptions": {
553
- "location": "import",
554
- "path": "vega-embed",
555
- "id": "../../node_modules/vega-embed/build/vega-embed.module.d.ts::EmbedOptions"
228
+ static get properties() {
229
+ return {
230
+ "chartData": {
231
+ "type": "unknown",
232
+ "mutable": false,
233
+ "complexType": {
234
+ "original": "Record<string, any>",
235
+ "resolved": "{ [x: string]: any; }",
236
+ "references": {
237
+ "Record": {
238
+ "location": "global",
239
+ "id": "global::Record"
240
+ }
241
+ }
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [],
247
+ "text": "Data to be rendered in the chart.\nData field names must match the values you set in xFieldName and yFieldName"
248
+ }
249
+ },
250
+ "includeLegend": {
251
+ "type": "boolean",
252
+ "mutable": false,
253
+ "complexType": {
254
+ "original": "boolean",
255
+ "resolved": "boolean",
256
+ "references": {}
257
+ },
258
+ "required": false,
259
+ "optional": false,
260
+ "docs": {
261
+ "tags": [],
262
+ "text": ""
263
+ },
264
+ "attribute": "include-legend",
265
+ "reflect": false
266
+ },
267
+ "legendPosition": {
268
+ "type": "string",
269
+ "mutable": false,
270
+ "complexType": {
271
+ "original": "| 'left'\n | 'right'\n | 'top'\n | 'bottom'\n | 'top-left'\n | 'top-right'\n | 'bottom-left'\n | 'bottom-right'\n | 'none'",
272
+ "resolved": "\"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"none\" | \"right\" | \"top\" | \"top-left\" | \"top-right\"",
273
+ "references": {}
274
+ },
275
+ "required": false,
276
+ "optional": false,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": ""
280
+ },
281
+ "attribute": "legend-position",
282
+ "reflect": false,
283
+ "defaultValue": "'right'"
284
+ },
285
+ "legendTitle": {
286
+ "type": "string",
287
+ "mutable": false,
288
+ "complexType": {
289
+ "original": "string",
290
+ "resolved": "string",
291
+ "references": {}
292
+ },
293
+ "required": false,
294
+ "optional": false,
295
+ "docs": {
296
+ "tags": [],
297
+ "text": ""
298
+ },
299
+ "attribute": "legend-title",
300
+ "reflect": false
301
+ },
302
+ "colorFieldName": {
303
+ "type": "string",
304
+ "mutable": false,
305
+ "complexType": {
306
+ "original": "string",
307
+ "resolved": "string",
308
+ "references": {}
309
+ },
310
+ "required": false,
311
+ "optional": false,
312
+ "docs": {
313
+ "tags": [],
314
+ "text": ""
315
+ },
316
+ "attribute": "color-field-name",
317
+ "reflect": false
318
+ },
319
+ "outerRadius": {
320
+ "type": "number",
321
+ "mutable": false,
322
+ "complexType": {
323
+ "original": "number",
324
+ "resolved": "number",
325
+ "references": {}
326
+ },
327
+ "required": false,
328
+ "optional": false,
329
+ "docs": {
330
+ "tags": [],
331
+ "text": ""
332
+ },
333
+ "attribute": "outer-radius",
334
+ "reflect": false
335
+ },
336
+ "innerRadius": {
337
+ "type": "number",
338
+ "mutable": false,
339
+ "complexType": {
340
+ "original": "number",
341
+ "resolved": "number",
342
+ "references": {}
343
+ },
344
+ "required": false,
345
+ "optional": false,
346
+ "docs": {
347
+ "tags": [],
348
+ "text": ""
349
+ },
350
+ "attribute": "inner-radius",
351
+ "reflect": false
352
+ },
353
+ "labelRadius": {
354
+ "type": "number",
355
+ "mutable": false,
356
+ "complexType": {
357
+ "original": "number",
358
+ "resolved": "number",
359
+ "references": {}
360
+ },
361
+ "required": false,
362
+ "optional": false,
363
+ "docs": {
364
+ "tags": [],
365
+ "text": ""
366
+ },
367
+ "attribute": "label-radius",
368
+ "reflect": false
369
+ },
370
+ "labelField": {
371
+ "type": "string",
372
+ "mutable": false,
373
+ "complexType": {
374
+ "original": "string",
375
+ "resolved": "string",
376
+ "references": {}
377
+ },
378
+ "required": false,
379
+ "optional": false,
380
+ "docs": {
381
+ "tags": [],
382
+ "text": ""
383
+ },
384
+ "attribute": "label-field",
385
+ "reflect": false
386
+ },
387
+ "gauge": {
388
+ "type": "boolean",
389
+ "mutable": false,
390
+ "complexType": {
391
+ "original": "boolean",
392
+ "resolved": "boolean",
393
+ "references": {}
394
+ },
395
+ "required": false,
396
+ "optional": false,
397
+ "docs": {
398
+ "tags": [],
399
+ "text": ""
400
+ },
401
+ "attribute": "gauge",
402
+ "reflect": false
403
+ },
404
+ "centerText": {
405
+ "type": "string",
406
+ "mutable": false,
407
+ "complexType": {
408
+ "original": "string",
409
+ "resolved": "string",
410
+ "references": {}
411
+ },
412
+ "required": false,
413
+ "optional": false,
414
+ "docs": {
415
+ "tags": [],
416
+ "text": ""
417
+ },
418
+ "attribute": "center-text",
419
+ "reflect": false
420
+ },
421
+ "centerSubText": {
422
+ "type": "string",
423
+ "mutable": false,
424
+ "complexType": {
425
+ "original": "string",
426
+ "resolved": "string",
427
+ "references": {}
428
+ },
429
+ "required": false,
430
+ "optional": false,
431
+ "docs": {
432
+ "tags": [],
433
+ "text": ""
434
+ },
435
+ "attribute": "center-sub-text",
436
+ "reflect": false
437
+ },
438
+ "showTooltip": {
439
+ "type": "boolean",
440
+ "mutable": false,
441
+ "complexType": {
442
+ "original": "boolean",
443
+ "resolved": "boolean",
444
+ "references": {}
445
+ },
446
+ "required": false,
447
+ "optional": false,
448
+ "docs": {
449
+ "tags": [],
450
+ "text": ""
451
+ },
452
+ "attribute": "show-tooltip",
453
+ "reflect": false,
454
+ "defaultValue": "true"
455
+ },
456
+ "tooltipOptions": {
457
+ "type": "unknown",
458
+ "mutable": false,
459
+ "complexType": {
460
+ "original": "EmbedOptions",
461
+ "resolved": "EmbedOptions<string, Renderers>",
462
+ "references": {
463
+ "EmbedOptions": {
464
+ "location": "import",
465
+ "path": "vega-embed",
466
+ "id": "../../node_modules/vega-embed/build/vega-embed.module.d.ts::EmbedOptions"
467
+ }
468
+ }
469
+ },
470
+ "required": false,
471
+ "optional": false,
472
+ "docs": {
473
+ "tags": [],
474
+ "text": ""
475
+ }
476
+ },
477
+ "legendX": {
478
+ "type": "number",
479
+ "mutable": false,
480
+ "complexType": {
481
+ "original": "number",
482
+ "resolved": "number",
483
+ "references": {}
484
+ },
485
+ "required": false,
486
+ "optional": false,
487
+ "docs": {
488
+ "tags": [],
489
+ "text": ""
490
+ },
491
+ "attribute": "legend-x",
492
+ "reflect": false
493
+ },
494
+ "legendY": {
495
+ "type": "number",
496
+ "mutable": false,
497
+ "complexType": {
498
+ "original": "number",
499
+ "resolved": "number",
500
+ "references": {}
501
+ },
502
+ "required": false,
503
+ "optional": false,
504
+ "docs": {
505
+ "tags": [],
506
+ "text": ""
507
+ },
508
+ "attribute": "legend-y",
509
+ "reflect": false
510
+ },
511
+ "legendFontSize": {
512
+ "type": "number",
513
+ "mutable": false,
514
+ "complexType": {
515
+ "original": "number",
516
+ "resolved": "number",
517
+ "references": {}
518
+ },
519
+ "required": false,
520
+ "optional": false,
521
+ "docs": {
522
+ "tags": [],
523
+ "text": ""
524
+ },
525
+ "attribute": "legend-font-size",
526
+ "reflect": false
527
+ },
528
+ "legendSymbolSize": {
529
+ "type": "number",
530
+ "mutable": false,
531
+ "complexType": {
532
+ "original": "number",
533
+ "resolved": "number",
534
+ "references": {}
535
+ },
536
+ "required": false,
537
+ "optional": false,
538
+ "docs": {
539
+ "tags": [],
540
+ "text": ""
541
+ },
542
+ "attribute": "legend-symbol-size",
543
+ "reflect": false
544
+ },
545
+ "embedOptions": {
546
+ "type": "unknown",
547
+ "mutable": false,
548
+ "complexType": {
549
+ "original": "EmbedOptions",
550
+ "resolved": "EmbedOptions<string, Renderers>",
551
+ "references": {
552
+ "EmbedOptions": {
553
+ "location": "import",
554
+ "path": "vega-embed",
555
+ "id": "../../node_modules/vega-embed/build/vega-embed.module.d.ts::EmbedOptions"
556
+ }
557
+ }
558
+ },
559
+ "required": false,
560
+ "optional": false,
561
+ "docs": {
562
+ "tags": [],
563
+ "text": ""
564
+ }
556
565
  }
557
- }
558
- },
559
- "required": false,
560
- "optional": false,
561
- "docs": {
562
- "tags": [],
563
- "text": ""
564
- }
565
- }
566
- };
567
- }
568
- static get elementRef() { return "root"; }
569
- static get watchers() {
570
- return [{
571
- "propName": "chartData",
572
- "methodName": "parseData"
573
- }];
574
- }
566
+ };
567
+ }
568
+ static get elementRef() { return "root"; }
569
+ static get watchers() {
570
+ return [{
571
+ "propName": "chartData",
572
+ "methodName": "parseData"
573
+ }];
574
+ }
575
575
  }