feat: always show last label when xIsSeries is toggled

This commit is contained in:
Shivam Mishra 2020-07-28 20:23:13 +05:30
parent 399ff37b6a
commit 4d8321e9be

View File

@ -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 = "";
}
}