From e41998b2abdceed5fea8592cabf25aabbad10029 Mon Sep 17 00:00:00 2001 From: Jesse Yang Date: Thu, 16 Apr 2020 16:00:11 -0700 Subject: [PATCH] Add raw number/integer option to d3 number formats --- superset-frontend/src/explore/controls.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset-frontend/src/explore/controls.jsx b/superset-frontend/src/explore/controls.jsx index 40c8caffbb119..055410a7f051e 100644 --- a/superset-frontend/src/explore/controls.jsx +++ b/superset-frontend/src/explore/controls.jsx @@ -83,6 +83,8 @@ export const PRIMARY_COLOR = { r: 0, g: 122, b: 135, a: 1 }; // input choices & options export const D3_FORMAT_OPTIONS = [ ['SMART_NUMBER', 'Adaptative formating'], + [' ', 'Original value'], + [',d', ',d (12345.432 => 12,345)'], ['.1s', '.1s (12345.432 => 10k)'], ['.3s', '.3s (12345.432 => 12.3k)'], [',.1%', ',.1% (12345.432 => 1,234,543.2%)'],