From 2aab8dd315ce860b43bf70befb3bf1abfa7d33d8 Mon Sep 17 00:00:00 2001 From: kimsreng Date: Fri, 22 Jul 2022 16:46:00 +0700 Subject: [PATCH] Fixed: Unrecognized falsy value of truncateLegends --- src/js/charts/BaseChart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/charts/BaseChart.js b/src/js/charts/BaseChart.js index befa244..257b4df 100644 --- a/src/js/charts/BaseChart.js +++ b/src/js/charts/BaseChart.js @@ -39,7 +39,7 @@ export default class BaseChart { isNavigable: options.isNavigable || 0, animate: (typeof options.animate !== 'undefined') ? options.animate : 1, disableEntryAnimation: options.disableEntryAnimation || 0, - truncateLegends: options.truncateLegends || 1 + truncateLegends: (typeof options.truncateLegends !== 'undefined') ? options.truncateLegends : 1 }; this.measures = JSON.parse(JSON.stringify(BASE_MEASURES));