From 2b957a2c1ebf476314dff535b920964d99187dd4 Mon Sep 17 00:00:00 2001 From: Jesse Yang Date: Mon, 20 Apr 2020 21:31:47 -0700 Subject: [PATCH] Add raw number/integer option to d3 number formats (#9562) --- 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 40c8caffb..055410a7f 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%)'],