@c8y/ngx-components 1023.14.8 → 1023.15.0

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.
@@ -388,15 +388,10 @@ class EchartsOptionsService {
388
388
  forceMergeDatapoints: displayOptions.forceMergeDatapoints,
389
389
  showLabelAndUnit: displayOptions.showLabelAndUnit
390
390
  });
391
- const AXIS_PADDING = 20;
392
391
  const leftAxis = Array.isArray(yAxis) ? yAxis.filter(yx => yx.position === 'left') : [];
393
- const gridLeft = leftAxis.length
394
- ? leftAxis.length * (this.yAxisService.Y_AXIS_OFFSET - AXIS_PADDING)
395
- : 32;
392
+ const gridLeft = leftAxis.length ? leftAxis.length * this.yAxisService.Y_AXIS_OFFSET : 32;
396
393
  const rightAxis = Array.isArray(yAxis) ? yAxis.filter(yx => yx.position === 'right') : [];
397
- const gridRight = rightAxis.length
398
- ? rightAxis.length * (this.yAxisService.Y_AXIS_OFFSET - AXIS_PADDING)
399
- : 16;
394
+ const gridRight = rightAxis.length ? rightAxis.length * this.yAxisService.Y_AXIS_OFFSET : 16;
400
395
  const selectedLanguage = this.translate.currentLang;
401
396
  let intervalInMs = this.calculateExtendedIntervalInMs(selectedTimeRange?.interval || timeRange.interval || 'hours', selectedTimeRange || timeRange);
402
397
  if (sliderZoomUsed) {
@@ -426,7 +421,7 @@ class EchartsOptionsService {
426
421
  left: gridLeft,
427
422
  top: 16,
428
423
  right: gridRight,
429
- bottom: displayOptions.showSlider ? 68 : 8
424
+ bottom: 68
430
425
  },
431
426
  dataZoom: [
432
427
  {