Repository: zeppelin Updated Branches: refs/heads/branch-0.6 5dfe37ffa -> 1a138b5b6
[ZEPPELIN-1273] Use Math.abs to determine if custom formatter should be called for y axis values Use Math.abs to determine if custom formatter should be called for y axis values. Bug Fix * [ ] - Task [ZEPPELIN-1273] https://issues.apache.org/jira/browse/ZEPPELIN-1273 Create simple table with two columns - date in one and large negative numbers like -10000000 in other. Display line chart and see that the y axis values are formatted like -10M. * Does the licenses files need update? No * Is there breaking changes for older versions? No * Does this needs documentation? No Author: Prasad Wagle <[email protected]> Closes #1270 from prasadwagle/ZEPPELIN-1273 and squashes the following commits: 2c62f56 [Prasad Wagle] Merge branch 'master' into ZEPPELIN-1273 06e12f8 [Prasad Wagle] Use Math.abs to determine if custom formatter should be called for y axis values (cherry picked from commit 61f4ce8942458560bc91549f6984e8b009fe3ef8) Signed-off-by: Lee moon soo <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/1a138b5b Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/1a138b5b Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/1a138b5b Branch: refs/heads/branch-0.6 Commit: 1a138b5b6d85fed20553b2d7d0697c58e450ca59 Parents: 5dfe37f Author: Prasad Wagle <[email protected]> Authored: Wed Aug 3 09:53:40 2016 -0700 Committer: Lee moon soo <[email protected]> Committed: Sun Aug 7 20:39:12 2016 -0700 ---------------------------------------------------------------------- zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/zeppelin/blob/1a138b5b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js ---------------------------------------------------------------------- diff --git a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js index 3560ba2..110da38 100644 --- a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js +++ b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js @@ -1310,7 +1310,7 @@ angular.module('zeppelinWebApp') }; var yAxisTickFormat = function(d) { - if(d >= Math.pow(10,6)){ + if (Math.abs(d) >= Math.pow(10,6)) { return customAbbrevFormatter(d); } return groupedThousandsWith3DigitsFormatter(d);
