axidio-styleguide-library1-v2 0.1.38 → 0.1.40
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.
|
@@ -7472,6 +7472,9 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7472
7472
|
return d.class;
|
|
7473
7473
|
})
|
|
7474
7474
|
.attr('width', function () {
|
|
7475
|
+
if (d.data.name && /week/i.test(d.data.name) && /\d{4}-\d{2}-\d{2}/.test(d.data.name)) {
|
|
7476
|
+
return '250px'; // increase for week + date
|
|
7477
|
+
}
|
|
7475
7478
|
if (xScale.bandwidth() + leftAndRightSpaces * 2 > 180) {
|
|
7476
7479
|
return '180px';
|
|
7477
7480
|
}
|