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
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2024 Genesys Cloud Services, Inc.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-a4712860.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
6
7
|
|
|
7
8
|
/*
|
|
8
|
-
Stencil Client Patch Browser v4.
|
|
9
|
+
Stencil Client Patch Browser v4.12.6 | MIT Licensed | https://stenciljs.com
|
|
9
10
|
*/
|
|
10
11
|
const patchBrowser = () => {
|
|
11
12
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('genesys-chart-webcomponents.cjs.js', document.baseURI).href));
|
|
@@ -16,7 +17,8 @@ const patchBrowser = () => {
|
|
|
16
17
|
return index.promiseResolve(opts);
|
|
17
18
|
};
|
|
18
19
|
|
|
19
|
-
patchBrowser().then(options => {
|
|
20
|
+
patchBrowser().then(async (options) => {
|
|
21
|
+
await appGlobals.globalScripts();
|
|
20
22
|
return index.bootstrapLazy([["gux-visualization-beta.cjs",[[1,"gux-visualization-beta",{"visualizationSpec":[16],"embedOptions":[16]}]]],["gux-chart-column-beta.cjs",[[1,"gux-chart-column-beta",{"chartData":[16],"xTickLabelSlant":[4,"x-tick-label-slant"],"includeLegend":[4,"include-legend"],"xFieldName":[1,"x-field-name"],"yFieldName":[1,"y-field-name"],"xAxisTitle":[1,"x-axis-title"],"yAxisTitle":[1,"y-axis-title"],"legendTitle":[1,"legend-title"],"legendPosition":[1,"legend-position"],"chartLayers":[16],"embedOptions":[16]},null,{"chartData":["parseData"]}]]],["gux-chart-donut-beta.cjs",[[1,"gux-chart-donut-beta",{"chartData":[16],"includeLegend":[4,"include-legend"],"legendPosition":[1,"legend-position"],"legendTitle":[1,"legend-title"],"colorFieldName":[1,"color-field-name"],"outerRadius":[2,"outer-radius"],"innerRadius":[2,"inner-radius"],"labelRadius":[2,"label-radius"],"labelField":[1,"label-field"],"gauge":[4],"centerText":[1,"center-text"],"centerSubText":[1,"center-sub-text"],"showTooltip":[4,"show-tooltip"],"tooltipOptions":[16],"legendX":[2,"legend-x"],"legendY":[2,"legend-y"],"legendFontSize":[2,"legend-font-size"],"legendSymbolSize":[2,"legend-symbol-size"],"embedOptions":[16]},null,{"chartData":["parseData"]}]]],["gux-chart-line-beta.cjs",[[1,"gux-chart-line-beta",{"chartData":[16],"xTickLabelSlant":[4,"x-tick-label-slant"],"includeLegend":[4,"include-legend"],"legendPosition":[1,"legend-position"],"includeDataPointMarkers":[4,"include-data-point-markers"],"xFieldName":[1,"x-field-name"],"xAxisTitle":[1,"x-axis-title"],"yFieldName":[1,"y-field-name"],"yAxisTitle":[1,"y-axis-title"],"legendTitle":[1,"legend-title"],"colorFieldName":[1,"color-field-name"],"strokeDash":[4,"stroke-dash"],"interpolation":[1],"embedOptions":[16]},null,{"chartData":["parseData"]}]]],["gux-chart-pie-beta.cjs",[[1,"gux-chart-pie-beta",{"chartData":[16],"includeLegend":[4,"include-legend"],"legendPosition":[1,"legend-position"],"legendTitle":[1,"legend-title"],"colorFieldName":[1,"color-field-name"],"outerRadius":[2,"outer-radius"],"labelRadius":[2,"label-radius"],"labelField":[1,"label-field"],"embedOptions":[16]},null,{"chartData":["parseData"]}]]],["gux-chart-scatter-plot-beta.cjs",[[1,"gux-chart-scatter-plot-beta",{"chartData":[16],"xTickLabelSlant":[4,"x-tick-label-slant"],"includeLegend":[4,"include-legend"],"legendPosition":[1,"legend-position"],"xFieldName":[1,"x-field-name"],"xAxisTitle":[1,"x-axis-title"],"yFieldName":[1,"y-field-name"],"yAxisTitle":[1,"y-axis-title"],"legendTitle":[1,"legend-title"],"colorFieldName":[1,"color-field-name"],"useShape":[1,"use-shape"],"embedOptions":[16]},null,{"chartData":["parseData"]}]]]], options);
|
|
21
23
|
});
|
|
22
24
|
|
|
@@ -2,139 +2,140 @@
|
|
|
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 guxChartColumnCss = "gux-visualization-beta{height:fit-content;color:#2e394c;}gux-visualization-beta .mark-rect.layer_0_marks path{fill:url(#diagonalHatch0)}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}";
|
|
10
|
+
const GuxChartColumnBetaStyle0 = guxChartColumnCss;
|
|
10
11
|
|
|
11
12
|
const GuxColumnChart = class {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
parseData() {
|
|
56
|
-
if (!this.xFieldName || !this.yFieldName) {
|
|
57
|
-
logError.logError(this.root, 'requires x-field-name and y-field-name');
|
|
58
|
-
}
|
|
59
|
-
let chartData = {};
|
|
60
|
-
if (this.chartData) {
|
|
61
|
-
chartData = { data: this.chartData };
|
|
62
|
-
}
|
|
63
|
-
if (this.xTickLabelSlant) {
|
|
64
|
-
this.baseChartSpec.config.axisX.labelAngle = 45;
|
|
65
|
-
}
|
|
66
|
-
if (this.includeLegend) {
|
|
67
|
-
this.baseChartSpec.encoding.color = { field: 'category' };
|
|
68
|
-
}
|
|
69
|
-
if (this.legendPosition) {
|
|
70
|
-
this.baseChartSpec.config.legend.orient = this.legendPosition;
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
this.baseChartSpec = {
|
|
17
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v5.json',
|
|
18
|
+
mark: { type: 'bar' },
|
|
19
|
+
config: {
|
|
20
|
+
axis: {
|
|
21
|
+
ticks: false,
|
|
22
|
+
titlePadding: 8
|
|
23
|
+
},
|
|
24
|
+
axisX: {
|
|
25
|
+
labelAngle: 0
|
|
26
|
+
},
|
|
27
|
+
scale: {
|
|
28
|
+
bandPaddingInner: 0.4, // padding between columns / bars
|
|
29
|
+
bandPaddingOuter: 0.4 // padding between leftmost/rightmost column/bar from axes
|
|
30
|
+
},
|
|
31
|
+
legend: {
|
|
32
|
+
symbolType: 'circle'
|
|
33
|
+
},
|
|
34
|
+
bar: {
|
|
35
|
+
color: logError.VISUALIZATION_COLORS[0]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
encoding: {
|
|
39
|
+
x: { type: 'nominal' },
|
|
40
|
+
y: { type: 'quantitative' },
|
|
41
|
+
tooltip: { aggregate: 'count', type: 'quantitative' }
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
this.chartData = undefined;
|
|
45
|
+
this.xTickLabelSlant = undefined;
|
|
46
|
+
this.includeLegend = undefined;
|
|
47
|
+
this.xFieldName = undefined;
|
|
48
|
+
this.yFieldName = undefined;
|
|
49
|
+
this.xAxisTitle = undefined;
|
|
50
|
+
this.yAxisTitle = undefined;
|
|
51
|
+
this.legendTitle = undefined;
|
|
52
|
+
this.legendPosition = 'right';
|
|
53
|
+
this.chartLayers = undefined;
|
|
54
|
+
this.embedOptions = undefined;
|
|
71
55
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
56
|
+
parseData() {
|
|
57
|
+
if (!this.xFieldName || !this.yFieldName) {
|
|
58
|
+
logError.logError(this.root, 'requires x-field-name and y-field-name');
|
|
59
|
+
}
|
|
60
|
+
let chartData = {};
|
|
61
|
+
if (this.chartData) {
|
|
62
|
+
chartData = { data: this.chartData };
|
|
63
|
+
}
|
|
64
|
+
if (this.xTickLabelSlant) {
|
|
65
|
+
this.baseChartSpec.config.axisX.labelAngle = 45;
|
|
66
|
+
}
|
|
67
|
+
if (this.includeLegend) {
|
|
68
|
+
this.baseChartSpec.encoding.color = { field: 'category' };
|
|
69
|
+
}
|
|
70
|
+
if (this.legendPosition) {
|
|
71
|
+
this.baseChartSpec.config.legend.orient = this.legendPosition;
|
|
72
|
+
}
|
|
73
|
+
const xFieldName = this.xFieldName;
|
|
74
|
+
const yFieldName = this.yFieldName;
|
|
75
|
+
const xAxisTitle = this.xAxisTitle;
|
|
76
|
+
const yAxisTitle = this.yAxisTitle;
|
|
77
|
+
const legendTitle = this.legendTitle;
|
|
78
|
+
if (this.chartLayers) {
|
|
79
|
+
const layers = this.chartLayers.map(layerName => {
|
|
80
|
+
return {
|
|
81
|
+
mark: 'bar',
|
|
82
|
+
transform: [
|
|
83
|
+
{
|
|
84
|
+
filter: { field: 'series', equal: layerName }
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
encoding: {
|
|
88
|
+
x: {
|
|
89
|
+
field: xFieldName,
|
|
90
|
+
type: 'nominal'
|
|
91
|
+
},
|
|
92
|
+
y: {
|
|
93
|
+
field: yFieldName,
|
|
94
|
+
type: 'quantitative'
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
this.baseChartSpec.layer = layers;
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
if (xFieldName) {
|
|
103
|
+
this.baseChartSpec.encoding.x.field = xFieldName;
|
|
84
104
|
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
x: {
|
|
88
|
-
field: xFieldName,
|
|
89
|
-
type: 'nominal'
|
|
90
|
-
},
|
|
91
|
-
y: {
|
|
92
|
-
field: yFieldName,
|
|
93
|
-
type: 'quantitative'
|
|
105
|
+
if (yFieldName) {
|
|
106
|
+
this.baseChartSpec.encoding.y.field = yFieldName;
|
|
94
107
|
}
|
|
95
|
-
|
|
108
|
+
if (xAxisTitle) {
|
|
109
|
+
this.baseChartSpec.encoding.x.title = xAxisTitle;
|
|
110
|
+
}
|
|
111
|
+
if (yAxisTitle) {
|
|
112
|
+
this.baseChartSpec.encoding.y.title = yAxisTitle;
|
|
113
|
+
}
|
|
114
|
+
if (legendTitle) {
|
|
115
|
+
this.baseChartSpec.encoding.color.title = legendTitle;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
// Set up colors for legend and bars
|
|
119
|
+
const rangeField = xFieldName;
|
|
120
|
+
const rangeConfig = {
|
|
121
|
+
[rangeField]: logError.VISUALIZATION_COLORS
|
|
96
122
|
};
|
|
97
|
-
|
|
98
|
-
|
|
123
|
+
this.baseChartSpec.config.range = rangeConfig;
|
|
124
|
+
const spec = Object.assign(this.baseChartSpec, chartData);
|
|
125
|
+
this.visualizationSpec = spec;
|
|
126
|
+
}
|
|
127
|
+
componentWillLoad() {
|
|
128
|
+
usage.trackComponent(this.root);
|
|
129
|
+
this.parseData();
|
|
99
130
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
this.baseChartSpec.encoding.x.field = xFieldName;
|
|
103
|
-
}
|
|
104
|
-
if (yFieldName) {
|
|
105
|
-
this.baseChartSpec.encoding.y.field = yFieldName;
|
|
106
|
-
}
|
|
107
|
-
if (xAxisTitle) {
|
|
108
|
-
this.baseChartSpec.encoding.x.title = xAxisTitle;
|
|
109
|
-
}
|
|
110
|
-
if (yAxisTitle) {
|
|
111
|
-
this.baseChartSpec.encoding.y.title = yAxisTitle;
|
|
112
|
-
}
|
|
113
|
-
if (legendTitle) {
|
|
114
|
-
this.baseChartSpec.encoding.color.title = legendTitle;
|
|
115
|
-
}
|
|
131
|
+
render() {
|
|
132
|
+
return (index.h("gux-visualization-beta", { key: '204c508da5ccda0059c2500fa91b06ad6ac91c2d', visualizationSpec: this.visualizationSpec }));
|
|
116
133
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
};
|
|
122
|
-
this.baseChartSpec.config.range = rangeConfig;
|
|
123
|
-
const spec = Object.assign(this.baseChartSpec, chartData);
|
|
124
|
-
this.visualizationSpec = spec;
|
|
125
|
-
}
|
|
126
|
-
componentWillLoad() {
|
|
127
|
-
usage.trackComponent(this.root);
|
|
128
|
-
this.parseData();
|
|
129
|
-
}
|
|
130
|
-
render() {
|
|
131
|
-
return (index.h("gux-visualization-beta", { visualizationSpec: this.visualizationSpec }));
|
|
132
|
-
}
|
|
133
|
-
get root() { return index.getElement(this); }
|
|
134
|
-
static get watchers() { return {
|
|
135
|
-
"chartData": ["parseData"]
|
|
136
|
-
}; }
|
|
134
|
+
get root() { return index.getElement(this); }
|
|
135
|
+
static get watchers() { return {
|
|
136
|
+
"chartData": ["parseData"]
|
|
137
|
+
}; }
|
|
137
138
|
};
|
|
138
|
-
GuxColumnChart.style =
|
|
139
|
+
GuxColumnChart.style = GuxChartColumnBetaStyle0;
|
|
139
140
|
|
|
140
141
|
exports.gux_chart_column_beta = GuxColumnChart;
|