impaktapps-ui-builder 0.0.97-alpha.5 → 0.0.97-alpha.7

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.
@@ -10308,8 +10308,11 @@ const buildHorizontalBarGraph = (config, componentScope) => {
10308
10308
  if (config.bottomAxisAngle) {
10309
10309
  horizontalBarGraph.config.main.bottomAxisAngle = config.bottomAxisAngle === "YES" ? true : false;
10310
10310
  }
10311
- if (config.barColor) {
10312
- horizontalBarGraph.config.barStyle.color = config.barColor;
10311
+ if (config.legendLabels) {
10312
+ horizontalBarGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
10313
+ }
10314
+ if (config.pieArcColors) {
10315
+ horizontalBarGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10313
10316
  }
10314
10317
  if (config.xAxisValue) {
10315
10318
  horizontalBarGraph.config.main.xAxisValue = config.xAxisValue;
@@ -10480,8 +10483,11 @@ const buildStackbarGraph = (config, componentScope) => {
10480
10483
  }
10481
10484
  barGraph.config.main.type = config.graphType;
10482
10485
  barGraph.config.main.header = config.heading;
10483
- if (config.barColor) {
10484
- barGraph.config.barStyle.color = config.barColor;
10486
+ if (config.legendLabels) {
10487
+ barGraph.config.main.tooltipDataKey = flatObjectValueInArray(config.legendLabels);
10488
+ }
10489
+ if (config.pieArcColors) {
10490
+ barGraph.config.style.lineStyle.colorRange = flatObjectValueInArray(config.pieArcColors);
10485
10491
  }
10486
10492
  if (config.xAxisValue) {
10487
10493
  barGraph.config.main.xAxisValue = config.xAxisValue;