@databrainhq/plugin 0.6.7 → 0.6.9

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 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: [{
@@ -80736,11 +80797,11 @@ const GaugeChart = ({
80736
80797
  enableSaveAs,
80737
80798
  colors: colors2
80738
80799
  }) => {
80739
- let total = 0;
80740
- (Array.isArray(gaugeData) ? gaugeData : []).map((item) => {
80741
- total += item.value;
80742
- });
80743
- const average = Math.floor(total / (gaugeData == null ? void 0 : gaugeData.length));
80800
+ const newGuageData = Array.isArray(gaugeData) ? gaugeData : [];
80801
+ const total = newGuageData.reduce((sum2, item) => {
80802
+ return sum2 + item.value;
80803
+ }, 0);
80804
+ const average = Math.floor(total / newGuageData.length);
80744
80805
  const option2 = {
80745
80806
  toolbox: {
80746
80807
  feature: {
@@ -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 = "_tableSection_yveam_1";
81186
- const tableContainer = "_tableContainer_yveam_5";
81187
- const tableDiv = "_tableDiv_yveam_9";
81188
- const table$4 = "_table_yveam_1";
81189
- const tableHead$1 = "_tableHead_yveam_17";
81190
- const tableHeadColHash = "_tableHeadColHash_yveam_21";
81191
- const tableCol = "_tableCol_yveam_25";
81192
- const tableColLabel = "_tableColLabel_yveam_29";
81193
- const data = "_data_yveam_33";
81194
- const tableBodyColHash = "_tableBodyColHash_yveam_37";
81195
- const noData$2 = "_noData_yveam_49";
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
- "table-loader-container": "_table-loader-container_yveam_41",
81208
- "table-error-message": "_table-error-message_yveam_45",
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);
@@ -81330,10 +81405,12 @@ const MetricChart = ({
81330
81405
  legendSettings,
81331
81406
  labelSettings,
81332
81407
  axisSettings,
81408
+ customSettings,
81333
81409
  enableSaveAs,
81334
81410
  colors: colors2,
81335
81411
  updateGroup,
81336
- isEnableGroupBy
81412
+ isEnableGroupBy,
81413
+ backGroundColor
81337
81414
  });
81338
81415
  }
81339
81416
  if (chartType2 === CHART_TYPES.bar) {
@@ -81360,7 +81437,9 @@ const MetricChart = ({
81360
81437
  enableSaveAs,
81361
81438
  colors: colors2,
81362
81439
  updateGroup,
81363
- isEnableGroupBy
81440
+ isEnableGroupBy,
81441
+ backGroundColor,
81442
+ customSettings
81364
81443
  });
81365
81444
  }
81366
81445
  if (chartType2 === CHART_TYPES.histogram) {
@@ -81373,7 +81452,9 @@ const MetricChart = ({
81373
81452
  enableSaveAs,
81374
81453
  colors: colors2,
81375
81454
  updateGroup,
81376
- isEnableGroupBy
81455
+ isEnableGroupBy,
81456
+ backGroundColor,
81457
+ customSettings
81377
81458
  });
81378
81459
  }
81379
81460
  if (chartType2 === CHART_TYPES.bubble) {
@@ -81386,7 +81467,9 @@ const MetricChart = ({
81386
81467
  enableSaveAs,
81387
81468
  colors: colors2,
81388
81469
  updateGroup,
81389
- isEnableGroupBy
81470
+ isEnableGroupBy,
81471
+ backGroundColor,
81472
+ customSettings
81390
81473
  });
81391
81474
  }
81392
81475
  if (chartType2 === CHART_TYPES.scatter) {
@@ -81399,7 +81482,9 @@ const MetricChart = ({
81399
81482
  enableSaveAs,
81400
81483
  colors: colors2,
81401
81484
  updateGroup,
81402
- isEnableGroupBy
81485
+ isEnableGroupBy,
81486
+ backGroundColor,
81487
+ customSettings
81403
81488
  });
81404
81489
  }
81405
81490
  if (chartType2 === CHART_TYPES.row) {
@@ -81411,7 +81496,9 @@ const MetricChart = ({
81411
81496
  enableSaveAs,
81412
81497
  colors: colors2,
81413
81498
  updateGroup,
81414
- isEnableGroupBy
81499
+ isEnableGroupBy,
81500
+ backGroundColor,
81501
+ customSettings
81415
81502
  });
81416
81503
  }
81417
81504
  if (chartType2 === CHART_TYPES.area) {
@@ -81427,7 +81514,9 @@ const MetricChart = ({
81427
81514
  enableSaveAs,
81428
81515
  colors: colors2,
81429
81516
  updateGroup,
81430
- isEnableGroupBy
81517
+ isEnableGroupBy,
81518
+ backGroundColor,
81519
+ customSettings
81431
81520
  });
81432
81521
  }
81433
81522
  if (chartType2 === CHART_TYPES.combo) {
@@ -81445,7 +81534,9 @@ const MetricChart = ({
81445
81534
  enableSaveAs,
81446
81535
  colors: colors2,
81447
81536
  updateGroup,
81448
- isEnableGroupBy
81537
+ isEnableGroupBy,
81538
+ backGroundColor,
81539
+ customSettings
81449
81540
  });
81450
81541
  }
81451
81542
  if (chartType2 === CHART_TYPES.pie) {
@@ -81496,7 +81587,9 @@ const MetricChart = ({
81496
81587
  enableSaveAs,
81497
81588
  colors: colors2,
81498
81589
  updateGroup,
81499
- isEnableGroupBy
81590
+ isEnableGroupBy,
81591
+ backGroundColor,
81592
+ customSettings
81500
81593
  });
81501
81594
  }
81502
81595
  if (chartType2 === CHART_TYPES.funnel) {
@@ -81525,7 +81618,8 @@ const MetricChart = ({
81525
81618
  legendSettings,
81526
81619
  labelSettings,
81527
81620
  enableSaveAs,
81528
- colors: colors2
81621
+ colors: colors2,
81622
+ backGroundColor
81529
81623
  });
81530
81624
  }
81531
81625
  if (chartType2 === CHART_TYPES.singleValue) {
@@ -81544,7 +81638,8 @@ const MetricChart = ({
81544
81638
  labelSettings,
81545
81639
  axisSettings,
81546
81640
  enableSaveAs,
81547
- colors: colors2
81641
+ colors: colors2,
81642
+ customSettings
81548
81643
  });
81549
81644
  }
81550
81645
  if (chartType2 === CHART_TYPES.table) {
@@ -85621,7 +85716,8 @@ const MetricCard = ({
85621
85716
  hideSplitLines: "none",
85622
85717
  hideAxisLines: "none",
85623
85718
  barWidth: 40,
85624
- barRadius: 0
85719
+ barRadius: 0,
85720
+ axisLabels: "none"
85625
85721
  });
85626
85722
  const [backGroundColor, setBackGroundColor] = useState({
85627
85723
  show: false
@@ -85643,11 +85739,12 @@ const MetricCard = ({
85643
85739
  setLabelSettings(metricItem == null ? void 0 : metricItem.chartOptions.labelSettings);
85644
85740
  setAxisSettings((metricItem == null ? void 0 : metricItem.chartOptions.axisSettings) ? metricItem == null ? void 0 : metricItem.chartOptions.axisSettings : "left");
85645
85741
  setBackGroundColor((metricItem == null ? void 0 : metricItem.chartOptions.backGroundColor) ? metricItem == null ? void 0 : metricItem.chartOptions.backGroundColor : "false");
85646
- setCustomSettings((metricItem == null ? void 0 : metricItem.chartOptions.backGroundColor) ? metricItem == null ? void 0 : metricItem.chartOptions.backGroundColor : {
85742
+ setCustomSettings((metricItem == null ? void 0 : metricItem.chartOptions.customSettings) ? metricItem == null ? void 0 : metricItem.chartOptions.customSettings : {
85647
85743
  hideSplitLines: "none",
85648
85744
  hideAxisLines: "none",
85649
85745
  barWidth: 40,
85650
- barRadius: 0
85746
+ barRadius: 0,
85747
+ axisLabels: "none"
85651
85748
  });
85652
85749
  setEnableGroupBy(metricItem == null ? void 0 : metricItem.isEnableGroupBy);
85653
85750
  setSelectedGroupBy(metricItem == null ? void 0 : metricItem.selectedGroupBy);
@@ -86760,7 +86857,7 @@ const ChartConfigure = ({
86760
86857
  }))
86761
86858
  })
86762
86859
  })]
86763
- }), chartType2 !== "pie" && chartType2 !== "doughnut" && chartType2 !== "funnel" && chartType2 !== "gauge" && chartType2 !== "sankey" && /* @__PURE__ */ jsxs(Fragment, {
86860
+ }), chartType2 !== "pie" && chartType2 !== "doughnut" && chartType2 !== "funnel" && chartType2 !== "gauge" && chartType2 !== "sankey" && chartType2 !== "singleValue" && chartType2 !== "table" && /* @__PURE__ */ jsxs(Fragment, {
86764
86861
  children: [/* @__PURE__ */ jsxs("div", {
86765
86862
  className: styles$i.seriesWrapper,
86766
86863
  children: [/* @__PURE__ */ jsx(Text, {
@@ -86794,6 +86891,38 @@ const ChartConfigure = ({
86794
86891
  show: e2.target.checked
86795
86892
  }))
86796
86893
  }) : null, /* @__PURE__ */ jsxs("div", {
86894
+ className: styles$i.seriesWrapper,
86895
+ children: [/* @__PURE__ */ jsxs(Text, {
86896
+ variant: "h1",
86897
+ styleClass: "font-14",
86898
+ className: styles$i.label,
86899
+ children: ["Hide Axis labels", /* @__PURE__ */ jsx(InfoTooltip$1, {
86900
+ children: "Axis labels represents the x and y axis values"
86901
+ })]
86902
+ }), /* @__PURE__ */ jsx("div", {
86903
+ className: styles$i.select,
86904
+ children: /* @__PURE__ */ jsx(Select, {
86905
+ value: customSettings.axisLabels,
86906
+ options: [{
86907
+ label: "Hide X-axis labels",
86908
+ value: "x"
86909
+ }, {
86910
+ label: "Hide Y-axis labels",
86911
+ value: "y"
86912
+ }, {
86913
+ label: "Hide both X and Y(axis) labels",
86914
+ value: "both"
86915
+ }, {
86916
+ label: "None",
86917
+ value: "none"
86918
+ }],
86919
+ onChange: (value2) => setCustomSettings((s2) => ({
86920
+ ...s2,
86921
+ axisLabels: value2
86922
+ }))
86923
+ })
86924
+ })]
86925
+ }), /* @__PURE__ */ jsxs("div", {
86797
86926
  className: styles$i.seriesWrapper,
86798
86927
  children: [/* @__PURE__ */ jsxs(Text, {
86799
86928
  variant: "h1",
@@ -89721,7 +89850,8 @@ const EmbeddedMetricCreation = ({
89721
89850
  hideSplitLines: "none",
89722
89851
  hideAxisLines: "none",
89723
89852
  barWidth: 40,
89724
- barRadius: 0
89853
+ barRadius: 0,
89854
+ axisLabels: "none"
89725
89855
  });
89726
89856
  const [labelSettings, setLabelSettings] = useState({
89727
89857
  axis: "left",