From bd17c787ed89290c361234e88aaf9f270d22c99e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 13 Jan 2017 14:47:58 +0000 Subject: [PATCH] [WebUI] Fix pie chart displaying --- interface/js/rspamd.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/interface/js/rspamd.js b/interface/js/rspamd.js index fca33020d..def4718ae 100644 --- a/interface/js/rspamd.js +++ b/interface/js/rspamd.js @@ -508,6 +508,7 @@ }); sessionStorage.setItem("Credentials", JSON.stringify(to_Credentials)); displayStatWidgets(); + getChart(); }, function (serv, jqXHR, textStatus, errorThrown) { alertMessage('alert-error', 'Cannot receive stats data from: ' + @@ -573,8 +574,8 @@ }, { "color" : "#cc9966", "label" : "Temporary rejected", - "data" : data.learned, - "value" : data.learned + "data" : data.soft_reject, + "value" : data.soft_reject }, { "color" : "#FFD700", "label" : "Probable spam", @@ -588,8 +589,8 @@ }, { "color" : "#FF0000", "label" : "Rejected", - "data" : data.rejected, - "value" : data.rejected + "data" : data.reject, + "value" : data.reject } ]; pie = drawPie(pie, "chart", new_data); } -- 2.39.5