Przeglądaj źródła

feat: always show last label when xIsSeries is toggled

pull/347/head
Shivam Mishra 4 lat temu
rodzic
commit
4d8321e9be
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      src/js/utils/axis-chart-utils.js

+ 1
- 1
src/js/utils/axis-chart-utils.js Wyświetl plik

@@ -120,7 +120,7 @@ export function getShortenedLabels(chartWidth, labels=[], isSeries=true) {
label = label.slice(0, allowedLetters) + '..';
}
} else {
if(i % seriesMultiple !== 0) {
if(i % seriesMultiple !== 0 && i !== (labels.length - 1)) {
label = "";
}
}


Ładowanie…
Anuluj
Zapisz