Commit 90c9d9ef by Rashid Khan

move plot off scope object

parent db34054c
......@@ -527,7 +527,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
restrict: 'A',
template: '<div></div>',
link: function(scope, elem) {
var data;
var data, plot;
scope.$on('refresh',function(){
scope.get_data();
......@@ -699,7 +699,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
data[i].data = _d;
}
scope.plot = $.plot(elem, data, options);
plot = $.plot(elem, data, options);
} catch(e) {
// Nothing to do here
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment