       json = fs.readFileSync(fileName)
       data = JSON.parse(json)
       annotatedFiles = data.annotated_files
-      for annot in annotatedFiles
-        for cust in annot.custom_annotations
-          for tag in cust.tags
-            if(list1.indexOf(tag) == -1)
-              list1.push(tag)
-            if(typeof userCntMap[tag] == 'undefined')
-              userCntMap[tag] = 1
-            else
-              console.log('In else...')
-              userCntMap[tag] += 1
+      if(typeof(@user) != 'undefined')
+        for annot in annotatedFiles
+          for cust in annot.custom_annotations
+            if(cust.user.name == @user)
+              for tag in cust.tags
+                if(list1.indexOf(tag) == -1)
+                  list1.push(tag)
+                if(typeof userCntMap[tag] == 'undefined')
+                  userCntMap[tag] = 1
+                else
+                  console.log('In else...')
+                  userCntMap[tag] += 1
+      else if(typeof(@tag) != 'undefined')
+        for annot in annotatedFiles
+          for cust in annot.custom_annotations
+            for tag in cust.tags
+              if(tag == @tag)
+                if(list1.indexOf(tag) == -1)
+                  list1.push(tag)
+                if(typeof userCntMap[tag] == 'undefined')
+                  userCntMap[tag] = 1
+                else
+                  console.log('In else...')
+                  userCntMap[tag] += 1
+      else
+        for annot in annotatedFiles
+          for cust in annot.custom_annotations
+            for tag in cust.tags
+              if(list1.indexOf(tag) == -1)
+                list1.push(tag)
+              if(typeof userCntMap[tag] == 'undefined')
+                userCntMap[tag] = 1
+              else
+                console.log('In else...')
+                userCntMap[tag] += 1
       for tag in list1
         @set5.push({
             name: tag

    catch error
      console.log('Error: ' + error)

  getTagDistributions: (dir) ->
    list1 = []
    userCntMap = {}

      } ])

    newDiv2 = document.createElement('div')
    newDiv2.style = "width: 100%; height: 40%;"
    @find('div.container3').append(newDiv2)
    myChart2 = new (Highcharts.Chart)(
      chart:
