axidio-styleguide-library1-v2 0.0.783 → 0.0.784
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.
|
@@ -8453,7 +8453,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8453
8453
|
return false;
|
|
8454
8454
|
}
|
|
8455
8455
|
get isAlertEnabled() {
|
|
8456
|
-
return this.chartConfiguration?.headerMenuOptions?.some(
|
|
8456
|
+
return this.chartConfiguration?.headerMenuOptions?.some(option => option.id === 'editAlert');
|
|
8457
8457
|
}
|
|
8458
8458
|
initializegroupChart() {
|
|
8459
8459
|
var self = this;
|
|
@@ -8594,7 +8594,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8594
8594
|
var svgYAxisLeft = outerContainer
|
|
8595
8595
|
.append('svg')
|
|
8596
8596
|
.attr('width', '100')
|
|
8597
|
-
.attr('height', height + margin.top + margin.bottom + 10)
|
|
8597
|
+
.attr('height', (height + margin.top + margin.bottom) + 10)
|
|
8598
8598
|
.style('position', 'absolute')
|
|
8599
8599
|
.style('left', '0')
|
|
8600
8600
|
.style('z-index', 1)
|
|
@@ -8603,7 +8603,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8603
8603
|
var svgYAxisRight = outerContainer
|
|
8604
8604
|
.append('svg')
|
|
8605
8605
|
.attr('width', rightSvgWidth)
|
|
8606
|
-
.attr('height', height + margin.top + margin.bottom + 10)
|
|
8606
|
+
.attr('height', (height + margin.top + margin.bottom) + 10)
|
|
8607
8607
|
.style('position', 'absolute')
|
|
8608
8608
|
.style('right', '12px')
|
|
8609
8609
|
.style('z-index', 1)
|
|
@@ -8618,7 +8618,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8618
8618
|
.append('svg')
|
|
8619
8619
|
// .attr('id', self.uniqueId)
|
|
8620
8620
|
.attr('width', width - rightSvgWidth)
|
|
8621
|
-
.attr('height', height + margin.top + margin.bottom + 30)
|
|
8621
|
+
.attr('height', (height + margin.top + margin.bottom) + 30)
|
|
8622
8622
|
// .call(ChartHelper.responsivefy)
|
|
8623
8623
|
.append('g')
|
|
8624
8624
|
.attr('transform', 'translate(' + 0 + ',' + margin.top + ')');
|
|
@@ -8676,8 +8676,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8676
8676
|
.call(d3.axisBottom(x))
|
|
8677
8677
|
.call((g) => g.select('.domain').remove());
|
|
8678
8678
|
svg.selectAll('g.x1.axis1 g.tick line').remove();
|
|
8679
|
-
svg
|
|
8680
|
-
.selectAll('g.x1.axis1 g.tick text')
|
|
8679
|
+
svg.selectAll('g.x1.axis1 g.tick text')
|
|
8681
8680
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8682
8681
|
.style('fill', 'var(--chart-text-color)');
|
|
8683
8682
|
// .attr('y', function () {
|
|
@@ -8764,7 +8763,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8764
8763
|
}
|
|
8765
8764
|
return d.toLowerCase();
|
|
8766
8765
|
});
|
|
8767
|
-
svg
|
|
8766
|
+
svg
|
|
8767
|
+
.selectAll('g.x1.axis1 g.tick')
|
|
8768
|
+
.each((d) => {
|
|
8768
8769
|
// Only append second <text> for non-date labels
|
|
8769
8770
|
if (!/\d{2,4}[-\/]/.test(d) && d.trim().indexOf(' ') > -1) {
|
|
8770
8771
|
d3.select(this)
|
|
@@ -8887,14 +8888,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8887
8888
|
});
|
|
8888
8889
|
}
|
|
8889
8890
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
8890
|
-
if (this.isZoomedOut) {
|
|
8891
|
-
// Wider bars in zoomed-out view
|
|
8892
|
-
xSubgroup.range([0, x.bandwidth()]).padding(0.1);
|
|
8893
|
-
}
|
|
8894
|
-
else {
|
|
8895
|
-
// Narrower bars in zoomed-in view
|
|
8896
|
-
xSubgroup.range([0, x.bandwidth()]).padding(0.3); // Increased padding makes bars narrower
|
|
8897
|
-
}
|
|
8898
8891
|
if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
8899
8892
|
xSubgroup.range([0, x.bandwidth()]);
|
|
8900
8893
|
}
|
|
@@ -9028,9 +9021,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9028
9021
|
});
|
|
9029
9022
|
return tempScale.bandwidth();
|
|
9030
9023
|
}
|
|
9031
|
-
if (!self.isZoomedOut) {
|
|
9032
|
-
return xSubgroup.bandwidth() * 0.8; // Reduce width by 20%
|
|
9033
|
-
}
|
|
9034
9024
|
return xSubgroup.bandwidth();
|
|
9035
9025
|
})
|
|
9036
9026
|
.attr('height', function (d) {
|
|
@@ -9459,7 +9449,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9459
9449
|
text.text(null); // Clear current text
|
|
9460
9450
|
// Add each word to a new tspan
|
|
9461
9451
|
words.forEach((word, index) => {
|
|
9462
|
-
text.append('tspan')
|
|
9452
|
+
text.append('tspan')
|
|
9453
|
+
.text(word);
|
|
9463
9454
|
// .attr('x', '15')
|
|
9464
9455
|
// .attr('dy', index === 0 ? '0em' : '0.9em') // Reduced vertical spacing
|
|
9465
9456
|
// .attr('text-anchor', 'end');
|
|
@@ -9468,8 +9459,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9468
9459
|
.style('fill', 'var(--chart-text-color)')
|
|
9469
9460
|
.attr('transform', null); // Remove rotate if using line breaks
|
|
9470
9461
|
// Optional: Adjust bottom margin or chart layout
|
|
9471
|
-
svg
|
|
9472
|
-
.select('.x-axis')
|
|
9462
|
+
svg.select('.x-axis')
|
|
9473
9463
|
.attr('transform', `translate(0, ${height - margin.bottom + 10})`);
|
|
9474
9464
|
}
|
|
9475
9465
|
/**
|
|
@@ -9481,7 +9471,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9481
9471
|
.attr('class', 'lib-axis-group-label font-size-1')
|
|
9482
9472
|
.attr('style', self.chartConfiguration.yAxisCustomlabelStyles)
|
|
9483
9473
|
.attr('transform', 'rotate(-90)')
|
|
9484
|
-
.attr('y', 0 - margin.left / 2 - 30)
|
|
9474
|
+
.attr('y', 0 - (margin.left / 2) - 30)
|
|
9485
9475
|
.attr('x', 0 - height / 2)
|
|
9486
9476
|
.attr('dy', '1em')
|
|
9487
9477
|
.style('text-anchor', 'middle')
|