|
|
@ -263,9 +263,9 @@ Prometheus.Graph.prototype.showGraph = function() {
|
|
|
|
Prometheus.Graph.prototype.updateGraph = function(reloadGraph) {
|
|
|
|
Prometheus.Graph.prototype.updateGraph = function(reloadGraph) {
|
|
|
|
var self = this;
|
|
|
|
var self = this;
|
|
|
|
if (self.data.length == 0) { return; }
|
|
|
|
if (self.data.length == 0) { return; }
|
|
|
|
|
|
|
|
self.legend.empty();
|
|
|
|
if (self.rickshawGraph == null || reloadGraph) {
|
|
|
|
if (self.rickshawGraph == null || reloadGraph) {
|
|
|
|
self.graph.empty();
|
|
|
|
self.graph.empty();
|
|
|
|
self.legend.empty();
|
|
|
|
|
|
|
|
self.showGraph();
|
|
|
|
self.showGraph();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
self.rickshawGraph.configure({
|
|
|
|
self.rickshawGraph.configure({
|
|
|
|