genesys-spark-chart-components 4.74.0 → 4.75.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/dist/{esm/usage-37155dad.js → cjs/color-palette-449f7af4.js} +22 -2
- package/dist/cjs/genesys-chart-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +11 -7
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +10 -6
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +10 -6
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +16 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/log-error-8f448752.js +7 -0
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +45 -5
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +44 -4
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +44 -4
- package/dist/collection/components/beta/gux-visualization/gux-visualization.css +0 -16
- package/dist/collection/components/beta/gux-visualization/gux-visualization.js +14 -3
- package/dist/collection/utils/theme/color-palette.js +2 -0
- package/dist/{cjs/usage-cc8b7705.js → esm/color-palette-91f190ab.js} +17 -4
- package/dist/esm/genesys-chart-webcomponents.js +1 -1
- package/dist/esm/gux-chart-column-beta.entry.js +8 -4
- package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
- package/dist/esm/gux-chart-line-beta.entry.js +8 -4
- package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +8 -4
- package/dist/esm/gux-visualization-beta.entry.js +15 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/log-error-fbbfc3ab.js +5 -0
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/p-1b0f0f44.js +1 -0
- package/dist/genesys-chart-webcomponents/p-23610106.js +1 -0
- package/dist/genesys-chart-webcomponents/{p-3f926a7b.entry.js → p-522973c4.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-901555c9.entry.js +11 -0
- package/dist/genesys-chart-webcomponents/p-9a7c7ed1.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/{p-596f0ed2.entry.js → p-9c3c159b.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/p-b99c580c.entry.js +1 -0
- package/dist/genesys-chart-webcomponents/p-ea6be05e.entry.js +1 -0
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-chart-column/gux-chart-column.d.ts +8 -0
- package/dist/types/components/beta/gux-chart-line/gux-chart-line.d.ts +8 -0
- package/dist/types/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.d.ts +8 -0
- package/dist/types/components.d.ts +48 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/dist/types/utils/theme/color-palette.d.ts +2 -0
- package/package.json +1 -1
- package/dist/cjs/log-error-28c7064e.js +0 -21
- package/dist/esm/log-error-ff9bdda4.js +0 -18
- package/dist/genesys-chart-webcomponents/p-13381e52.entry.js +0 -11
- package/dist/genesys-chart-webcomponents/p-1f3e8490.js +0 -1
- package/dist/genesys-chart-webcomponents/p-732b2d61.entry.js +0 -1
- package/dist/genesys-chart-webcomponents/p-9041644a.entry.js +0 -1
- package/dist/genesys-chart-webcomponents/p-ee3e656e.entry.js +0 -1
- package/dist/genesys-chart-webcomponents/p-f50e3789.js +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
1
3
|
const name = "genesys-spark-chart-components";
|
|
2
|
-
const version = "4.
|
|
4
|
+
const version = "4.75.0";
|
|
3
5
|
const description = "Common chart webcomponents";
|
|
4
6
|
const license = "MIT";
|
|
5
7
|
const main = "dist/stencil-wrapper.js";
|
|
@@ -202,4 +204,22 @@ function getVersionEvent(packageInfoVersion) {
|
|
|
202
204
|
};
|
|
203
205
|
}
|
|
204
206
|
|
|
205
|
-
|
|
207
|
+
const VISUALIZATION_COLORS = [
|
|
208
|
+
'#203B73',
|
|
209
|
+
'#1DA8B3',
|
|
210
|
+
'#75A8FF',
|
|
211
|
+
'#8452CF',
|
|
212
|
+
'#B5B5EB',
|
|
213
|
+
'#CC3EBE',
|
|
214
|
+
'#5E5782',
|
|
215
|
+
'#FF8FDD',
|
|
216
|
+
'#868C1E',
|
|
217
|
+
'#DDD933'
|
|
218
|
+
];
|
|
219
|
+
const DEFAULT_LABEL_COLOR = '#596373';
|
|
220
|
+
const DEFAULT_DOMAIN_COLOR = '#596373';
|
|
221
|
+
|
|
222
|
+
exports.DEFAULT_DOMAIN_COLOR = DEFAULT_DOMAIN_COLOR;
|
|
223
|
+
exports.DEFAULT_LABEL_COLOR = DEFAULT_LABEL_COLOR;
|
|
224
|
+
exports.VISUALIZATION_COLORS = VISUALIZATION_COLORS;
|
|
225
|
+
exports.trackComponent = trackComponent;
|
|
@@ -19,7 +19,7 @@ const patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
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);
|
|
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",{"labelColor":[1,"label-color"],"domainColor":[1,"domain-color"],"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",{"labelColor":[1,"label-color"],"domainColor":[1,"domain-color"],"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",{"labelColor":[1,"label-color"],"domainColor":[1,"domain-color"],"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);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-95713c33.js');
|
|
6
|
-
const
|
|
7
|
-
const logError = require('./log-error-
|
|
6
|
+
const colorPalette = require('./color-palette-449f7af4.js');
|
|
7
|
+
const logError = require('./log-error-8f448752.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
10
|
const GuxChartColumnBetaStyle0 = guxChartColumnCss;
|
|
@@ -19,7 +19,9 @@ const GuxColumnChart = class {
|
|
|
19
19
|
config: {
|
|
20
20
|
axis: {
|
|
21
21
|
ticks: false,
|
|
22
|
-
titlePadding: 8
|
|
22
|
+
titlePadding: 8,
|
|
23
|
+
labelColor: this.labelColor || colorPalette.DEFAULT_LABEL_COLOR,
|
|
24
|
+
domainColor: this.domainColor || colorPalette.DEFAULT_DOMAIN_COLOR
|
|
23
25
|
},
|
|
24
26
|
axisX: {
|
|
25
27
|
labelAngle: 0
|
|
@@ -32,7 +34,7 @@ const GuxColumnChart = class {
|
|
|
32
34
|
symbolType: 'circle'
|
|
33
35
|
},
|
|
34
36
|
bar: {
|
|
35
|
-
color:
|
|
37
|
+
color: colorPalette.VISUALIZATION_COLORS[0]
|
|
36
38
|
}
|
|
37
39
|
},
|
|
38
40
|
encoding: {
|
|
@@ -41,6 +43,8 @@ const GuxColumnChart = class {
|
|
|
41
43
|
tooltip: { aggregate: 'count', type: 'quantitative' }
|
|
42
44
|
}
|
|
43
45
|
};
|
|
46
|
+
this.labelColor = colorPalette.DEFAULT_LABEL_COLOR;
|
|
47
|
+
this.domainColor = colorPalette.DEFAULT_DOMAIN_COLOR;
|
|
44
48
|
this.chartData = undefined;
|
|
45
49
|
this.xTickLabelSlant = undefined;
|
|
46
50
|
this.includeLegend = undefined;
|
|
@@ -118,18 +122,18 @@ const GuxColumnChart = class {
|
|
|
118
122
|
// Set up colors for legend and bars
|
|
119
123
|
const rangeField = xFieldName;
|
|
120
124
|
const rangeConfig = {
|
|
121
|
-
[rangeField]:
|
|
125
|
+
[rangeField]: colorPalette.VISUALIZATION_COLORS
|
|
122
126
|
};
|
|
123
127
|
this.baseChartSpec.config.range = rangeConfig;
|
|
124
128
|
const spec = Object.assign(this.baseChartSpec, chartData);
|
|
125
129
|
this.visualizationSpec = spec;
|
|
126
130
|
}
|
|
127
131
|
componentWillLoad() {
|
|
128
|
-
|
|
132
|
+
colorPalette.trackComponent(this.root);
|
|
129
133
|
this.parseData();
|
|
130
134
|
}
|
|
131
135
|
render() {
|
|
132
|
-
return (index.h("gux-visualization-beta", { key: '
|
|
136
|
+
return (index.h("gux-visualization-beta", { key: '5bcc2fcee3bfb4905b9fdbb572593402531f960d', visualizationSpec: this.visualizationSpec }));
|
|
133
137
|
}
|
|
134
138
|
get root() { return index.getElement(this); }
|
|
135
139
|
static get watchers() { return {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-95713c33.js');
|
|
6
|
-
const
|
|
7
|
-
const logError = require('./log-error-
|
|
6
|
+
const colorPalette = require('./color-palette-449f7af4.js');
|
|
7
|
+
const logError = require('./log-error-8f448752.js');
|
|
8
8
|
|
|
9
9
|
const guxChartDonutCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
10
10
|
const GuxChartDonutBetaStyle0 = guxChartDonutCss;
|
|
@@ -28,7 +28,7 @@ const GuxDonutChart = class {
|
|
|
28
28
|
color: {
|
|
29
29
|
field: DEFAULT_COLOR_FIELD_NAME,
|
|
30
30
|
type: 'nominal',
|
|
31
|
-
scale: { range:
|
|
31
|
+
scale: { range: colorPalette.VISUALIZATION_COLORS },
|
|
32
32
|
legend: null
|
|
33
33
|
}
|
|
34
34
|
},
|
|
@@ -214,7 +214,7 @@ const GuxDonutChart = class {
|
|
|
214
214
|
this.visualizationSpec = spec;
|
|
215
215
|
}
|
|
216
216
|
componentWillLoad() {
|
|
217
|
-
|
|
217
|
+
colorPalette.trackComponent(this.root);
|
|
218
218
|
this.parseData();
|
|
219
219
|
}
|
|
220
220
|
render() {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-95713c33.js');
|
|
6
|
-
const
|
|
7
|
-
const logError = require('./log-error-
|
|
6
|
+
const colorPalette = require('./color-palette-449f7af4.js');
|
|
7
|
+
const logError = require('./log-error-8f448752.js');
|
|
8
8
|
|
|
9
9
|
const guxChartLineCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
10
10
|
const GuxChartLineBetaStyle0 = guxChartLineCss;
|
|
@@ -24,7 +24,9 @@ const GuxLineChart = class {
|
|
|
24
24
|
config: {
|
|
25
25
|
axis: {
|
|
26
26
|
ticks: false,
|
|
27
|
-
titlePadding: 8
|
|
27
|
+
titlePadding: 8,
|
|
28
|
+
labelColor: this.labelColor || colorPalette.DEFAULT_LABEL_COLOR,
|
|
29
|
+
domainColor: this.domainColor || colorPalette.DEFAULT_DOMAIN_COLOR
|
|
28
30
|
},
|
|
29
31
|
axisX: {
|
|
30
32
|
labelAngle: 0
|
|
@@ -39,12 +41,14 @@ const GuxLineChart = class {
|
|
|
39
41
|
color: {
|
|
40
42
|
field: DEFAULT_COLOR_FIELD_NAME,
|
|
41
43
|
type: 'nominal',
|
|
42
|
-
scale: { range:
|
|
44
|
+
scale: { range: colorPalette.VISUALIZATION_COLORS },
|
|
43
45
|
legend: null
|
|
44
46
|
},
|
|
45
47
|
tooltip: { aggregate: 'count', type: 'quantitative' }
|
|
46
48
|
}
|
|
47
49
|
};
|
|
50
|
+
this.labelColor = colorPalette.DEFAULT_LABEL_COLOR;
|
|
51
|
+
this.domainColor = colorPalette.DEFAULT_DOMAIN_COLOR;
|
|
48
52
|
this.chartData = undefined;
|
|
49
53
|
this.xTickLabelSlant = undefined;
|
|
50
54
|
this.includeLegend = undefined;
|
|
@@ -120,11 +124,11 @@ const GuxLineChart = class {
|
|
|
120
124
|
this.visualizationSpec = spec;
|
|
121
125
|
}
|
|
122
126
|
componentWillLoad() {
|
|
123
|
-
|
|
127
|
+
colorPalette.trackComponent(this.root);
|
|
124
128
|
this.parseData();
|
|
125
129
|
}
|
|
126
130
|
render() {
|
|
127
|
-
return (index.h("gux-visualization-beta", { key: '
|
|
131
|
+
return (index.h("gux-visualization-beta", { key: '9a0bbdde50dc38102cff841ca0b2aa9aa47b47ff', visualizationSpec: this.visualizationSpec }));
|
|
128
132
|
}
|
|
129
133
|
get root() { return index.getElement(this); }
|
|
130
134
|
static get watchers() { return {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-95713c33.js');
|
|
6
|
-
const
|
|
7
|
-
const logError = require('./log-error-
|
|
6
|
+
const colorPalette = require('./color-palette-449f7af4.js');
|
|
7
|
+
const logError = require('./log-error-8f448752.js');
|
|
8
8
|
|
|
9
9
|
const guxChartPieCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
10
10
|
const GuxChartPieBetaStyle0 = guxChartPieCss;
|
|
@@ -27,7 +27,7 @@ const GuxPieChart = class {
|
|
|
27
27
|
color: {
|
|
28
28
|
field: DEFAULT_COLOR_FIELD_NAME,
|
|
29
29
|
type: 'nominal',
|
|
30
|
-
scale: { range:
|
|
30
|
+
scale: { range: colorPalette.VISUALIZATION_COLORS },
|
|
31
31
|
legend: null
|
|
32
32
|
},
|
|
33
33
|
tooltip: { aggregate: 'count', type: 'quantitative' }
|
|
@@ -98,7 +98,7 @@ const GuxPieChart = class {
|
|
|
98
98
|
this.visualizationSpec = spec;
|
|
99
99
|
}
|
|
100
100
|
componentWillLoad() {
|
|
101
|
-
|
|
101
|
+
colorPalette.trackComponent(this.root);
|
|
102
102
|
this.parseData();
|
|
103
103
|
}
|
|
104
104
|
render() {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-95713c33.js');
|
|
6
|
-
const
|
|
7
|
-
const logError = require('./log-error-
|
|
6
|
+
const colorPalette = require('./color-palette-449f7af4.js');
|
|
7
|
+
const logError = require('./log-error-8f448752.js');
|
|
8
8
|
|
|
9
9
|
const guxChartScatterPlotCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
10
10
|
const GuxChartScatterPlotBetaStyle0 = guxChartScatterPlotCss;
|
|
@@ -26,7 +26,9 @@ const GuxScatterPlotChart = class {
|
|
|
26
26
|
axis: {
|
|
27
27
|
ticks: false,
|
|
28
28
|
titlePadding: 8,
|
|
29
|
-
gridColor: '#F6F7F9'
|
|
29
|
+
gridColor: '#F6F7F9',
|
|
30
|
+
labelColor: this.labelColor || colorPalette.DEFAULT_LABEL_COLOR,
|
|
31
|
+
domainColor: this.domainColor || colorPalette.DEFAULT_DOMAIN_COLOR
|
|
30
32
|
},
|
|
31
33
|
axisX: {
|
|
32
34
|
labelAngle: 0,
|
|
@@ -43,7 +45,7 @@ const GuxScatterPlotChart = class {
|
|
|
43
45
|
color: {
|
|
44
46
|
field: DEFAULT_COLOR_FIELD_NAME,
|
|
45
47
|
type: 'nominal',
|
|
46
|
-
scale: { range:
|
|
48
|
+
scale: { range: colorPalette.VISUALIZATION_COLORS },
|
|
47
49
|
legend: null
|
|
48
50
|
},
|
|
49
51
|
size: {
|
|
@@ -58,6 +60,8 @@ const GuxScatterPlotChart = class {
|
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
};
|
|
63
|
+
this.labelColor = colorPalette.DEFAULT_LABEL_COLOR;
|
|
64
|
+
this.domainColor = colorPalette.DEFAULT_DOMAIN_COLOR;
|
|
61
65
|
this.chartData = undefined;
|
|
62
66
|
this.xTickLabelSlant = undefined;
|
|
63
67
|
this.includeLegend = undefined;
|
|
@@ -128,11 +132,11 @@ const GuxScatterPlotChart = class {
|
|
|
128
132
|
this.visualizationSpec = spec;
|
|
129
133
|
}
|
|
130
134
|
componentWillLoad() {
|
|
131
|
-
|
|
135
|
+
colorPalette.trackComponent(this.root);
|
|
132
136
|
this.parseData();
|
|
133
137
|
}
|
|
134
138
|
render() {
|
|
135
|
-
return (index.h("gux-visualization-beta", { key: '
|
|
139
|
+
return (index.h("gux-visualization-beta", { key: '99d30b8b621965db1bb64abc45fa8075f7f1db2f', visualizationSpec: this.visualizationSpec }));
|
|
136
140
|
}
|
|
137
141
|
get root() { return index.getElement(this); }
|
|
138
142
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index$2 = require('./index-95713c33.js');
|
|
6
|
-
const
|
|
6
|
+
const colorPalette = require('./color-palette-449f7af4.js');
|
|
7
7
|
|
|
8
8
|
/*!
|
|
9
9
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
@@ -67823,7 +67823,7 @@ const timeFormatLocale = {
|
|
|
67823
67823
|
}
|
|
67824
67824
|
};
|
|
67825
67825
|
|
|
67826
|
-
const guxVisualizationCss = ":host{height:fit-content}
|
|
67826
|
+
const guxVisualizationCss = ":host{height:fit-content}.gux-chart-container{width:100%}";
|
|
67827
67827
|
const GuxVisualizationBetaStyle0 = guxVisualizationCss;
|
|
67828
67828
|
|
|
67829
67829
|
const GuxVisualization = class {
|
|
@@ -67831,16 +67831,26 @@ const GuxVisualization = class {
|
|
|
67831
67831
|
index$2.registerInstance(this, hostRef);
|
|
67832
67832
|
this.chartComponentReady = index$2.createEvent(this, "chartComponentReady", 7);
|
|
67833
67833
|
this.chartClicked = index$2.createEvent(this, "chartClicked", 7);
|
|
67834
|
-
|
|
67834
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
67835
|
+
this.defaultVisualizationSpec = {
|
|
67836
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v5.json',
|
|
67837
|
+
mark: { type: 'bar' },
|
|
67838
|
+
config: {
|
|
67839
|
+
axis: {
|
|
67840
|
+
labelColor: colorPalette.DEFAULT_LABEL_COLOR,
|
|
67841
|
+
domainColor: colorPalette.DEFAULT_DOMAIN_COLOR
|
|
67842
|
+
}
|
|
67843
|
+
}
|
|
67844
|
+
};
|
|
67835
67845
|
this.defaultEmbedOptions = {
|
|
67836
|
-
actions:
|
|
67846
|
+
actions: true,
|
|
67837
67847
|
renderer: 'svg'
|
|
67838
67848
|
};
|
|
67839
67849
|
this.visualizationSpec = undefined;
|
|
67840
67850
|
this.embedOptions = undefined;
|
|
67841
67851
|
}
|
|
67842
67852
|
componentWillLoad() {
|
|
67843
|
-
|
|
67853
|
+
colorPalette.trackComponent(this.root);
|
|
67844
67854
|
}
|
|
67845
67855
|
handleChartClick(_name, value) {
|
|
67846
67856
|
this.chartClicked.emit(value);
|
|
@@ -67871,7 +67881,7 @@ const GuxVisualization = class {
|
|
|
67871
67881
|
this.chartComponentReady.emit();
|
|
67872
67882
|
}
|
|
67873
67883
|
render() {
|
|
67874
|
-
return (index$2.h("div", { key: '
|
|
67884
|
+
return (index$2.h("div", { key: 'a65548cd5cfadfae0077c7126da2b79f1868981b', class: "gux-chart-container", ref: el => (this.chartContainer = el) }));
|
|
67875
67885
|
}
|
|
67876
67886
|
get root() { return index$2.getElement(this); }
|
|
67877
67887
|
};
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
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);
|
|
11
|
+
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",{"labelColor":[1,"label-color"],"domainColor":[1,"domain-color"],"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",{"labelColor":[1,"label-color"],"domainColor":[1,"domain-color"],"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",{"labelColor":[1,"label-color"],"domainColor":[1,"domain-color"],"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);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
2
2
|
import { h } from "@stencil/core";
|
|
3
3
|
import { trackComponent } from "../../../utils/tracking/usage";
|
|
4
|
-
import
|
|
4
|
+
import * as VisualizationColorUtil from "../../../utils/theme/color-palette";
|
|
5
5
|
import { logError } from "../../../utils/error/log-error";
|
|
6
6
|
export class GuxColumnChart {
|
|
7
7
|
constructor() {
|
|
@@ -12,7 +12,9 @@ export class GuxColumnChart {
|
|
|
12
12
|
config: {
|
|
13
13
|
axis: {
|
|
14
14
|
ticks: false,
|
|
15
|
-
titlePadding: 8
|
|
15
|
+
titlePadding: 8,
|
|
16
|
+
labelColor: this.labelColor || VisualizationColorUtil.DEFAULT_LABEL_COLOR,
|
|
17
|
+
domainColor: this.domainColor || VisualizationColorUtil.DEFAULT_DOMAIN_COLOR
|
|
16
18
|
},
|
|
17
19
|
axisX: {
|
|
18
20
|
labelAngle: 0
|
|
@@ -25,7 +27,7 @@ export class GuxColumnChart {
|
|
|
25
27
|
symbolType: 'circle'
|
|
26
28
|
},
|
|
27
29
|
bar: {
|
|
28
|
-
color: VISUALIZATION_COLORS[0]
|
|
30
|
+
color: VisualizationColorUtil.VISUALIZATION_COLORS[0]
|
|
29
31
|
}
|
|
30
32
|
},
|
|
31
33
|
encoding: {
|
|
@@ -34,6 +36,8 @@ export class GuxColumnChart {
|
|
|
34
36
|
tooltip: { aggregate: 'count', type: 'quantitative' }
|
|
35
37
|
}
|
|
36
38
|
};
|
|
39
|
+
this.labelColor = VisualizationColorUtil.DEFAULT_LABEL_COLOR;
|
|
40
|
+
this.domainColor = VisualizationColorUtil.DEFAULT_DOMAIN_COLOR;
|
|
37
41
|
this.chartData = undefined;
|
|
38
42
|
this.xTickLabelSlant = undefined;
|
|
39
43
|
this.includeLegend = undefined;
|
|
@@ -111,7 +115,7 @@ export class GuxColumnChart {
|
|
|
111
115
|
// Set up colors for legend and bars
|
|
112
116
|
const rangeField = xFieldName;
|
|
113
117
|
const rangeConfig = {
|
|
114
|
-
[rangeField]: VISUALIZATION_COLORS
|
|
118
|
+
[rangeField]: VisualizationColorUtil.VISUALIZATION_COLORS
|
|
115
119
|
};
|
|
116
120
|
this.baseChartSpec.config.range = rangeConfig;
|
|
117
121
|
const spec = Object.assign(this.baseChartSpec, chartData);
|
|
@@ -122,7 +126,7 @@ export class GuxColumnChart {
|
|
|
122
126
|
this.parseData();
|
|
123
127
|
}
|
|
124
128
|
render() {
|
|
125
|
-
return (h("gux-visualization-beta", { key: '
|
|
129
|
+
return (h("gux-visualization-beta", { key: '5bcc2fcee3bfb4905b9fdbb572593402531f960d', visualizationSpec: this.visualizationSpec }));
|
|
126
130
|
}
|
|
127
131
|
static get is() { return "gux-chart-column-beta"; }
|
|
128
132
|
static get encapsulation() { return "shadow"; }
|
|
@@ -138,6 +142,42 @@ export class GuxColumnChart {
|
|
|
138
142
|
}
|
|
139
143
|
static get properties() {
|
|
140
144
|
return {
|
|
145
|
+
"labelColor": {
|
|
146
|
+
"type": "string",
|
|
147
|
+
"mutable": false,
|
|
148
|
+
"complexType": {
|
|
149
|
+
"original": "string",
|
|
150
|
+
"resolved": "string",
|
|
151
|
+
"references": {}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": false,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": "Optional label color"
|
|
158
|
+
},
|
|
159
|
+
"attribute": "label-color",
|
|
160
|
+
"reflect": false,
|
|
161
|
+
"defaultValue": "VisualizationColorUtil.DEFAULT_LABEL_COLOR"
|
|
162
|
+
},
|
|
163
|
+
"domainColor": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"mutable": false,
|
|
166
|
+
"complexType": {
|
|
167
|
+
"original": "string",
|
|
168
|
+
"resolved": "string",
|
|
169
|
+
"references": {}
|
|
170
|
+
},
|
|
171
|
+
"required": false,
|
|
172
|
+
"optional": false,
|
|
173
|
+
"docs": {
|
|
174
|
+
"tags": [],
|
|
175
|
+
"text": "Optional domain line color"
|
|
176
|
+
},
|
|
177
|
+
"attribute": "domain-color",
|
|
178
|
+
"reflect": false,
|
|
179
|
+
"defaultValue": "VisualizationColorUtil.DEFAULT_DOMAIN_COLOR"
|
|
180
|
+
},
|
|
141
181
|
"chartData": {
|
|
142
182
|
"type": "unknown",
|
|
143
183
|
"mutable": false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
2
2
|
import { h } from "@stencil/core";
|
|
3
3
|
import { trackComponent } from "../../../utils/tracking/usage";
|
|
4
|
-
import
|
|
4
|
+
import * as VisualizationColorUtil from "../../../utils/theme/color-palette";
|
|
5
5
|
import { logError } from "../../../utils/error/log-error";
|
|
6
6
|
const DEFAULT_COLOR_FIELD_NAME = 'category';
|
|
7
7
|
export class GuxLineChart {
|
|
@@ -17,7 +17,9 @@ export class GuxLineChart {
|
|
|
17
17
|
config: {
|
|
18
18
|
axis: {
|
|
19
19
|
ticks: false,
|
|
20
|
-
titlePadding: 8
|
|
20
|
+
titlePadding: 8,
|
|
21
|
+
labelColor: this.labelColor || VisualizationColorUtil.DEFAULT_LABEL_COLOR,
|
|
22
|
+
domainColor: this.domainColor || VisualizationColorUtil.DEFAULT_DOMAIN_COLOR
|
|
21
23
|
},
|
|
22
24
|
axisX: {
|
|
23
25
|
labelAngle: 0
|
|
@@ -32,12 +34,14 @@ export class GuxLineChart {
|
|
|
32
34
|
color: {
|
|
33
35
|
field: DEFAULT_COLOR_FIELD_NAME,
|
|
34
36
|
type: 'nominal',
|
|
35
|
-
scale: { range: VISUALIZATION_COLORS },
|
|
37
|
+
scale: { range: VisualizationColorUtil.VISUALIZATION_COLORS },
|
|
36
38
|
legend: null
|
|
37
39
|
},
|
|
38
40
|
tooltip: { aggregate: 'count', type: 'quantitative' }
|
|
39
41
|
}
|
|
40
42
|
};
|
|
43
|
+
this.labelColor = VisualizationColorUtil.DEFAULT_LABEL_COLOR;
|
|
44
|
+
this.domainColor = VisualizationColorUtil.DEFAULT_DOMAIN_COLOR;
|
|
41
45
|
this.chartData = undefined;
|
|
42
46
|
this.xTickLabelSlant = undefined;
|
|
43
47
|
this.includeLegend = undefined;
|
|
@@ -117,7 +121,7 @@ export class GuxLineChart {
|
|
|
117
121
|
this.parseData();
|
|
118
122
|
}
|
|
119
123
|
render() {
|
|
120
|
-
return (h("gux-visualization-beta", { key: '
|
|
124
|
+
return (h("gux-visualization-beta", { key: '9a0bbdde50dc38102cff841ca0b2aa9aa47b47ff', visualizationSpec: this.visualizationSpec }));
|
|
121
125
|
}
|
|
122
126
|
static get is() { return "gux-chart-line-beta"; }
|
|
123
127
|
static get encapsulation() { return "shadow"; }
|
|
@@ -133,6 +137,42 @@ export class GuxLineChart {
|
|
|
133
137
|
}
|
|
134
138
|
static get properties() {
|
|
135
139
|
return {
|
|
140
|
+
"labelColor": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"mutable": false,
|
|
143
|
+
"complexType": {
|
|
144
|
+
"original": "string",
|
|
145
|
+
"resolved": "string",
|
|
146
|
+
"references": {}
|
|
147
|
+
},
|
|
148
|
+
"required": false,
|
|
149
|
+
"optional": false,
|
|
150
|
+
"docs": {
|
|
151
|
+
"tags": [],
|
|
152
|
+
"text": "Optional label color"
|
|
153
|
+
},
|
|
154
|
+
"attribute": "label-color",
|
|
155
|
+
"reflect": false,
|
|
156
|
+
"defaultValue": "VisualizationColorUtil.DEFAULT_LABEL_COLOR"
|
|
157
|
+
},
|
|
158
|
+
"domainColor": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"mutable": false,
|
|
161
|
+
"complexType": {
|
|
162
|
+
"original": "string",
|
|
163
|
+
"resolved": "string",
|
|
164
|
+
"references": {}
|
|
165
|
+
},
|
|
166
|
+
"required": false,
|
|
167
|
+
"optional": false,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": "Optional domain line color"
|
|
171
|
+
},
|
|
172
|
+
"attribute": "domain-color",
|
|
173
|
+
"reflect": false,
|
|
174
|
+
"defaultValue": "VisualizationColorUtil.DEFAULT_DOMAIN_COLOR"
|
|
175
|
+
},
|
|
136
176
|
"chartData": {
|
|
137
177
|
"type": "unknown",
|
|
138
178
|
"mutable": false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
2
2
|
import { h } from "@stencil/core";
|
|
3
3
|
import { trackComponent } from "../../../utils/tracking/usage";
|
|
4
|
-
import
|
|
4
|
+
import * as VisualizationColorUtil from "../../../utils/theme/color-palette";
|
|
5
5
|
import { logError } from "../../../utils/error/log-error";
|
|
6
6
|
const DEFAULT_COLOR_FIELD_NAME = 'category';
|
|
7
7
|
export class GuxScatterPlotChart {
|
|
@@ -19,7 +19,9 @@ export class GuxScatterPlotChart {
|
|
|
19
19
|
axis: {
|
|
20
20
|
ticks: false,
|
|
21
21
|
titlePadding: 8,
|
|
22
|
-
gridColor: '#F6F7F9'
|
|
22
|
+
gridColor: '#F6F7F9',
|
|
23
|
+
labelColor: this.labelColor || VisualizationColorUtil.DEFAULT_LABEL_COLOR,
|
|
24
|
+
domainColor: this.domainColor || VisualizationColorUtil.DEFAULT_DOMAIN_COLOR
|
|
23
25
|
},
|
|
24
26
|
axisX: {
|
|
25
27
|
labelAngle: 0,
|
|
@@ -36,7 +38,7 @@ export class GuxScatterPlotChart {
|
|
|
36
38
|
color: {
|
|
37
39
|
field: DEFAULT_COLOR_FIELD_NAME,
|
|
38
40
|
type: 'nominal',
|
|
39
|
-
scale: { range: VISUALIZATION_COLORS },
|
|
41
|
+
scale: { range: VisualizationColorUtil.VISUALIZATION_COLORS },
|
|
40
42
|
legend: null
|
|
41
43
|
},
|
|
42
44
|
size: {
|
|
@@ -51,6 +53,8 @@ export class GuxScatterPlotChart {
|
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
};
|
|
56
|
+
this.labelColor = VisualizationColorUtil.DEFAULT_LABEL_COLOR;
|
|
57
|
+
this.domainColor = VisualizationColorUtil.DEFAULT_DOMAIN_COLOR;
|
|
54
58
|
this.chartData = undefined;
|
|
55
59
|
this.xTickLabelSlant = undefined;
|
|
56
60
|
this.includeLegend = undefined;
|
|
@@ -125,7 +129,7 @@ export class GuxScatterPlotChart {
|
|
|
125
129
|
this.parseData();
|
|
126
130
|
}
|
|
127
131
|
render() {
|
|
128
|
-
return (h("gux-visualization-beta", { key: '
|
|
132
|
+
return (h("gux-visualization-beta", { key: '99d30b8b621965db1bb64abc45fa8075f7f1db2f', visualizationSpec: this.visualizationSpec }));
|
|
129
133
|
}
|
|
130
134
|
static get is() { return "gux-chart-scatter-plot-beta"; }
|
|
131
135
|
static get encapsulation() { return "shadow"; }
|
|
@@ -141,6 +145,42 @@ export class GuxScatterPlotChart {
|
|
|
141
145
|
}
|
|
142
146
|
static get properties() {
|
|
143
147
|
return {
|
|
148
|
+
"labelColor": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "string",
|
|
153
|
+
"resolved": "string",
|
|
154
|
+
"references": {}
|
|
155
|
+
},
|
|
156
|
+
"required": false,
|
|
157
|
+
"optional": false,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": "Optional label color"
|
|
161
|
+
},
|
|
162
|
+
"attribute": "label-color",
|
|
163
|
+
"reflect": false,
|
|
164
|
+
"defaultValue": "VisualizationColorUtil.DEFAULT_LABEL_COLOR"
|
|
165
|
+
},
|
|
166
|
+
"domainColor": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"mutable": false,
|
|
169
|
+
"complexType": {
|
|
170
|
+
"original": "string",
|
|
171
|
+
"resolved": "string",
|
|
172
|
+
"references": {}
|
|
173
|
+
},
|
|
174
|
+
"required": false,
|
|
175
|
+
"optional": false,
|
|
176
|
+
"docs": {
|
|
177
|
+
"tags": [],
|
|
178
|
+
"text": "Optional domain line color"
|
|
179
|
+
},
|
|
180
|
+
"attribute": "domain-color",
|
|
181
|
+
"reflect": false,
|
|
182
|
+
"defaultValue": "VisualizationColorUtil.DEFAULT_DOMAIN_COLOR"
|
|
183
|
+
},
|
|
144
184
|
"chartData": {
|
|
145
185
|
"type": "unknown",
|
|
146
186
|
"mutable": false,
|