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.
- package/LICENSE +2 -2
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/genesys-chart-webcomponents.cjs.js +5 -3
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +124 -123
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +213 -212
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +120 -119
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +96 -95
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +126 -125
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +213 -213
- package/dist/cjs/{index-1e13a15f.js → index-a4712860.js} +185 -63
- package/dist/cjs/loader.cjs.js +4 -2
- package/dist/cjs/log-error-28c7064e.js +21 -0
- package/dist/cjs/{usage-30f04ec3.js → usage-c351d7fb.js} +63 -63
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +324 -324
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.locale.js +88 -88
- package/dist/collection/components/beta/gux-chart-column/tests/gux-column-chart.spec.js +16 -16
- package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +550 -550
- package/dist/collection/components/beta/gux-chart-donut/tests/gux-chart-donut.spec.js +5 -5
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +375 -375
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.locale.js +88 -88
- package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.e2e.js +13 -13
- package/dist/collection/components/beta/gux-chart-line/tests/gux-chart-line.spec.js +16 -16
- package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +266 -266
- package/dist/collection/components/beta/gux-chart-pie/tests/gux-chart-pie.spec.js +5 -5
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +347 -347
- package/dist/collection/components/beta/gux-chart-scatter-plot/tests/gux-chart-scatter-plot.spec.js +27 -27
- package/dist/collection/components/beta/gux-visualization/gux-visualization.js +133 -133
- package/dist/collection/components/beta/gux-visualization/gux-visualization.locale.js +88 -88
- package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.e2e.js +25 -25
- package/dist/collection/components/beta/gux-visualization/tests/gux-visualization.spec.js +26 -26
- package/dist/collection/i18n/fetchResources.js +7 -7
- package/dist/collection/i18n/index.js +56 -56
- package/dist/collection/test/axeConfig.js +4 -4
- package/dist/collection/test/e2eTestUtils.js +14 -14
- package/dist/collection/test/specTestUtils.js +5 -5
- package/dist/collection/utils/dom/get-closest-element.js +12 -12
- package/dist/collection/utils/error/log-error.js +2 -2
- package/dist/collection/utils/theme/color-palette.js +10 -10
- package/dist/collection/utils/tracking/usage.js +47 -47
- package/dist/collection/utils/tracking/usage.spec.js +108 -108
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/genesys-chart-webcomponents.js +6 -4
- package/dist/esm/gux-chart-column-beta.entry.js +124 -123
- package/dist/esm/gux-chart-donut-beta.entry.js +213 -212
- package/dist/esm/gux-chart-line-beta.entry.js +120 -119
- package/dist/esm/gux-chart-pie-beta.entry.js +96 -95
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +126 -125
- package/dist/esm/gux-visualization-beta.entry.js +213 -213
- package/dist/esm/{index-701d93cf.js → index-82fd7406.js} +185 -63
- package/dist/esm/loader.js +5 -3
- package/dist/esm/log-error-ff9bdda4.js +18 -0
- package/dist/esm/{usage-61eee3bd.js → usage-6655c04e.js} +63 -63
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.css +1 -1
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/p-1bc0cc3a.js +2 -0
- package/dist/genesys-chart-webcomponents/{p-d4a346df.entry.js → p-291b128b.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-51f2502a.entry.js +11 -0
- package/dist/genesys-chart-webcomponents/{p-137f5b8f.entry.js → p-64f0b385.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-b5179379.entry.js → p-65020b8a.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-d9928f8c.entry.js → p-83283e73.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-e1255160.js +1 -0
- package/dist/genesys-chart-webcomponents/{p-c3aa8578.entry.js → p-e42dd3ba.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-97c45977.js → p-f6832775.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-chart-column/gux-chart-column.d.ts +45 -45
- package/dist/types/components/beta/gux-chart-column/gux-chart-column.locale.d.ts +20 -20
- package/dist/types/components/beta/gux-chart-donut/gux-chart-donut.d.ts +30 -30
- package/dist/types/components/beta/gux-chart-line/gux-chart-line.d.ts +44 -44
- package/dist/types/components/beta/gux-chart-line/gux-chart-line.locale.d.ts +20 -20
- package/dist/types/components/beta/gux-chart-pie/gux-chart-pie.d.ts +19 -19
- package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +48 -48
- package/dist/types/components/beta/gux-visualization/gux-visualization.d.ts +13 -13
- package/dist/types/components/beta/gux-visualization/gux-visualization.locale.d.ts +20 -20
- package/dist/types/components.d.ts +12 -0
- package/dist/types/i18n/fetchResources.d.ts +3 -3
- package/dist/types/i18n/index.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +10 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/dist/types/test/axeConfig.d.ts +4 -4
- package/dist/types/test/e2eTestUtils.d.ts +4 -4
- package/dist/types/test/jestMatcherUtils.d.ts +4 -4
- package/dist/types/utils/tracking/usage.d.ts +11 -11
- package/package.json +24 -24
- package/dist/cjs/log-error-c46b4b4c.js +0 -21
- package/dist/component-specs.json +0 -187
- package/dist/esm/log-error-0fc61f6f.js +0 -18
- package/dist/genesys-chart-webcomponents/p-3e4b3dbc.js +0 -2
- package/dist/genesys-chart-webcomponents/p-b901e9e0.entry.js +0 -11
- /package/dist/genesys-chart-webcomponents/{p-82f0ea01.js → p-f50e3789.js} +0 -0
|
@@ -2,228 +2,229 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const usage = require('./usage-
|
|
7
|
-
const logError = require('./log-error-
|
|
5
|
+
const index = require('./index-a4712860.js');
|
|
6
|
+
const usage = require('./usage-c351d7fb.js');
|
|
7
|
+
const logError = require('./log-error-28c7064e.js');
|
|
8
8
|
|
|
9
9
|
const guxChartDonutCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
10
|
+
const GuxChartDonutBetaStyle0 = guxChartDonutCss;
|
|
10
11
|
|
|
11
12
|
const DEFAULT_COLOR_FIELD_NAME = 'category';
|
|
12
13
|
const DEFAULT_LABEL_FIELD_NAME = 'value';
|
|
13
14
|
const DEFAULT_RING_WIDTH = 32;
|
|
14
15
|
const GuxDonutChart = class {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
16
|
+
constructor(hostRef) {
|
|
17
|
+
index.registerInstance(this, hostRef);
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
|
+
this.baseChartSpec = {
|
|
20
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v5.json',
|
|
21
|
+
config: {
|
|
22
|
+
legend: {
|
|
23
|
+
symbolType: 'circle'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
encoding: {
|
|
27
|
+
theta: { field: 'value', type: 'quantitative', stack: true },
|
|
28
|
+
color: {
|
|
29
|
+
field: DEFAULT_COLOR_FIELD_NAME,
|
|
30
|
+
type: 'nominal',
|
|
31
|
+
scale: { range: logError.VISUALIZATION_COLORS },
|
|
32
|
+
legend: null
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
layer: [
|
|
36
|
+
{
|
|
37
|
+
mark: { type: 'arc', outerRadius: 80 }
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
mark: { type: 'text', radius: 90 },
|
|
41
|
+
encoding: {
|
|
42
|
+
text: { field: DEFAULT_LABEL_FIELD_NAME, type: 'quantitative' }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
view: { stroke: null }
|
|
47
|
+
};
|
|
48
|
+
this.chartData = undefined;
|
|
49
|
+
this.includeLegend = undefined;
|
|
50
|
+
this.legendPosition = 'right';
|
|
51
|
+
this.legendTitle = undefined;
|
|
52
|
+
this.colorFieldName = undefined;
|
|
53
|
+
this.outerRadius = undefined;
|
|
54
|
+
this.innerRadius = undefined;
|
|
55
|
+
this.labelRadius = undefined;
|
|
56
|
+
this.labelField = undefined;
|
|
57
|
+
this.gauge = undefined;
|
|
58
|
+
this.centerText = undefined;
|
|
59
|
+
this.centerSubText = undefined;
|
|
60
|
+
this.showTooltip = true;
|
|
61
|
+
this.tooltipOptions = undefined;
|
|
62
|
+
this.legendX = undefined;
|
|
63
|
+
this.legendY = undefined;
|
|
64
|
+
this.legendFontSize = undefined;
|
|
65
|
+
this.legendSymbolSize = undefined;
|
|
66
|
+
this.embedOptions = undefined;
|
|
67
|
+
}
|
|
68
|
+
parseData() {
|
|
69
|
+
if (!this.outerRadius && !this.innerRadius) {
|
|
70
|
+
logError.logError(this.root, 'requires at least one of outer-radius or inner-radius');
|
|
71
|
+
}
|
|
72
|
+
let chartData = {};
|
|
73
|
+
if (this.chartData) {
|
|
74
|
+
chartData = { data: this.chartData };
|
|
75
|
+
}
|
|
76
|
+
if (this.legendPosition) {
|
|
77
|
+
this.baseChartSpec.config.legend.orient = this.legendPosition;
|
|
78
|
+
}
|
|
79
|
+
if (this.includeLegend) {
|
|
80
|
+
this.baseChartSpec.encoding.color.legend = {};
|
|
81
|
+
if (this.legendX || this.legendY) {
|
|
82
|
+
this.baseChartSpec.config.legend.orient = 'none';
|
|
83
|
+
if (this.legendX) {
|
|
84
|
+
this.baseChartSpec.encoding.color.legend.legendX = this.legendX;
|
|
85
|
+
}
|
|
86
|
+
if (this.legendY) {
|
|
87
|
+
this.baseChartSpec.encoding.color.legend.legendY = this.legendY;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (this.legendFontSize) {
|
|
91
|
+
this.baseChartSpec.encoding.color.legend.labelFontSize =
|
|
92
|
+
this.legendFontSize;
|
|
93
|
+
}
|
|
94
|
+
if (this.legendSymbolSize) {
|
|
95
|
+
this.baseChartSpec.encoding.color.legend.symbolSize =
|
|
96
|
+
this.legendSymbolSize;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
this.baseChartSpec.encoding.color.legend = null;
|
|
101
|
+
}
|
|
102
|
+
const colorFieldName = this.colorFieldName || DEFAULT_COLOR_FIELD_NAME;
|
|
103
|
+
if (colorFieldName) {
|
|
104
|
+
this.baseChartSpec.encoding.color.field = colorFieldName;
|
|
105
|
+
}
|
|
106
|
+
const legendTitle = this.legendTitle;
|
|
107
|
+
if (legendTitle) {
|
|
108
|
+
this.baseChartSpec.encoding.color.title = legendTitle;
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
this.baseChartSpec.encoding.color.title = '';
|
|
112
|
+
}
|
|
113
|
+
let outerRadius = this.outerRadius;
|
|
114
|
+
let innerRadius = this.innerRadius;
|
|
115
|
+
if (!outerRadius) {
|
|
116
|
+
outerRadius = innerRadius + DEFAULT_RING_WIDTH;
|
|
117
|
+
}
|
|
118
|
+
if (!innerRadius) {
|
|
119
|
+
innerRadius = outerRadius - DEFAULT_RING_WIDTH;
|
|
120
|
+
}
|
|
121
|
+
let layerFiels = 1;
|
|
122
|
+
if (this.gauge) {
|
|
123
|
+
this.baseChartSpec.layer = [
|
|
124
|
+
{
|
|
125
|
+
data: { values: [{ progress: 'default', value: 100 }] },
|
|
126
|
+
mark: { type: 'arc', innerRadius },
|
|
127
|
+
encoding: {
|
|
128
|
+
theta: { field: 'value', type: 'quantitative' },
|
|
129
|
+
color: { value: '#E4E9F0' },
|
|
130
|
+
tooltip: null
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
mark: { type: 'arc', outerRadius, innerRadius, padAngle: 0.01 }
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
mark: { type: 'arc', innerRadius, padAngle: 0.01 }
|
|
138
|
+
}
|
|
139
|
+
];
|
|
140
|
+
layerFiels = 2;
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
this.baseChartSpec.layer = [
|
|
144
|
+
{
|
|
145
|
+
mark: { type: 'arc', outerRadius, innerRadius }
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
mark: { type: 'arc', innerRadius, stroke: '#fff' }
|
|
149
|
+
}
|
|
150
|
+
];
|
|
151
|
+
}
|
|
152
|
+
const centerText = this.centerText;
|
|
153
|
+
if (centerText) {
|
|
154
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
155
|
+
this.baseChartSpec.layer.push({
|
|
156
|
+
data: { values: [{ centerText: centerText, value: 0 }] },
|
|
157
|
+
mark: { align: 'center', type: 'text', baseline: 'middle' },
|
|
158
|
+
encoding: {
|
|
159
|
+
color: { value: '#4C5054' },
|
|
160
|
+
text: { field: 'centerText' },
|
|
161
|
+
size: { value: { expr: 'height * 0.09' } },
|
|
162
|
+
tooltip: null
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
const centerSubText = this.centerSubText;
|
|
167
|
+
if (centerSubText) {
|
|
168
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
169
|
+
this.baseChartSpec.layer.push({
|
|
170
|
+
data: { values: [{ centerSubText: centerSubText, value: 0 }] },
|
|
171
|
+
mark: {
|
|
172
|
+
align: 'center',
|
|
173
|
+
type: 'text',
|
|
174
|
+
baseline: 'middle',
|
|
175
|
+
y: { expr: 'height/2 + 20' }
|
|
176
|
+
},
|
|
177
|
+
encoding: {
|
|
178
|
+
color: { value: '#6A6D70' },
|
|
179
|
+
text: { field: 'centerSubText' },
|
|
180
|
+
size: { value: { expr: 'height * 0.06' } },
|
|
181
|
+
tooltip: null
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
const labelRadius = this.labelRadius;
|
|
186
|
+
const labelField = this.labelField || DEFAULT_LABEL_FIELD_NAME;
|
|
187
|
+
if (labelRadius) {
|
|
188
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
189
|
+
this.baseChartSpec.layer.push({
|
|
190
|
+
mark: { type: 'text', radius: labelRadius },
|
|
191
|
+
encoding: {
|
|
192
|
+
text: { field: labelField, type: 'quantitative' }
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
if (this.showTooltip) {
|
|
197
|
+
if (this.tooltipOptions) {
|
|
198
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
199
|
+
this.baseChartSpec.layer[layerFiels].mark.tooltip = { content: 'data' };
|
|
200
|
+
this.tooltipSpec = {
|
|
201
|
+
actions: false,
|
|
202
|
+
tooltip: this.tooltipOptions
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
this.baseChartSpec.encoding.tooltip = {
|
|
207
|
+
field: labelField,
|
|
208
|
+
aggregate: 'count',
|
|
209
|
+
type: 'quantitative'
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
const spec = Object.assign(this.baseChartSpec, chartData);
|
|
214
|
+
this.visualizationSpec = spec;
|
|
183
215
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
188
|
-
this.baseChartSpec.layer.push({
|
|
189
|
-
mark: { type: 'text', radius: labelRadius },
|
|
190
|
-
encoding: {
|
|
191
|
-
text: { field: labelField, type: 'quantitative' }
|
|
192
|
-
}
|
|
193
|
-
});
|
|
216
|
+
componentWillLoad() {
|
|
217
|
+
usage.trackComponent(this.root);
|
|
218
|
+
this.parseData();
|
|
194
219
|
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
198
|
-
this.baseChartSpec.layer[layerFiels].mark.tooltip = { content: 'data' };
|
|
199
|
-
this.tooltipSpec = {
|
|
200
|
-
actions: false,
|
|
201
|
-
tooltip: this.tooltipOptions
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
else {
|
|
205
|
-
this.baseChartSpec.encoding.tooltip = {
|
|
206
|
-
field: labelField,
|
|
207
|
-
aggregate: 'count',
|
|
208
|
-
type: 'quantitative'
|
|
209
|
-
};
|
|
210
|
-
}
|
|
220
|
+
render() {
|
|
221
|
+
return (index.h("gux-visualization-beta", { key: '1841c32ed4312b87b8bdeca52a007a6905effce9', visualizationSpec: this.visualizationSpec, embedOptions: this.tooltipSpec }));
|
|
211
222
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
usage.trackComponent(this.root);
|
|
217
|
-
this.parseData();
|
|
218
|
-
}
|
|
219
|
-
render() {
|
|
220
|
-
return (index.h("gux-visualization-beta", { visualizationSpec: this.visualizationSpec, embedOptions: this.tooltipSpec }));
|
|
221
|
-
}
|
|
222
|
-
get root() { return index.getElement(this); }
|
|
223
|
-
static get watchers() { return {
|
|
224
|
-
"chartData": ["parseData"]
|
|
225
|
-
}; }
|
|
223
|
+
get root() { return index.getElement(this); }
|
|
224
|
+
static get watchers() { return {
|
|
225
|
+
"chartData": ["parseData"]
|
|
226
|
+
}; }
|
|
226
227
|
};
|
|
227
|
-
GuxDonutChart.style =
|
|
228
|
+
GuxDonutChart.style = GuxChartDonutBetaStyle0;
|
|
228
229
|
|
|
229
230
|
exports.gux_chart_donut_beta = GuxDonutChart;
|