This is an automated email from the ASF dual-hosted git repository.

apucher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 1d4bf61  [TE] frontend - harleyjj/rootcause - use humanizeFloat to 
change formatting of y-axis and prevent apparent duplicates (#3575)
1d4bf61 is described below

commit 1d4bf613c99a62cfe87db410cda05bbf3cd4bd45
Author: Harley Jackson <[email protected]>
AuthorDate: Mon Dec 3 10:24:59 2018 -0800

    [TE] frontend - harleyjj/rootcause - use humanizeFloat to change formatting 
of y-axis and prevent apparent duplicates (#3575)
---
 .../thirdeye-frontend/app/pods/components/rootcause-chart/component.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/thirdeye/thirdeye-frontend/app/pods/components/rootcause-chart/component.js 
b/thirdeye/thirdeye-frontend/app/pods/components/rootcause-chart/component.js
index 697b5cf..5694129 100644
--- 
a/thirdeye/thirdeye-frontend/app/pods/components/rootcause-chart/component.js
+++ 
b/thirdeye/thirdeye-frontend/app/pods/components/rootcause-chart/component.js
@@ -14,6 +14,7 @@ import {
   makeTime
 } from 'thirdeye-frontend/utils/rca-utils';
 import _ from 'lodash';
+import { humanizeFloat } from 'thirdeye-frontend/utils/utils';
 
 const TIMESERIES_MODE_ABSOLUTE = 'absolute';
 const TIMESERIES_MODE_RELATIVE = 'relative';
@@ -115,7 +116,7 @@ export default Component.extend({
         y: {
           show: true,
           tick: {
-            format: d3.format('.2s')
+            format: function(d){return humanizeFloat(d)}
           }
         },
         y2: {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to