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
|
@@ -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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
80
|
-
|
|
92
|
+
else {
|
|
93
|
+
this.baseChartSpec.encoding.color.legend = null;
|
|
81
94
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
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
|
-
|
|
160
|
-
|
|
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
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
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
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
aggregate: 'count',
|
|
202
|
-
type: 'quantitative'
|
|
222
|
+
}
|
|
223
|
+
static get styleUrls() {
|
|
224
|
+
return {
|
|
225
|
+
"$": ["gux-chart-donut.css"]
|
|
203
226
|
};
|
|
204
|
-
}
|
|
205
227
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
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
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
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
|
}
|