mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
move plot off scope object
This commit is contained in:
@@ -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
|
||||
|
||||
Vendored
+2
-2
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user