@databrainhq/plugin 0.6.7 → 0.6.8
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/index.es.js +187 -77
- package/dist/index.umd.js +41 -41
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -79132,20 +79132,26 @@ const AreaChart = ({
|
|
|
79132
79132
|
boundaryGap: false,
|
|
79133
79133
|
data: data2.labels,
|
|
79134
79134
|
splitLine: {
|
|
79135
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none")
|
|
79135
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79136
79136
|
},
|
|
79137
79137
|
axisLine: {
|
|
79138
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
79138
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79139
|
+
},
|
|
79140
|
+
axisLabel: {
|
|
79141
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
79139
79142
|
}
|
|
79140
79143
|
}],
|
|
79141
79144
|
yAxis: [{
|
|
79142
79145
|
type: "value",
|
|
79143
79146
|
position: axisSettings.axis,
|
|
79144
79147
|
splitLine: {
|
|
79145
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
79148
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79146
79149
|
},
|
|
79147
79150
|
axisLine: {
|
|
79148
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
79151
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79152
|
+
},
|
|
79153
|
+
axisLabel: {
|
|
79154
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
79149
79155
|
}
|
|
79150
79156
|
}],
|
|
79151
79157
|
series: (_a2 = data2.datasets) == null ? void 0 : _a2.map((item) => {
|
|
@@ -79162,7 +79168,7 @@ const AreaChart = ({
|
|
|
79162
79168
|
show: labelSettings.show,
|
|
79163
79169
|
position: labelSettings.position
|
|
79164
79170
|
},
|
|
79165
|
-
showBackground: backGroundColor.show,
|
|
79171
|
+
showBackground: backGroundColor == null ? void 0 : backGroundColor.show,
|
|
79166
79172
|
backgroundStyle: {
|
|
79167
79173
|
color: "rgba(180, 180, 180, 0.2)"
|
|
79168
79174
|
}
|
|
@@ -79238,26 +79244,30 @@ const BarChart = ({
|
|
|
79238
79244
|
alignWithLabel: true
|
|
79239
79245
|
},
|
|
79240
79246
|
axisLabel: {
|
|
79247
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none"),
|
|
79241
79248
|
interval: 0,
|
|
79242
79249
|
rotate: 50,
|
|
79243
79250
|
hideOverlap: true,
|
|
79244
79251
|
overflow: "truncate"
|
|
79245
79252
|
},
|
|
79246
79253
|
splitLine: {
|
|
79247
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none")
|
|
79254
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79248
79255
|
},
|
|
79249
79256
|
axisLine: {
|
|
79250
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
79257
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79251
79258
|
}
|
|
79252
79259
|
},
|
|
79253
79260
|
yAxis: {
|
|
79254
79261
|
type: "value",
|
|
79255
79262
|
position: axisSettings.axis,
|
|
79256
79263
|
splitLine: {
|
|
79257
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
79264
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79258
79265
|
},
|
|
79259
79266
|
axisLine: {
|
|
79260
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
79267
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79268
|
+
},
|
|
79269
|
+
axisLabel: {
|
|
79270
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
79261
79271
|
}
|
|
79262
79272
|
},
|
|
79263
79273
|
legend: {
|
|
@@ -79276,17 +79286,17 @@ const BarChart = ({
|
|
|
79276
79286
|
data: item.data,
|
|
79277
79287
|
type: "bar",
|
|
79278
79288
|
name: item.label,
|
|
79279
|
-
barWidth: `${customSettings.barWidth}%`,
|
|
79289
|
+
barWidth: `${(customSettings == null ? void 0 : customSettings.barWidth) || 0}%`,
|
|
79280
79290
|
label: {
|
|
79281
79291
|
show: labelSettings.show,
|
|
79282
79292
|
position: labelSettings.position
|
|
79283
79293
|
},
|
|
79284
|
-
showBackground: backGroundColor.show,
|
|
79294
|
+
showBackground: backGroundColor == null ? void 0 : backGroundColor.show,
|
|
79285
79295
|
backgroundStyle: {
|
|
79286
79296
|
color: "rgba(180, 180, 180, 0.2)"
|
|
79287
79297
|
},
|
|
79288
79298
|
itemStyle: {
|
|
79289
|
-
borderRadius: customSettings.barRadius
|
|
79299
|
+
borderRadius: customSettings == null ? void 0 : customSettings.barRadius
|
|
79290
79300
|
}
|
|
79291
79301
|
};
|
|
79292
79302
|
})
|
|
@@ -79376,10 +79386,13 @@ const ComboChart = ({
|
|
|
79376
79386
|
type: "shadow"
|
|
79377
79387
|
},
|
|
79378
79388
|
splitLine: {
|
|
79379
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none")
|
|
79389
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79380
79390
|
},
|
|
79381
79391
|
axisLine: {
|
|
79382
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
79392
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79393
|
+
},
|
|
79394
|
+
axisLabel: {
|
|
79395
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
79383
79396
|
}
|
|
79384
79397
|
}],
|
|
79385
79398
|
yAxis: [{
|
|
@@ -79388,10 +79401,13 @@ const ComboChart = ({
|
|
|
79388
79401
|
max: 9e3,
|
|
79389
79402
|
interval: 3e3,
|
|
79390
79403
|
splitLine: {
|
|
79391
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
79404
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79392
79405
|
},
|
|
79393
79406
|
axisLine: {
|
|
79394
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
79407
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79408
|
+
},
|
|
79409
|
+
axisLabel: {
|
|
79410
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
79395
79411
|
}
|
|
79396
79412
|
}, {
|
|
79397
79413
|
type: "value",
|
|
@@ -79399,10 +79415,13 @@ const ComboChart = ({
|
|
|
79399
79415
|
max: 25,
|
|
79400
79416
|
interval: 5,
|
|
79401
79417
|
splitLine: {
|
|
79402
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
79418
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79403
79419
|
},
|
|
79404
79420
|
axisLine: {
|
|
79405
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
79421
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79422
|
+
},
|
|
79423
|
+
axisLabel: {
|
|
79424
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
79406
79425
|
}
|
|
79407
79426
|
}],
|
|
79408
79427
|
series: (_a2 = data2.datasets) == null ? void 0 : _a2.map((item) => {
|
|
@@ -79507,6 +79526,9 @@ const LineChart = ({
|
|
|
79507
79526
|
},
|
|
79508
79527
|
axisLine: {
|
|
79509
79528
|
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
79529
|
+
},
|
|
79530
|
+
axisLabel: {
|
|
79531
|
+
show: !!(customSettings.axisLabels === "y" || customSettings.axisLabels === "none")
|
|
79510
79532
|
}
|
|
79511
79533
|
},
|
|
79512
79534
|
yAxis: {
|
|
@@ -79517,6 +79539,9 @@ const LineChart = ({
|
|
|
79517
79539
|
},
|
|
79518
79540
|
axisLine: {
|
|
79519
79541
|
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
79542
|
+
},
|
|
79543
|
+
axisLabel: {
|
|
79544
|
+
show: !!(customSettings.axisLabels === "x" || customSettings.axisLabels === "none")
|
|
79520
79545
|
}
|
|
79521
79546
|
},
|
|
79522
79547
|
legend: {
|
|
@@ -79815,20 +79840,26 @@ const RowChart = ({
|
|
|
79815
79840
|
type: "value",
|
|
79816
79841
|
boundaryGap: [0, 0.01],
|
|
79817
79842
|
splitLine: {
|
|
79818
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none")
|
|
79843
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79819
79844
|
},
|
|
79820
79845
|
axisLine: {
|
|
79821
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
79846
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79847
|
+
},
|
|
79848
|
+
axisLabel: {
|
|
79849
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
79822
79850
|
}
|
|
79823
79851
|
},
|
|
79824
79852
|
yAxis: {
|
|
79825
79853
|
type: "category",
|
|
79826
79854
|
data: data2.labels,
|
|
79827
79855
|
splitLine: {
|
|
79828
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
79856
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79829
79857
|
},
|
|
79830
79858
|
axisLine: {
|
|
79831
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
79859
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79860
|
+
},
|
|
79861
|
+
axisLabel: {
|
|
79862
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
79832
79863
|
}
|
|
79833
79864
|
},
|
|
79834
79865
|
series: (_a2 = data2.datasets) == null ? void 0 : _a2.map((item) => {
|
|
@@ -79836,7 +79867,7 @@ const RowChart = ({
|
|
|
79836
79867
|
data: item.data,
|
|
79837
79868
|
type: "bar",
|
|
79838
79869
|
name: item.label,
|
|
79839
|
-
barWidth: `${customSettings.barWidth}%`,
|
|
79870
|
+
barWidth: `${customSettings == null ? void 0 : customSettings.barWidth}%`,
|
|
79840
79871
|
emphasis: {
|
|
79841
79872
|
focus: "series"
|
|
79842
79873
|
},
|
|
@@ -79849,7 +79880,7 @@ const RowChart = ({
|
|
|
79849
79880
|
color: "rgba(180, 180, 180, 0.2)"
|
|
79850
79881
|
},
|
|
79851
79882
|
itemStyle: {
|
|
79852
|
-
borderRadius: customSettings.barRadius
|
|
79883
|
+
borderRadius: customSettings == null ? void 0 : customSettings.barRadius
|
|
79853
79884
|
}
|
|
79854
79885
|
};
|
|
79855
79886
|
})
|
|
@@ -79924,20 +79955,26 @@ const ScatterChart = ({
|
|
|
79924
79955
|
type: "category",
|
|
79925
79956
|
data: data2.labels,
|
|
79926
79957
|
splitLine: {
|
|
79927
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none")
|
|
79958
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79928
79959
|
},
|
|
79929
79960
|
axisLine: {
|
|
79930
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
79961
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79962
|
+
},
|
|
79963
|
+
axisLabel: {
|
|
79964
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
79931
79965
|
}
|
|
79932
79966
|
},
|
|
79933
79967
|
yAxis: {
|
|
79934
79968
|
type: "value",
|
|
79935
79969
|
position: axisSettings.axis,
|
|
79936
79970
|
splitLine: {
|
|
79937
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
79971
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
79938
79972
|
},
|
|
79939
79973
|
axisLine: {
|
|
79940
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
79974
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
79975
|
+
},
|
|
79976
|
+
axisLabel: {
|
|
79977
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
79941
79978
|
}
|
|
79942
79979
|
},
|
|
79943
79980
|
legend: {
|
|
@@ -80038,20 +80075,26 @@ const WaterFallChart = ({
|
|
|
80038
80075
|
type: "category",
|
|
80039
80076
|
data: data2.labels,
|
|
80040
80077
|
splitLine: {
|
|
80041
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none")
|
|
80078
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
80042
80079
|
},
|
|
80043
80080
|
axisLine: {
|
|
80044
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
80081
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
80082
|
+
},
|
|
80083
|
+
axisLabel: {
|
|
80084
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
80045
80085
|
}
|
|
80046
80086
|
},
|
|
80047
80087
|
yAxis: {
|
|
80048
80088
|
type: "value",
|
|
80049
80089
|
position: axisSettings.axis,
|
|
80050
80090
|
splitLine: {
|
|
80051
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
80091
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
80052
80092
|
},
|
|
80053
80093
|
axisLine: {
|
|
80054
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
80094
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
80095
|
+
},
|
|
80096
|
+
axisLabel: {
|
|
80097
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
80055
80098
|
}
|
|
80056
80099
|
},
|
|
80057
80100
|
series: [{
|
|
@@ -80249,26 +80292,32 @@ const BubbleChart = ({
|
|
|
80249
80292
|
},
|
|
80250
80293
|
xAxis: {
|
|
80251
80294
|
splitLine: {
|
|
80252
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none"),
|
|
80295
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none"),
|
|
80253
80296
|
lineStyle: {
|
|
80254
80297
|
type: "dashed"
|
|
80255
80298
|
}
|
|
80256
80299
|
},
|
|
80257
80300
|
axisLine: {
|
|
80258
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
80301
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
80302
|
+
},
|
|
80303
|
+
axisLabel: {
|
|
80304
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
80259
80305
|
}
|
|
80260
80306
|
},
|
|
80261
80307
|
yAxis: {
|
|
80262
80308
|
position: axisSettings.axis,
|
|
80263
80309
|
scale: true,
|
|
80264
80310
|
splitLine: {
|
|
80265
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none"),
|
|
80311
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none"),
|
|
80266
80312
|
lineStyle: {
|
|
80267
80313
|
type: "dashed"
|
|
80268
80314
|
}
|
|
80269
80315
|
},
|
|
80270
80316
|
axisLine: {
|
|
80271
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
80317
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
80318
|
+
},
|
|
80319
|
+
axisLabel: {
|
|
80320
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
80272
80321
|
}
|
|
80273
80322
|
},
|
|
80274
80323
|
series: modifiedData.map((val) => {
|
|
@@ -80555,20 +80604,26 @@ const SteppedAreaChart = ({
|
|
|
80555
80604
|
type: "category",
|
|
80556
80605
|
data: data2.labels,
|
|
80557
80606
|
splitLine: {
|
|
80558
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none")
|
|
80607
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
80559
80608
|
},
|
|
80560
80609
|
axisLine: {
|
|
80561
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
80610
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
80611
|
+
},
|
|
80612
|
+
axisLabel: {
|
|
80613
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
80562
80614
|
}
|
|
80563
80615
|
},
|
|
80564
80616
|
yAxis: {
|
|
80565
80617
|
type: "value",
|
|
80566
80618
|
position: axisSettings.axis,
|
|
80567
80619
|
splitLine: {
|
|
80568
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
80620
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
80569
80621
|
},
|
|
80570
80622
|
axisLine: {
|
|
80571
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
80623
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
80624
|
+
},
|
|
80625
|
+
axisLabel: {
|
|
80626
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
80572
80627
|
}
|
|
80573
80628
|
},
|
|
80574
80629
|
series: (_a2 = data2.datasets) == null ? void 0 : _a2.map((item) => {
|
|
@@ -80677,20 +80732,26 @@ const Histogram = ({
|
|
|
80677
80732
|
alignWithLabel: true
|
|
80678
80733
|
},
|
|
80679
80734
|
splitLine: {
|
|
80680
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none")
|
|
80735
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
80681
80736
|
},
|
|
80682
80737
|
axisLine: {
|
|
80683
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
80738
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
80739
|
+
},
|
|
80740
|
+
axisLabel: {
|
|
80741
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
80684
80742
|
}
|
|
80685
80743
|
}],
|
|
80686
80744
|
yAxis: [{
|
|
80687
80745
|
type: "value",
|
|
80688
80746
|
position: axisSettings.axis,
|
|
80689
80747
|
splitLine: {
|
|
80690
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
80748
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
80691
80749
|
},
|
|
80692
80750
|
axisLine: {
|
|
80693
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
80751
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
80752
|
+
},
|
|
80753
|
+
axisLabel: {
|
|
80754
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
80694
80755
|
}
|
|
80695
80756
|
}],
|
|
80696
80757
|
series: [{
|
|
@@ -80737,7 +80798,7 @@ const GaugeChart = ({
|
|
|
80737
80798
|
colors: colors2
|
|
80738
80799
|
}) => {
|
|
80739
80800
|
let total = 0;
|
|
80740
|
-
|
|
80801
|
+
gaugeData == null ? void 0 : gaugeData.map((item) => {
|
|
80741
80802
|
total += item.value;
|
|
80742
80803
|
});
|
|
80743
80804
|
const average = Math.floor(total / (gaugeData == null ? void 0 : gaugeData.length));
|
|
@@ -80957,20 +81018,26 @@ const StackedBarChart = ({
|
|
|
80957
81018
|
type: "category",
|
|
80958
81019
|
data: data2 == null ? void 0 : data2.labels,
|
|
80959
81020
|
splitLine: {
|
|
80960
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none")
|
|
81021
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
80961
81022
|
},
|
|
80962
81023
|
axisLine: {
|
|
80963
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
81024
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
81025
|
+
},
|
|
81026
|
+
axisLabel: {
|
|
81027
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
80964
81028
|
}
|
|
80965
81029
|
},
|
|
80966
81030
|
yAxis: {
|
|
80967
81031
|
type: "value",
|
|
80968
81032
|
position: axisSettings.axis,
|
|
80969
81033
|
splitLine: {
|
|
80970
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
81034
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
80971
81035
|
},
|
|
80972
81036
|
axisLine: {
|
|
80973
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
81037
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
81038
|
+
},
|
|
81039
|
+
axisLabel: {
|
|
81040
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
80974
81041
|
}
|
|
80975
81042
|
},
|
|
80976
81043
|
legend: {
|
|
@@ -80990,7 +81057,7 @@ const StackedBarChart = ({
|
|
|
80990
81057
|
type: "bar",
|
|
80991
81058
|
name: item.label,
|
|
80992
81059
|
stack: "x",
|
|
80993
|
-
barWidth: `${customSettings.barWidth}%`,
|
|
81060
|
+
barWidth: `${customSettings == null ? void 0 : customSettings.barWidth}%`,
|
|
80994
81061
|
emphasis: {
|
|
80995
81062
|
focus: "series"
|
|
80996
81063
|
},
|
|
@@ -81003,7 +81070,7 @@ const StackedBarChart = ({
|
|
|
81003
81070
|
color: "rgba(180, 180, 180, 0.2)"
|
|
81004
81071
|
},
|
|
81005
81072
|
itemStyle: {
|
|
81006
|
-
borderRadius: customSettings.barRadius
|
|
81073
|
+
borderRadius: customSettings == null ? void 0 : customSettings.barRadius
|
|
81007
81074
|
}
|
|
81008
81075
|
};
|
|
81009
81076
|
})
|
|
@@ -81143,10 +81210,13 @@ const BoxPlot = ({
|
|
|
81143
81210
|
show: false
|
|
81144
81211
|
},
|
|
81145
81212
|
splitLine: {
|
|
81146
|
-
show: !!(customSettings.hideSplitLines === "horizontal" || customSettings.hideSplitLines === "none")
|
|
81213
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "horizontal" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
81147
81214
|
},
|
|
81148
81215
|
axisLine: {
|
|
81149
|
-
show: !!(customSettings.hideAxisLines === "y" || customSettings.hideAxisLines === "none")
|
|
81216
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "y" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
81217
|
+
},
|
|
81218
|
+
axisLabel: {
|
|
81219
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "y" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
81150
81220
|
}
|
|
81151
81221
|
},
|
|
81152
81222
|
yAxis: {
|
|
@@ -81156,10 +81226,13 @@ const BoxPlot = ({
|
|
|
81156
81226
|
show: true
|
|
81157
81227
|
},
|
|
81158
81228
|
splitLine: {
|
|
81159
|
-
show: !!(customSettings.hideSplitLines === "vertical" || customSettings.hideSplitLines === "none")
|
|
81229
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideSplitLines) === "vertical" || (customSettings == null ? void 0 : customSettings.hideSplitLines) === "none")
|
|
81160
81230
|
},
|
|
81161
81231
|
axisLine: {
|
|
81162
|
-
show: !!(customSettings.hideAxisLines === "x" || customSettings.hideAxisLines === "none")
|
|
81232
|
+
show: !!((customSettings == null ? void 0 : customSettings.hideAxisLines) === "x" || (customSettings == null ? void 0 : customSettings.hideAxisLines) === "none")
|
|
81233
|
+
},
|
|
81234
|
+
axisLabel: {
|
|
81235
|
+
show: !!((customSettings == null ? void 0 : customSettings.axisLabels) === "x" || (customSettings == null ? void 0 : customSettings.axisLabels) === "none")
|
|
81163
81236
|
}
|
|
81164
81237
|
},
|
|
81165
81238
|
series: [{
|
|
@@ -81182,17 +81255,18 @@ const BoxPlot = ({
|
|
|
81182
81255
|
})
|
|
81183
81256
|
});
|
|
81184
81257
|
};
|
|
81185
|
-
const tableSection = "
|
|
81186
|
-
const tableContainer = "
|
|
81187
|
-
const tableDiv = "
|
|
81188
|
-
const table$4 = "
|
|
81189
|
-
const tableHead$1 = "
|
|
81190
|
-
const tableHeadColHash = "
|
|
81191
|
-
const tableCol = "
|
|
81192
|
-
const tableColLabel = "
|
|
81193
|
-
const data = "
|
|
81194
|
-
const tableBodyColHash = "
|
|
81195
|
-
const
|
|
81258
|
+
const tableSection = "_tableSection_1irbj_1";
|
|
81259
|
+
const tableContainer = "_tableContainer_1irbj_5";
|
|
81260
|
+
const tableDiv = "_tableDiv_1irbj_9";
|
|
81261
|
+
const table$4 = "_table_1irbj_1";
|
|
81262
|
+
const tableHead$1 = "_tableHead_1irbj_17";
|
|
81263
|
+
const tableHeadColHash = "_tableHeadColHash_1irbj_21";
|
|
81264
|
+
const tableCol = "_tableCol_1irbj_25";
|
|
81265
|
+
const tableColLabel = "_tableColLabel_1irbj_29";
|
|
81266
|
+
const data = "_data_1irbj_33";
|
|
81267
|
+
const tableBodyColHash = "_tableBodyColHash_1irbj_37";
|
|
81268
|
+
const tableBodyColHashLabel = "_tableBodyColHashLabel_1irbj_41";
|
|
81269
|
+
const noData$2 = "_noData_1irbj_53";
|
|
81196
81270
|
var style$1 = {
|
|
81197
81271
|
tableSection,
|
|
81198
81272
|
tableContainer,
|
|
@@ -81204,8 +81278,9 @@ var style$1 = {
|
|
|
81204
81278
|
tableColLabel,
|
|
81205
81279
|
data,
|
|
81206
81280
|
tableBodyColHash,
|
|
81207
|
-
|
|
81208
|
-
"table-
|
|
81281
|
+
tableBodyColHashLabel,
|
|
81282
|
+
"table-loader-container": "_table-loader-container_1irbj_45",
|
|
81283
|
+
"table-error-message": "_table-error-message_1irbj_49",
|
|
81209
81284
|
noData: noData$2
|
|
81210
81285
|
};
|
|
81211
81286
|
const TableChart = ({
|
|
@@ -81244,7 +81319,7 @@ const TableChart = ({
|
|
|
81244
81319
|
variant: "h1",
|
|
81245
81320
|
children: "#"
|
|
81246
81321
|
})
|
|
81247
|
-
}, "num"), data2 == null ? void 0 : data2.datasets.map((item) => {
|
|
81322
|
+
}, "num"), data2 == null ? void 0 : data2.datasets.map((item, i2) => {
|
|
81248
81323
|
return /* @__PURE__ */ jsx("th", {
|
|
81249
81324
|
className: style$1.tableCol,
|
|
81250
81325
|
scope: "col",
|
|
@@ -81254,7 +81329,7 @@ const TableChart = ({
|
|
|
81254
81329
|
className: style$1.tableColLabel,
|
|
81255
81330
|
children: item.label
|
|
81256
81331
|
})
|
|
81257
|
-
}, item);
|
|
81332
|
+
}, item + i2);
|
|
81258
81333
|
})]
|
|
81259
81334
|
})
|
|
81260
81335
|
}), /* @__PURE__ */ jsx("tbody", {
|
|
@@ -81266,7 +81341,7 @@ const TableChart = ({
|
|
|
81266
81341
|
children: /* @__PURE__ */ jsx(Text, {
|
|
81267
81342
|
styleClass: "font-14",
|
|
81268
81343
|
variant: "p",
|
|
81269
|
-
className:
|
|
81344
|
+
className: style$1.tableBodyColHashLabel,
|
|
81270
81345
|
children: i2 + 1
|
|
81271
81346
|
})
|
|
81272
81347
|
}, i2), item.map((d2, index) => {
|
|
@@ -81279,7 +81354,7 @@ const TableChart = ({
|
|
|
81279
81354
|
className: style$1.tableColLabel,
|
|
81280
81355
|
children: d2
|
|
81281
81356
|
})
|
|
81282
|
-
}, index)
|
|
81357
|
+
}, d2 + index)
|
|
81283
81358
|
});
|
|
81284
81359
|
})]
|
|
81285
81360
|
}, i2);
|
|
@@ -85621,7 +85696,8 @@ const MetricCard = ({
|
|
|
85621
85696
|
hideSplitLines: "none",
|
|
85622
85697
|
hideAxisLines: "none",
|
|
85623
85698
|
barWidth: 40,
|
|
85624
|
-
barRadius: 0
|
|
85699
|
+
barRadius: 0,
|
|
85700
|
+
axisLabels: "none"
|
|
85625
85701
|
});
|
|
85626
85702
|
const [backGroundColor, setBackGroundColor] = useState({
|
|
85627
85703
|
show: false
|
|
@@ -85643,11 +85719,12 @@ const MetricCard = ({
|
|
|
85643
85719
|
setLabelSettings(metricItem == null ? void 0 : metricItem.chartOptions.labelSettings);
|
|
85644
85720
|
setAxisSettings((metricItem == null ? void 0 : metricItem.chartOptions.axisSettings) ? metricItem == null ? void 0 : metricItem.chartOptions.axisSettings : "left");
|
|
85645
85721
|
setBackGroundColor((metricItem == null ? void 0 : metricItem.chartOptions.backGroundColor) ? metricItem == null ? void 0 : metricItem.chartOptions.backGroundColor : "false");
|
|
85646
|
-
setCustomSettings((metricItem == null ? void 0 : metricItem.chartOptions.
|
|
85722
|
+
setCustomSettings((metricItem == null ? void 0 : metricItem.chartOptions.customSettings) ? metricItem == null ? void 0 : metricItem.chartOptions.customSettings : {
|
|
85647
85723
|
hideSplitLines: "none",
|
|
85648
85724
|
hideAxisLines: "none",
|
|
85649
85725
|
barWidth: 40,
|
|
85650
|
-
barRadius: 0
|
|
85726
|
+
barRadius: 0,
|
|
85727
|
+
axisLabels: "none"
|
|
85651
85728
|
});
|
|
85652
85729
|
setEnableGroupBy(metricItem == null ? void 0 : metricItem.isEnableGroupBy);
|
|
85653
85730
|
setSelectedGroupBy(metricItem == null ? void 0 : metricItem.selectedGroupBy);
|
|
@@ -86760,7 +86837,7 @@ const ChartConfigure = ({
|
|
|
86760
86837
|
}))
|
|
86761
86838
|
})
|
|
86762
86839
|
})]
|
|
86763
|
-
}), chartType2 !== "pie" && chartType2 !== "doughnut" && chartType2 !== "funnel" && chartType2 !== "gauge" && chartType2 !== "sankey" && /* @__PURE__ */ jsxs(Fragment, {
|
|
86840
|
+
}), chartType2 !== "pie" && chartType2 !== "doughnut" && chartType2 !== "funnel" && chartType2 !== "gauge" && chartType2 !== "sankey" && chartType2 !== "singleValue" && chartType2 !== "table" && /* @__PURE__ */ jsxs(Fragment, {
|
|
86764
86841
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
86765
86842
|
className: styles$i.seriesWrapper,
|
|
86766
86843
|
children: [/* @__PURE__ */ jsx(Text, {
|
|
@@ -86794,6 +86871,38 @@ const ChartConfigure = ({
|
|
|
86794
86871
|
show: e2.target.checked
|
|
86795
86872
|
}))
|
|
86796
86873
|
}) : null, /* @__PURE__ */ jsxs("div", {
|
|
86874
|
+
className: styles$i.seriesWrapper,
|
|
86875
|
+
children: [/* @__PURE__ */ jsxs(Text, {
|
|
86876
|
+
variant: "h1",
|
|
86877
|
+
styleClass: "font-14",
|
|
86878
|
+
className: styles$i.label,
|
|
86879
|
+
children: ["Hide Axis labels", /* @__PURE__ */ jsx(InfoTooltip$1, {
|
|
86880
|
+
children: "Axis labels represents the x and y axis values"
|
|
86881
|
+
})]
|
|
86882
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
86883
|
+
className: styles$i.select,
|
|
86884
|
+
children: /* @__PURE__ */ jsx(Select, {
|
|
86885
|
+
value: customSettings.axisLabels,
|
|
86886
|
+
options: [{
|
|
86887
|
+
label: "Hide X-axis labels",
|
|
86888
|
+
value: "x"
|
|
86889
|
+
}, {
|
|
86890
|
+
label: "Hide Y-axis labels",
|
|
86891
|
+
value: "y"
|
|
86892
|
+
}, {
|
|
86893
|
+
label: "Hide both X and Y(axis) labels",
|
|
86894
|
+
value: "both"
|
|
86895
|
+
}, {
|
|
86896
|
+
label: "None",
|
|
86897
|
+
value: "none"
|
|
86898
|
+
}],
|
|
86899
|
+
onChange: (value2) => setCustomSettings((s2) => ({
|
|
86900
|
+
...s2,
|
|
86901
|
+
axisLabels: value2
|
|
86902
|
+
}))
|
|
86903
|
+
})
|
|
86904
|
+
})]
|
|
86905
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
86797
86906
|
className: styles$i.seriesWrapper,
|
|
86798
86907
|
children: [/* @__PURE__ */ jsxs(Text, {
|
|
86799
86908
|
variant: "h1",
|
|
@@ -89721,7 +89830,8 @@ const EmbeddedMetricCreation = ({
|
|
|
89721
89830
|
hideSplitLines: "none",
|
|
89722
89831
|
hideAxisLines: "none",
|
|
89723
89832
|
barWidth: 40,
|
|
89724
|
-
barRadius: 0
|
|
89833
|
+
barRadius: 0,
|
|
89834
|
+
axisLabels: "none"
|
|
89725
89835
|
});
|
|
89726
89836
|
const [labelSettings, setLabelSettings] = useState({
|
|
89727
89837
|
axis: "left",
|