axidio-styleguide-library1-v2 0.0.979 → 0.0.981

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.
@@ -7367,9 +7367,9 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7367
7367
  /*.order(d3.stackOrder)*/
7368
7368
  .offset(d3.stackOffsetNone);
7369
7369
  var layers = stack(data);
7370
- // data.sort(function (a, b) {
7371
- // return b.total - a.total;
7372
- // });
7370
+ data.sort(function (a, b) {
7371
+ return b.total - a.total;
7372
+ });
7373
7373
  let lineYscale;
7374
7374
  if (lineData != null) {
7375
7375
  lineYscale = d3
@@ -7387,20 +7387,18 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7387
7387
  var xScale = d3
7388
7388
  .scaleBand()
7389
7389
  .rangeRound([
7390
+ width - rightSvgWidth - leftAndRightSpaces,
7390
7391
  leftAndRightSpaces,
7391
- width - rightSvgWidth - leftAndRightSpaces
7392
7392
  ])
7393
7393
  .domain(data.map(function (d) {
7394
7394
  return d.name;
7395
- }))
7396
- .padding(isMobile ? 0.2 : 0.5);
7395
+ }));
7397
7396
  var xScaleFromOrigin = d3
7398
7397
  .scaleBand()
7399
7398
  .rangeRound([width - rightSvgWidth, 0])
7400
7399
  .domain(data.map(function (d) {
7401
7400
  return d.name;
7402
7401
  }));
7403
- // ...existing code...
7404
7402
  /**
7405
7403
  * draw second x axis on top
7406
7404
  */