mirror of
https://github.com/weaveworks/scope.git
synced 2026-05-10 11:17:48 +00:00
remove trailing zeros in large numbers in UI
Added ~ option to d3Format which trims trailing zeros across format types. Fixes #3741
This commit is contained in:
@@ -5,7 +5,7 @@ import { isoFormat } from 'd3-time-format';
|
||||
import LCP from 'lcp';
|
||||
import moment from 'moment';
|
||||
|
||||
const formatLargeValue = d3Format('s');
|
||||
const formatLargeValue = d3Format('~s');
|
||||
|
||||
|
||||
function renderHtml(text, unit) {
|
||||
|
||||
Reference in New Issue
Block a user