summaryrefslogtreecommitdiffstats
path: root/interface/js/app/stats.js
diff options
context:
space:
mode:
authormoisseev <moiseev@mezonplus.ru>2022-09-07 14:58:50 +0300
committermoisseev <moiseev@mezonplus.ru>2022-09-07 14:58:50 +0300
commit8bb998f26c9a5ef9bf0579106cad45e39e26cc4a (patch)
tree3f60775ec98c59a561a4de80c2ba7e5118ad4350 /interface/js/app/stats.js
parente540a3db85f394c4ab3b53e100be9353b4027066 (diff)
downloadrspamd-8bb998f26c9a5ef9bf0579106cad45e39e26cc4a.tar.gz
rspamd-8bb998f26c9a5ef9bf0579106cad45e39e26cc4a.zip
[WebUI] Put total in the center of pie charts
Diffstat (limited to 'interface/js/app/stats.js')
-rw-r--r--interface/js/app/stats.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/interface/js/app/stats.js b/interface/js/app/stats.js
index 8b38d7f10..7ce239ef9 100644
--- a/interface/js/app/stats.js
+++ b/interface/js/app/stats.js
@@ -226,11 +226,21 @@ define(["jquery", "d3pie"],
if (!graphs.chart) {
graphs.chart = new D3Pie("chart", {
labels: {
+ inner: {
+ offset: 0
+ },
outer: {
collideHeight: 18,
}
},
- title: "Rspamd filter stats"
+ size: {
+ pieInnerRadius: "50%"
+ },
+ title: "Rspamd filter stats",
+ total: {
+ enabled: true,
+ label: "Scanned"
+ }
});
}