Repository: zeppelin
Updated Branches:
  refs/heads/master 5f1208bdb -> 11bdd7110


[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


Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo
Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/11bdd711
Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/11bdd711
Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/11bdd711

Branch: refs/heads/master
Commit: 11bdd71104d8d30e928c3621d13e3328a089243d
Parents: 5f1208b
Author: Peilin Yang <[email protected]>
Authored: Thu Aug 25 19:51:05 2016 -0700
Committer: Alexander Bezzubov <[email protected]>
Committed: Mon Aug 29 11:23:25 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/11bdd711/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 aa9686e..d66fb76 100644
--- a/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
+++ b/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js
@@ -1836,7 +1836,7 @@ 
angular.module('zeppelinWebApp').controller('ParagraphCtrl', function($scope, $r
       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;
         }
       }

Reply via email to