axidio-styleguide-library1-v2 0.0.972 → 0.0.975

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.
@@ -4559,21 +4559,21 @@ class GroupChartComponent extends ComponentUniqueId {
4559
4559
  .html(function () {
4560
4560
  let dataType = metaData.dataType ? metaData.dataType : '';
4561
4561
  if (!self.isZoomedOut) {
4562
- let desiredText = '<span class="title-bar-name">' + d.key + '</span>';
4562
+ let desiredText = '<span class="title-bar-name">' + d.name + '</span>';
4563
4563
  desiredText +=
4564
4564
  '<span class="title-bar-value"><span>' +
4565
- d.value +
4565
+ d.Value +
4566
4566
  '</span>' +
4567
4567
  dataType +
4568
4568
  '</span>';
4569
4569
  return desiredText;
4570
4570
  }
4571
4571
  else {
4572
- let tempKey = d.key.length <= 8 ? d.key : d.key.substring(0, 5) + '...';
4572
+ let tempKey = d.name.length <= 8 ? d.name : d.name.substring(0, 5) + '...';
4573
4573
  let desiredText = '<span class="title-bar-name">' +
4574
4574
  tempKey +
4575
4575
  ':' +
4576
- d.value +
4576
+ d.Value +
4577
4577
  dataType +
4578
4578
  '</span>';
4579
4579
  desiredText +=
@@ -9008,15 +9008,16 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9008
9008
  });
9009
9009
  }
9010
9010
  var xSubgroup = d3.scaleBand().domain(subgroups);
9011
- if (subgroups.length > 1 && !this.isZoomedOut) {
9011
+ if (!this.isZoomedOut && subgroups.length > 1) {
9012
9012
  // For grouped bar charts in zoom-in view, reduce padding between bars
9013
- xSubgroup.range([0, x.bandwidth()]).padding(0.05);
9014
- }
9015
- else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
9016
9013
  xSubgroup.range([0, x.bandwidth()]);
9017
9014
  }
9015
+ else if (!this.isZoomedOut && subgroups.length === 1) {
9016
+ // For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
9017
+ xSubgroup.range([0, 80]);
9018
+ }
9018
9019
  else {
9019
- // used to make grouped bars with lesser width as we are not using padding for width
9020
+ // All other cases (including zoomed-out), use full bandwidth
9020
9021
  xSubgroup.range([0, x.bandwidth()]);
9021
9022
  }
9022
9023
  // if (this.chartConfiguration.isDrilldownChart) {
@@ -9116,9 +9117,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9116
9117
  if (subgroups.length > 1 && !self.isZoomedOut) {
9117
9118
  return xSubgroup.bandwidth() * 0.5;
9118
9119
  }
9119
- // For single-bar (non-grouped) charts in zoom-in view, set bar width to 60
9120
+ // For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
9120
9121
  if (subgroups.length === 1 && !self.isZoomedOut) {
9121
- return 60;
9122
+ return 80;
9122
9123
  }
9123
9124
  // Default logic for other chart types
9124
9125
  if (self.chartConfiguration.isDrilldownChart) {