You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by gr...@apache.org on 2020/04/21 04:32:03 UTC
[incubator-superset] branch master updated: Add raw number/integer
option to d3 number formats (#9562)
This is an automated email from the ASF dual-hosted git repository.
graceguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 2b957a2 Add raw number/integer option to d3 number formats (#9562)
2b957a2 is described below
commit 2b957a2c1ebf476314dff535b920964d99187dd4
Author: Jesse Yang <je...@airbnb.com>
AuthorDate: Mon Apr 20 21:31:47 2020 -0700
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 40c8caf..055410a 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%)'],