Skip to content

Commit

Permalink
[Feat] fixed augumented numeric formats with ~ (#1369)
Browse files Browse the repository at this point in the history
* fixed augumented numeric formats with ~ (1351)

Signed-off-by: Valentine <vpanchin@gmail.com>
  • Loading branch information
b2kdaman committed Dec 11, 2020
1 parent e88b4f1 commit 2ea82de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/constants/tooltip.js
Expand Up @@ -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: {
Expand All @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion test/node/utils/data-utils-test.js
Expand Up @@ -123,7 +123,7 @@ test('dataUtils -> getFormatter', t => {
assert: [134, '100']
},
{
input: ['%'],
input: ['~%'],
assert: ['12.345', '12.35%']
},
{
Expand Down

0 comments on commit 2ea82de

Please sign in to comment.