浏览代码

refactor: remove space before shortened number

pull/347/head
Shivam Mishra 4 年前
committed by GitHub
父节点
当前提交
7c9cf65385
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/js/utils/draw-utils.js

+ 1
- 1
src/js/utils/draw-utils.js 查看文件

@@ -51,7 +51,7 @@ export function shortenLargeNumber(label) {
let shortened = (Math.pow(10, p - l * 3) * +(number / Math.pow(10, p)).toFixed(1));

// Correct for floating point error upto 2 decimal places
return Math.round(shortened * 100) / 100 + ' ' + ['', 'K', 'M', 'B', 'T'][l];
return Math.round(shortened * 100) / 100 + ['', 'K', 'M', 'B', 'T'][l];
}

// cubic bezier curve calculation (from example by François Romain)


正在加载...
取消
保存