Merge pull request #390 from kimsreng/v2-beta

Fixed: Unrecognized falsy value of truncateLegends
This commit is contained in:
Arjun 2022-11-15 16:55:22 +05:30 committed by GitHub
commit f5fc2c1bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));