@c8y/ngx-components 1023.14.2 → 1023.14.8

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