axidio-styleguide-library1-v2 0.0.785 → 0.0.787
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(option => option.id === 'editAlert');
|
|
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',
|
|
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',
|
|
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',
|
|
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,7 +8676,8 @@ 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
|
|
8679
|
+
svg
|
|
8680
|
+
.selectAll('g.x1.axis1 g.tick text')
|
|
8680
8681
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8681
8682
|
.style('fill', 'var(--chart-text-color)');
|
|
8682
8683
|
// .attr('y', function () {
|
|
@@ -8765,6 +8766,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8765
8766
|
});
|
|
8766
8767
|
svg
|
|
8767
8768
|
.selectAll('g.x1.axis1 g.tick')
|
|
8769
|
+
.filter(function (d) {
|
|
8770
|
+
return !/\d{2,4}[-\/]/.test(d); // Only process non-date labels
|
|
8771
|
+
})
|
|
8768
8772
|
.append('text')
|
|
8769
8773
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8770
8774
|
.attr('y', long_tick_length_bg)
|
|
@@ -8888,14 +8892,14 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8888
8892
|
}
|
|
8889
8893
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
8890
8894
|
if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
8891
|
-
xSubgroup.range([0, x.bandwidth()]);
|
|
8895
|
+
xSubgroup.range([0, x.bandwidth()]).padding(0.5);
|
|
8892
8896
|
}
|
|
8893
8897
|
else {
|
|
8894
8898
|
/**
|
|
8895
8899
|
* used to make grouped bars with lesser width as we are not using padding for width
|
|
8896
8900
|
* used by weekly charts
|
|
8897
8901
|
*/
|
|
8898
|
-
xSubgroup.range([0, x.bandwidth()]);
|
|
8902
|
+
xSubgroup.range([0, x.bandwidth()]).padding(0.5);
|
|
8899
8903
|
}
|
|
8900
8904
|
// if (this.chartConfiguration.isDrilldownChart) {
|
|
8901
8905
|
// }
|
|
@@ -9024,7 +9028,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9024
9028
|
});
|
|
9025
9029
|
return tempScale.bandwidth();
|
|
9026
9030
|
}
|
|
9027
|
-
return xSubgroup.bandwidth();
|
|
9031
|
+
return xSubgroup.bandwidth() * 0.6;
|
|
9028
9032
|
})
|
|
9029
9033
|
.attr('height', function (d) {
|
|
9030
9034
|
if (d.value == -1) {
|
|
@@ -9455,8 +9459,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9455
9459
|
text.text(null); // Clear current text
|
|
9456
9460
|
// Add each word to a new tspan
|
|
9457
9461
|
words.forEach((word, index) => {
|
|
9458
|
-
text.append('tspan')
|
|
9459
|
-
.text(word);
|
|
9462
|
+
text.append('tspan').text(word);
|
|
9460
9463
|
// .attr('x', '15')
|
|
9461
9464
|
// .attr('dy', index === 0 ? '0em' : '0.9em') // Reduced vertical spacing
|
|
9462
9465
|
// .attr('text-anchor', 'end');
|
|
@@ -9465,7 +9468,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9465
9468
|
.style('fill', 'var(--chart-text-color)')
|
|
9466
9469
|
.attr('transform', null); // Remove rotate if using line breaks
|
|
9467
9470
|
// Optional: Adjust bottom margin or chart layout
|
|
9468
|
-
svg
|
|
9471
|
+
svg
|
|
9472
|
+
.select('.x-axis')
|
|
9469
9473
|
.attr('transform', `translate(0, ${height - margin.bottom + 10})`);
|
|
9470
9474
|
}
|
|
9471
9475
|
/**
|
|
@@ -9477,7 +9481,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9477
9481
|
.attr('class', 'lib-axis-group-label font-size-1')
|
|
9478
9482
|
.attr('style', self.chartConfiguration.yAxisCustomlabelStyles)
|
|
9479
9483
|
.attr('transform', 'rotate(-90)')
|
|
9480
|
-
.attr('y', 0 -
|
|
9484
|
+
.attr('y', 0 - margin.left / 2 - 30)
|
|
9481
9485
|
.attr('x', 0 - height / 2)
|
|
9482
9486
|
.attr('dy', '1em')
|
|
9483
9487
|
.style('text-anchor', 'middle')
|