       json = fs.readFileSync(fileName)
       data = JSON.parse(json)
       annotatedFiles = data.annotated_files
-      for annot in annotatedFiles
-        for cust in annot.custom_annotations
-          createdDate = @parseDate(cust.createdAt)
-          console.log("Created Date " + createdDate)
-          for timing in @set6
-            if(timing.isAfter(createdDate))
-              if(typeof customAnnots[timing] == 'undefined')
-                customAnnots[timing] = 1
-              else
-                customAnnots[timing] += 1
-            else
+      if(typeof(@user) != 'undefined')
+        for annot in annotatedFiles
+          for cust in annot.custom_annotations
+            if(cust.user.name == @user)
+              createdDate = @parseDate(cust.createdAt)
+              console.log("Created Date " + createdDate)
+              for timing in @set6
+                if(timing.isAfter(createdDate))
+                  if(typeof customAnnots[timing] == 'undefined')
+                    customAnnots[timing] = 1
+                  else
+                    customAnnots[timing] += 1
+                else
+                  customAnnots[timing] = 0
+      else if(typeof(@tag) != 'undefined')
+        for annot in annotatedFiles
+          for cust in annot.custom_annotations
+            if(cust.tags.indexOf(@tag) != -1)
+              createdDate = @parseDate(cust.createdAt)
+              console.log("Created Date " + createdDate)
+              for timing in @set6
+                if(timing.isAfter(createdDate))
+                  if(typeof customAnnots[timing] == 'undefined')
+                    customAnnots[timing] = 1
+                  else
+                    customAnnots[timing] += 1
+                else
+                  customAnnots[timing] = 0
+      else
+        for annot in annotatedFiles
+          for cust in annot.custom_annotations
+            createdDate = @parseDate(cust.createdAt)
+            console.log("Created Date " + createdDate)
+            for timing in @set6
+              if(timing.isAfter(createdDate))
+                if(typeof customAnnots[timing] == 'undefined')
+                  customAnnots[timing] = 1
+                else
+                  customAnnots[timing] += 1
+              else
                 customAnnots[timing] = 0
       for timing in @set6
         @set7.push(customAnnots[timing])

      ])

    newSpan1 = document.createElement('div')
    newSpan1.style = "width: 45%; height: 45%; display: inline-block;"
    @find('div.container2').append(newSpan1)
    piechart1 = new (Highcharts.Chart)(
      chart:

      } ])

    newSpan2 = document.createElement('div')
    newSpan2.style = "width: 50%; height: 45%; display: inline-block;"
    @find('div.container2').append(newSpan2)
    piechart1 = new (Highcharts.Chart)(
      chart:
