axidio-styleguide-library1-v2 0.1.21 → 0.1.22
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.
|
@@ -9077,7 +9077,11 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9077
9077
|
.data(data)
|
|
9078
9078
|
.enter()
|
|
9079
9079
|
.append('g')
|
|
9080
|
-
.attr('transform', function (d) {
|
|
9080
|
+
.attr('transform', function (d, i) {
|
|
9081
|
+
// For grouped bar charts, decrease the translate value for the first bar only
|
|
9082
|
+
if (subgroups.length > 1 && i === 0) {
|
|
9083
|
+
return 'translate(' + (x(d.name) - 10) + ',0)';
|
|
9084
|
+
}
|
|
9081
9085
|
return 'translate(' + x(d.name) + ',0)';
|
|
9082
9086
|
});
|
|
9083
9087
|
state
|