axidio-styleguide-library1-v2 0.0.836 → 0.0.838
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.
|
@@ -8948,8 +8948,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8948
8948
|
.enter()
|
|
8949
8949
|
.append('g')
|
|
8950
8950
|
.attr('transform', function (d) {
|
|
8951
|
-
let
|
|
8952
|
-
|
|
8951
|
+
let x_value = x(d.name);
|
|
8952
|
+
let shift;
|
|
8953
|
+
if (self.chartData.data.length > 8 && !self.isZoomedOut) {
|
|
8954
|
+
shift = x_value / 2;
|
|
8955
|
+
}
|
|
8956
|
+
return 'translate(' + shift + ',0)';
|
|
8953
8957
|
});
|
|
8954
8958
|
state
|
|
8955
8959
|
.selectAll('rect')
|