From 4d8321e9beb9cfa8fe7e2510526c979c6db20212 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 28 Jul 2020 20:23:13 +0530 Subject: [PATCH] feat: always show last label when xIsSeries is toggled --- src/js/utils/axis-chart-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/utils/axis-chart-utils.js b/src/js/utils/axis-chart-utils.js index 362590e..5f58854 100644 --- a/src/js/utils/axis-chart-utils.js +++ b/src/js/utils/axis-chart-utils.js @@ -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 = ""; } }