From 2ea82debf7d10862b88f6f27383f3f6d659504c4 Mon Sep 17 00:00:00 2001 From: Valentine Panchin Date: Fri, 11 Dec 2020 10:29:37 +0200 Subject: [PATCH] [Feat] fixed augumented numeric formats with ~ (#1369) * fixed augumented numeric formats with ~ (1351) Signed-off-by: Valentine --- src/constants/tooltip.js | 4 ++-- test/node/utils/data-utils-test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants/tooltip.js b/src/constants/tooltip.js index 163642c6ae..60b934a745 100644 --- a/src/constants/tooltip.js +++ b/src/constants/tooltip.js @@ -45,7 +45,7 @@ export const TOOLTIP_FORMATS = { DECIMAL_SHORT_COMMA: { id: 'DECIMAL_SHORT_COMMA', label: '12.3k', - format: '.3s', + format: '.3~s', type: TOOLTIP_FORMAT_TYPES.DECIMAL }, DECIMAL_PERCENT_FULL_1: { @@ -63,7 +63,7 @@ export const TOOLTIP_FORMATS = { DECIMAL_PRECENT_REGULAR: { id: 'DECIMAL_PRECENT_REGULAR', label: '12.345 → 12.35%', - format: '%', + format: '~%', type: TOOLTIP_FORMAT_TYPES.PERCENTAGE }, DECIMAL_DECIMAL_FIXED_2: { diff --git a/test/node/utils/data-utils-test.js b/test/node/utils/data-utils-test.js index cc01976e94..6e98c7aff8 100644 --- a/test/node/utils/data-utils-test.js +++ b/test/node/utils/data-utils-test.js @@ -123,7 +123,7 @@ test('dataUtils -> getFormatter', t => { assert: [134, '100'] }, { - input: ['%'], + input: ['~%'], assert: ['12.345', '12.35%'] }, {