move plot off scope object

This commit is contained in:
Rashid Khan
2013-12-11 13:26:44 -07:00
parent db34054ca0
commit 90c9d9efea
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -2438,9 +2438,9 @@ Licensed under the MIT license.
radius = series.points.radius,
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.
// 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.
if( lw == 0 )