Repository: zeppelin Updated Branches: refs/heads/branch-0.6 f1bdafbbf -> a17e873d1
[ZEPPELIN/1356] The graph legend truncates at the nearest period (.) in its grouping ### What is this PR for? Fix the issue: in line graph if user uses the numbers that contains period(.), e.g. 3.14 in the groups the legend will only show 3 instead of 3.14. ### What type of PR is it? [Bug Fix] ### Todos ### What is the Jira issue? https://issues.apache.org/jira/browse/ZEPPELIN-1356 ### How should this be tested? Localhost test with screenshot ### Screenshots (if appropriate) Before <img width="1251" alt="screen shot 2016-08-25 at 6 51 36 pm" src="https://cloud.githubusercontent.com/assets/3334391/17991618/10e38f20-6af5-11e6-9399-196f7c3a325a.png"> After <img width="1249" alt="screen shot 2016-08-25 at 6 45 19 pm" src="https://cloud.githubusercontent.com/assets/3334391/17991506/3225d5e0-6af4-11e6-8090-5ea2319444d3.png"> ### Questions: * Does the licenses files need update? No. * Is there breaking changes for older versions? No. * Does this needs documentation? No. Author: Peilin Yang <[email protected]> Closes #1351 from Peilin-Yang/ypeilin/ZEPPELIN-1356 and squashes the following commits: 5dcf157 [Peilin Yang] remove comment 00527a5 [Peilin Yang] fix ZEPPELIN/1356 (cherry picked from commit 11bdd71104d8d30e928c3621d13e3328a089243d) Signed-off-by: Alexander Bezzubov <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/a17e873d Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/a17e873d Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/a17e873d Branch: refs/heads/branch-0.6 Commit: a17e873d18d434dd0dd56babdc1562ba67ed6d03 Parents: f1bdafb Author: Peilin Yang <[email protected]> Authored: Thu Aug 25 19:51:05 2016 -0700 Committer: Alexander Bezzubov <[email protected]> Committed: Mon Aug 29 11:24:07 2016 +0900 ---------------------------------------------------------------------- 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/a17e873d/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 9a174d6..6cf83b1 100644 --- a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js +++ b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js @@ -1849,7 +1849,7 @@ angular.module('zeppelinWebApp') if (groups.length === 1 && values.length === 1) { for (d3gIndex = 0; d3gIndex < d3g.length; d3gIndex++) { colName = d3g[d3gIndex].key; - colName = colName.split('.')[0]; + colName = colName.split('.').slice(0, -1).join('.'); d3g[d3gIndex].key = colName; } }
