Commit 90c9d9ef by Rashid Khan

move plot off scope object

parent db34054c
...@@ -527,7 +527,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) { ...@@ -527,7 +527,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
restrict: 'A', restrict: 'A',
template: '<div></div>', template: '<div></div>',
link: function(scope, elem) { link: function(scope, elem) {
var data; var data, plot;
scope.$on('refresh',function(){ scope.$on('refresh',function(){
scope.get_data(); scope.get_data();
...@@ -699,7 +699,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) { ...@@ -699,7 +699,7 @@ function (angular, app, $, _, kbn, moment, timeSeries) {
data[i].data = _d; data[i].data = _d;
} }
scope.plot = $.plot(elem, data, options); plot = $.plot(elem, data, options);
} catch(e) { } catch(e) {
// Nothing to do here // Nothing to do here
......
...@@ -2438,9 +2438,9 @@ Licensed under the MIT license. ...@@ -2438,9 +2438,9 @@ Licensed under the MIT license.
radius = series.points.radius, radius = series.points.radius,
symbol = series.points.symbol; symbol = series.points.symbol;
// If the user sets the line width to 0, we change it to a very // If the user sets the line width to 0, we change it to a very
// small value. A line width of 0 seems to force the default of 1. // small value. A line width of 0 seems to force the default of 1.
// Doing the conditional here allows the shadow setting to still be // Doing the conditional here allows the shadow setting to still be
// optional even with a lineWidth of 0. // optional even with a lineWidth of 0.
if( lw == 0 ) if( lw == 0 )
......
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