diff --git a/src/sunstone/public/app/utils/graphs.js b/src/sunstone/public/app/utils/graphs.js index 2854924037..d8db8d399b 100644 --- a/src/sunstone/public/app/utils/graphs.js +++ b/src/sunstone/public/app/utils/graphs.js @@ -27,12 +27,6 @@ define(function(require) { var Humanize = require('utils/humanize'); - /* - VARIABLES - */ - - var currentGraph = undefined; - /* CONSTRUCTOR */ @@ -128,10 +122,7 @@ define(function(require) { //options.xaxis.zoomRange = false; options.yaxis.panRange = false; if (series.length > 0) { - currentGraph && currentGraph.shutdown(); - info.div_graph.removeData('plot').empty(); - - currentGraph = $.plot(info.div_graph, series, options); + $.plot(info.div_graph, series, options); }; }