(function (angular) {
    'use strict';

    function FlotDirective(eehFlot) {
        return {
            restrict: 'AE',
            template: '<div class="eeh-flot"></div>',
            scope: {
                dataset: '=',
                options: '@'
            },
            link: function link(scope, element) {
                var renderArea = element.find('.eeh-flot');
                eehFlot(renderArea, scope.dataset, scope.options);
            }
        };
    }

    angular.module('eehFlot').directive('eehFlot', FlotDirective);
})(angular);

@@ -68,16 +68,27 @@
 (eehFlot
+, $interval
 ) %7B%0A    
@@ -257,16 +257,94 @@
 options:
+ '@',%0A                updateCallback: '&',%0A                updateCallbackTime:
  '@'%0A   
@@ -401,24 +401,101 @@
  element) %7B%0A
+                scope.updateCallbackTime = scope.updateCallbackTime %7C%7C 1000;%0A
             
@@ -557,16 +557,28 @@
         
+ var chart =
  eehFlot
@@ -621,16 +621,322 @@
 tions);%0A
+                if (angular.isDefined(scope.updateCallback) &&%0A                    angular.isFunction(scope.updateCallback)) %7B%0A                    $interval(function() %7B%0A                        scope.updateCallback(chart, scope.dataset);%0A                    %7D, scope.updateCallbackTime);%0A                %7D%0A
         

Add update callback option