superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maximebeauche...@apache.org
Subject [incubator-superset] branch master updated: Revert old precision formatters (#6056)
Date Mon, 08 Oct 2018 13:42:10 GMT
This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin 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 6282edd  Revert old precision formatters (#6056)
6282edd is described below

commit 6282edd0339743e33579fa8b4e94b8426ed42c13
Author: Teemu Heikkilä <sienikasvusto@pistoke.org>
AuthorDate: Mon Oct 8 16:41:59 2018 +0300

    Revert old precision formatters (#6056)
    
    Revert commit https://github.com/apache/incubator-superset/commit/66fcf9b687bdd6cc8a6039f002ed87193a16b365#diff-366fb3d6e52b5fb2b9c306763adbc983
    It caused sunburst to became confusing.
---
 superset/assets/src/visualizations/Sunburst/Sunburst.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/assets/src/visualizations/Sunburst/Sunburst.js b/superset/assets/src/visualizations/Sunburst/Sunburst.js
index bd9b56a..f557d8d 100644
--- a/superset/assets/src/visualizations/Sunburst/Sunburst.js
+++ b/superset/assets/src/visualizations/Sunburst/Sunburst.js
@@ -79,8 +79,8 @@ function Sunburst(element, props) {
     .innerRadius(d => Math.sqrt(d.y))
     .outerRadius(d => Math.sqrt(d.y + d.dy));
 
-  const formatNum = d3.format('.1s');
-  const formatPerc = d3.format('.1p');
+  const formatNum = d3.format('.3s');
+  const formatPerc = d3.format('.3p');
 
   container.select('svg').remove();
 


Mime
View raw message