@xiriframework/xiri-ng 0.2.42 → 0.2.43

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.
@@ -6183,6 +6183,11 @@ class XiriBarChartComponent {
6183
6183
  else
6184
6184
  this.router.navigateByUrl(url);
6185
6185
  }
6186
+ // Rotated x-axis labels (interval: 0 forces all labels — no thinning on narrow bars).
6187
+ xLabelConfig() {
6188
+ const r = this.settings().xLabelRotate;
6189
+ return r != null ? { rotate: r, interval: 0 } : undefined;
6190
+ }
6186
6191
  baseGrid() {
6187
6192
  // Compact mode: outer card already provides padding — shrink the
6188
6193
  // echarts grid so we don't get a "double margin".
@@ -6213,7 +6218,8 @@ class XiriBarChartComponent {
6213
6218
  type: 'category',
6214
6219
  data: bars.map(b => b.label),
6215
6220
  axisLine: { show: false },
6216
- axisTick: { show: false }
6221
+ axisTick: { show: false },
6222
+ axisLabel: this.xLabelConfig()
6217
6223
  },
6218
6224
  yAxis: {
6219
6225
  type: 'value',
@@ -6301,7 +6307,8 @@ class XiriBarChartComponent {
6301
6307
  type: 'category',
6302
6308
  data: bars.map(b => b.label),
6303
6309
  axisLine: { show: false },
6304
- axisTick: { show: false }
6310
+ axisTick: { show: false },
6311
+ axisLabel: this.xLabelConfig()
6305
6312
  },
6306
6313
  yAxis: {
6307
6314
  type: 'value',
@@ -6437,7 +6444,8 @@ class XiriLineChartComponent {
6437
6444
  data: labels,
6438
6445
  boundaryGap: false,
6439
6446
  axisLine: { show: false },
6440
- axisTick: { show: false }
6447
+ axisTick: { show: false },
6448
+ axisLabel: s.xLabelRotate != null ? { rotate: s.xLabelRotate, interval: 0 } : undefined
6441
6449
  },
6442
6450
  yAxis: {
6443
6451
  type: 'value',
@@ -6662,7 +6670,8 @@ class XiriHeatmapComponent {
6662
6670
  data: s.xLabels,
6663
6671
  splitArea: { show: true },
6664
6672
  axisLine: { show: false },
6665
- axisTick: { show: false }
6673
+ axisTick: { show: false },
6674
+ axisLabel: s.xLabelRotate != null ? { rotate: s.xLabelRotate, interval: 0 } : undefined
6666
6675
  },
6667
6676
  yAxis: {
6668
6677
  type: 'category',