From ef38cf72af9af01101f2c10e19ab0085549e9cb7 Mon Sep 17 00:00:00 2001 From: Srix Date: Fri, 29 May 2015 16:15:36 +0530 Subject: fix to render chart even though one of the chart element is not available --- jarmon/jarmon.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js index e4fd1dc..e30a228 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -522,7 +522,19 @@ jarmon.RrdQueryRemote.prototype._callRemote = function(methodName, args) { this._download.always( function(res) { if(res instanceof Error) { - ret.reject(res); + //ret.reject(res); + result = { + data: [ + [args[0], 0], + [args[1], 0] + ], + lines: { + lineWidth: 0 + } + }; + ret.resolve(result); + return result; + } else { // Upon successful download convert the resulting binary // into an RRD file -- cgit v1.2.3