genesys-spark-chart-components 4.199.0 → 4.199.1
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/cjs/{color-palette-DgOYejm4.js → color-palette-DDTn6n8n.js} +1 -1
- package/dist/cjs/gux-chart-column-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-line-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -2
- package/dist/collection/components/beta/gux-chart-column/gux-chart-column.js +1 -1
- package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +1 -1
- package/dist/collection/components/beta/gux-chart-line/gux-chart-line.js +1 -1
- package/dist/collection/components/beta/gux-chart-pie/gux-chart-pie.js +1 -1
- package/dist/collection/components/beta/gux-chart-scatter-plot/gux-chart-scatter-plot.js +1 -1
- package/dist/collection/components/beta/gux-visualization/gux-visualization.js +1 -1
- package/dist/esm/{color-palette-Bxt--y5G.js → color-palette-iVh6Y7pw.js} +1 -1
- package/dist/esm/gux-chart-column-beta.entry.js +2 -2
- package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
- package/dist/esm/gux-chart-line-beta.entry.js +2 -2
- package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
- package/dist/esm/gux-chart-scatter-plot-beta.entry.js +2 -2
- package/dist/esm/gux-visualization-beta.entry.js +2 -2
- package/dist/genesys-chart-webcomponents/genesys-chart-webcomponents.esm.js +1 -1
- package/dist/genesys-chart-webcomponents/{p-fe539d1a.entry.js → p-408f885c.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-ef21ad8d.entry.js → p-754621db.entry.js} +2 -2
- package/dist/genesys-chart-webcomponents/{p-aa996133.entry.js → p-798aa62a.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-75db0ff8.entry.js → p-7c37b485.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-f83033ea.entry.js → p-80178606.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-2bb34d6e.entry.js → p-9517085a.entry.js} +1 -1
- package/dist/genesys-chart-webcomponents/{p-Bxt--y5G.js → p-iVh6Y7pw.js} +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DEg9dZRu.js');
|
|
4
|
-
var colorPalette = require('./color-palette-
|
|
4
|
+
var colorPalette = require('./color-palette-DDTn6n8n.js');
|
|
5
5
|
var logError = require('./log-error-BMPVm36Q.js');
|
|
6
6
|
|
|
7
7
|
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{}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}";
|
|
@@ -19,7 +19,7 @@ const GuxColumnChart = class {
|
|
|
19
19
|
this.domainColor = colorPalette.DEFAULT_DOMAIN_COLOR;
|
|
20
20
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
21
|
this.baseChartSpec = {
|
|
22
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
22
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
23
23
|
mark: { type: 'bar' },
|
|
24
24
|
config: {
|
|
25
25
|
axis: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DEg9dZRu.js');
|
|
4
|
-
var colorPalette = require('./color-palette-
|
|
4
|
+
var colorPalette = require('./color-palette-DDTn6n8n.js');
|
|
5
5
|
var logError = require('./log-error-BMPVm36Q.js');
|
|
6
6
|
|
|
7
7
|
const guxChartDonutCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
@@ -14,7 +14,7 @@ const GuxDonutChart = class {
|
|
|
14
14
|
index.registerInstance(this, hostRef);
|
|
15
15
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
16
|
this.baseChartSpec = {
|
|
17
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
17
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
18
18
|
config: {
|
|
19
19
|
legend: {
|
|
20
20
|
symbolType: 'circle'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DEg9dZRu.js');
|
|
4
|
-
var colorPalette = require('./color-palette-
|
|
4
|
+
var colorPalette = require('./color-palette-DDTn6n8n.js');
|
|
5
5
|
var logError = require('./log-error-BMPVm36Q.js');
|
|
6
6
|
|
|
7
7
|
const guxChartLineCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
@@ -20,7 +20,7 @@ const GuxLineChart = class {
|
|
|
20
20
|
this.domainColor = colorPalette.DEFAULT_DOMAIN_COLOR;
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
22
|
this.baseChartSpec = {
|
|
23
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
23
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
24
24
|
mark: {
|
|
25
25
|
type: 'line',
|
|
26
26
|
interpolate: 'linear',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DEg9dZRu.js');
|
|
4
|
-
var colorPalette = require('./color-palette-
|
|
4
|
+
var colorPalette = require('./color-palette-DDTn6n8n.js');
|
|
5
5
|
var logError = require('./log-error-BMPVm36Q.js');
|
|
6
6
|
|
|
7
7
|
const guxChartPieCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
@@ -13,7 +13,7 @@ const GuxPieChart = class {
|
|
|
13
13
|
index.registerInstance(this, hostRef);
|
|
14
14
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15
15
|
this.baseChartSpec = {
|
|
16
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
16
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
17
17
|
config: {
|
|
18
18
|
legend: {
|
|
19
19
|
symbolType: 'circle'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DEg9dZRu.js');
|
|
4
|
-
var colorPalette = require('./color-palette-
|
|
4
|
+
var colorPalette = require('./color-palette-DDTn6n8n.js');
|
|
5
5
|
var logError = require('./log-error-BMPVm36Q.js');
|
|
6
6
|
|
|
7
7
|
const guxChartScatterPlotCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
@@ -20,7 +20,7 @@ const GuxScatterPlotChart = class {
|
|
|
20
20
|
this.domainColor = colorPalette.DEFAULT_DOMAIN_COLOR;
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
22
|
this.baseChartSpec = {
|
|
23
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
23
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
24
24
|
params: [
|
|
25
25
|
{
|
|
26
26
|
name: 'onHover',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index$2 = require('./index-DEg9dZRu.js');
|
|
4
|
-
var colorPalette = require('./color-palette-
|
|
4
|
+
var colorPalette = require('./color-palette-DDTn6n8n.js');
|
|
5
5
|
|
|
6
6
|
// Note: This regex matches even invalid JSON strings, but since we’re
|
|
7
7
|
// working on the output of `JSON.stringify` we know that only valid strings
|
|
@@ -69057,7 +69057,7 @@ const GuxVisualization = class {
|
|
|
69057
69057
|
this.chartClicked = index$2.createEvent(this, "chartClicked");
|
|
69058
69058
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69059
69059
|
this.defaultVisualizationSpec = {
|
|
69060
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
69060
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
69061
69061
|
mark: { type: 'bar' },
|
|
69062
69062
|
config: {
|
|
69063
69063
|
axis: {
|
|
@@ -15,7 +15,7 @@ export class GuxColumnChart {
|
|
|
15
15
|
this.domainColor = VisualizationColorUtil.DEFAULT_DOMAIN_COLOR;
|
|
16
16
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
17
17
|
this.baseChartSpec = {
|
|
18
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
18
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
19
19
|
mark: { type: 'bar' },
|
|
20
20
|
config: {
|
|
21
21
|
axis: {
|
|
@@ -10,7 +10,7 @@ export class GuxDonutChart {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12
12
|
this.baseChartSpec = {
|
|
13
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
13
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
14
14
|
config: {
|
|
15
15
|
legend: {
|
|
16
16
|
symbolType: 'circle'
|
|
@@ -16,7 +16,7 @@ export class GuxLineChart {
|
|
|
16
16
|
this.domainColor = VisualizationColorUtil.DEFAULT_DOMAIN_COLOR;
|
|
17
17
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
18
|
this.baseChartSpec = {
|
|
19
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
19
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
20
20
|
mark: {
|
|
21
21
|
type: 'line',
|
|
22
22
|
interpolate: 'linear',
|
|
@@ -9,7 +9,7 @@ export class GuxPieChart {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
11
|
this.baseChartSpec = {
|
|
12
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
12
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
13
13
|
config: {
|
|
14
14
|
legend: {
|
|
15
15
|
symbolType: 'circle'
|
|
@@ -16,7 +16,7 @@ export class GuxScatterPlotChart {
|
|
|
16
16
|
this.domainColor = VisualizationColorUtil.DEFAULT_DOMAIN_COLOR;
|
|
17
17
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
18
18
|
this.baseChartSpec = {
|
|
19
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
19
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
20
20
|
params: [
|
|
21
21
|
{
|
|
22
22
|
name: 'onHover',
|
|
@@ -9,7 +9,7 @@ export class GuxVisualization {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
11
|
this.defaultVisualizationSpec = {
|
|
12
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
12
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
13
13
|
mark: { type: 'bar' },
|
|
14
14
|
config: {
|
|
15
15
|
axis: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-WPqt-wWR.js';
|
|
2
|
-
import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-
|
|
2
|
+
import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-iVh6Y7pw.js';
|
|
3
3
|
import { l as logError } from './log-error-nsqlWzyl.js';
|
|
4
4
|
|
|
5
5
|
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{}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}";
|
|
@@ -17,7 +17,7 @@ const GuxColumnChart = class {
|
|
|
17
17
|
this.domainColor = DEFAULT_DOMAIN_COLOR;
|
|
18
18
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
19
|
this.baseChartSpec = {
|
|
20
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
20
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
21
21
|
mark: { type: 'bar' },
|
|
22
22
|
config: {
|
|
23
23
|
axis: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-WPqt-wWR.js';
|
|
2
|
-
import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-
|
|
2
|
+
import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-iVh6Y7pw.js';
|
|
3
3
|
import { l as logError } from './log-error-nsqlWzyl.js';
|
|
4
4
|
|
|
5
5
|
const guxChartDonutCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
@@ -12,7 +12,7 @@ const GuxDonutChart = class {
|
|
|
12
12
|
registerInstance(this, hostRef);
|
|
13
13
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
14
|
this.baseChartSpec = {
|
|
15
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
15
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
16
16
|
config: {
|
|
17
17
|
legend: {
|
|
18
18
|
symbolType: 'circle'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-WPqt-wWR.js';
|
|
2
|
-
import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-
|
|
2
|
+
import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-iVh6Y7pw.js';
|
|
3
3
|
import { l as logError } from './log-error-nsqlWzyl.js';
|
|
4
4
|
|
|
5
5
|
const guxChartLineCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
@@ -18,7 +18,7 @@ const GuxLineChart = class {
|
|
|
18
18
|
this.domainColor = DEFAULT_DOMAIN_COLOR;
|
|
19
19
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
20
|
this.baseChartSpec = {
|
|
21
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
21
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
22
22
|
mark: {
|
|
23
23
|
type: 'line',
|
|
24
24
|
interpolate: 'linear',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-WPqt-wWR.js';
|
|
2
|
-
import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-
|
|
2
|
+
import { V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-iVh6Y7pw.js';
|
|
3
3
|
import { l as logError } from './log-error-nsqlWzyl.js';
|
|
4
4
|
|
|
5
5
|
const guxChartPieCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
@@ -11,7 +11,7 @@ const GuxPieChart = class {
|
|
|
11
11
|
registerInstance(this, hostRef);
|
|
12
12
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
13
|
this.baseChartSpec = {
|
|
14
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
14
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
15
15
|
config: {
|
|
16
16
|
legend: {
|
|
17
17
|
symbolType: 'circle'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-WPqt-wWR.js';
|
|
2
|
-
import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-
|
|
2
|
+
import { D as DEFAULT_LABEL_COLOR, a as DEFAULT_DOMAIN_COLOR, V as VISUALIZATION_COLORS, t as trackComponent } from './color-palette-iVh6Y7pw.js';
|
|
3
3
|
import { l as logError } from './log-error-nsqlWzyl.js';
|
|
4
4
|
|
|
5
5
|
const guxChartScatterPlotCss = "gux-visualization-beta{height:fit-content;color:#2e394c}";
|
|
@@ -18,7 +18,7 @@ const GuxScatterPlotChart = class {
|
|
|
18
18
|
this.domainColor = DEFAULT_DOMAIN_COLOR;
|
|
19
19
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
20
|
this.baseChartSpec = {
|
|
21
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
21
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
22
22
|
params: [
|
|
23
23
|
{
|
|
24
24
|
name: 'onHover',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h as h$1, g as getElement } from './index-WPqt-wWR.js';
|
|
2
|
-
import { a as DEFAULT_DOMAIN_COLOR, D as DEFAULT_LABEL_COLOR, t as trackComponent } from './color-palette-
|
|
2
|
+
import { a as DEFAULT_DOMAIN_COLOR, D as DEFAULT_LABEL_COLOR, t as trackComponent } from './color-palette-iVh6Y7pw.js';
|
|
3
3
|
|
|
4
4
|
// Note: This regex matches even invalid JSON strings, but since we’re
|
|
5
5
|
// working on the output of `JSON.stringify` we know that only valid strings
|
|
@@ -69055,7 +69055,7 @@ const GuxVisualization = class {
|
|
|
69055
69055
|
this.chartClicked = createEvent(this, "chartClicked");
|
|
69056
69056
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
69057
69057
|
this.defaultVisualizationSpec = {
|
|
69058
|
-
$schema: 'https://vega.github.io/schema/vega-lite/
|
|
69058
|
+
$schema: 'https://vega.github.io/schema/vega-lite/v6.json',
|
|
69059
69059
|
mark: { type: 'bar' },
|
|
69060
69060
|
config: {
|
|
69061
69061
|
axis: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as l}from"./p-WPqt-wWR.js";export{s as setNonce}from"./p-WPqt-wWR.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-
|
|
1
|
+
import{p as e,b as l}from"./p-WPqt-wWR.js";export{s as setNonce}from"./p-WPqt-wWR.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const l=import.meta.url,a={};return""!==l&&(a.resourcesUrl=new URL(".",l).href),e(a)})().then((async e=>(await a(),l([["p-754621db",[[257,"gux-visualization-beta",{visualizationSpec:[16],embedOptions:[16],screenreaderDescription:[1,"screenreader-description"]}]]],["p-408f885c",[[257,"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"]}]]],["p-798aa62a",[[257,"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"]}]]],["p-80178606",[[257,"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"]}]]],["p-9517085a",[[257,"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"]}]]],["p-7c37b485",[[257,"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"]}]]]],e))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,g as a}from"./p-WPqt-wWR.js";import{D as s,a as e,V as r,t as h}from"./p-
|
|
1
|
+
import{r as t,h as i,g as a}from"./p-WPqt-wWR.js";import{D as s,a as e,V as r,t as h}from"./p-iVh6Y7pw.js";import{l as n}from"./p-nsqlWzyl.js";const o=class{constructor(i){t(this,i),this.labelColor=s,this.domainColor=e,this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v6.json",mark:{type:"bar"},config:{axis:{ticks:!1,titlePadding:8,labelColor:this.labelColor||s,domainColor:this.domainColor||e},axisX:{labelAngle:0},scale:{bandPaddingInner:.4,bandPaddingOuter:.4},legend:{symbolType:"circle"},bar:{color:r[0]}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},tooltip:{aggregate:"count",type:"quantitative"}}},this.legendPosition="right"}parseData(){this.xFieldName&&this.yFieldName||n(this.root,"requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color={field:"category"}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,a=this.yFieldName,s=this.xAxisTitle,e=this.yAxisTitle,h=this.legendTitle;if(this.chartLayers){const t=this.chartLayers.map((t=>({mark:"bar",transform:[{filter:{field:"series",equal:t}}],encoding:{x:{field:i,type:"nominal"},y:{field:a,type:"quantitative"}}})));this.baseChartSpec.layer=t}else i&&(this.baseChartSpec.encoding.x.field=i),a&&(this.baseChartSpec.encoding.y.field=a),s&&(this.baseChartSpec.encoding.x.title=s),e&&(this.baseChartSpec.encoding.y.title=e),h&&(this.baseChartSpec.encoding.color.title=h);const o=i;this.baseChartSpec.config.range={[o]:r};const l=Object.assign(this.baseChartSpec,t);this.visualizationSpec=l}componentWillLoad(){h(this.root),this.parseData()}render(){return i("gux-visualization-beta",{key:"5bcc2fcee3bfb4905b9fdbb572593402531f960d",visualizationSpec:this.visualizationSpec})}get root(){return a(this)}static get watchers(){return{chartData:["parseData"]}}};o.style="gux-visualization-beta{height:fit-content;color:#2e394c;}gux-visualization-beta .mark-rect.layer_0_marks path{fill:url(#diagonalHatch0)}gux-visualization-beta{}gux-visualization-beta .mark-rect.layer_1_marks path{fill:#1da8b3}";export{o as gux_chart_column_beta}
|