axidio-styleguide-library1-v2 0.1.2 → 0.1.3
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.
|
@@ -9096,7 +9096,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9096
9096
|
})
|
|
9097
9097
|
.attr('x', function (d) {
|
|
9098
9098
|
if (self.chartConfiguration.isDrilldownChart) {
|
|
9099
|
-
data.map((indiv) => {
|
|
9099
|
+
data.map((indiv, idx) => {
|
|
9100
9100
|
if (indiv.name == d.name) {
|
|
9101
9101
|
let keys = Object.keys(indiv).filter((temp, i) => i != 0);
|
|
9102
9102
|
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]);
|
|
@@ -9127,8 +9127,16 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9127
9127
|
}
|
|
9128
9128
|
}
|
|
9129
9129
|
});
|
|
9130
|
+
// Decrease x value by 10 for the first bar only in grouped charts in zoom-in view
|
|
9131
|
+
if (subgroups.length > 1 && !self.isZoomedOut && self.chartData.data.length > 1 && d.name === self.chartData.data[0].name && d.key === subgroups[0]) {
|
|
9132
|
+
return tempScale(d.key) - 10;
|
|
9133
|
+
}
|
|
9130
9134
|
return tempScale(d.key);
|
|
9131
9135
|
}
|
|
9136
|
+
// For non-drilldown grouped charts, decrease x value by 10 for first bar only in zoom-in view
|
|
9137
|
+
if (subgroups.length > 1 && !self.isZoomedOut && self.chartData.data.length > 1 && d.name === self.chartData.data[0].name && d.key === subgroups[0]) {
|
|
9138
|
+
return xSubgroup(d.key) - 10;
|
|
9139
|
+
}
|
|
9132
9140
|
return xSubgroup(d.key);
|
|
9133
9141
|
})
|
|
9134
9142
|
.attr('y', function (d) {
|