Skip to content

Commit

Permalink
Add total label to chart displaying most blocked IP
Browse files Browse the repository at this point in the history
  • Loading branch information
TheophileDiot committed Jan 27, 2025
1 parent d875291 commit 46bd938
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ui/app/static/js/pages/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,16 @@ $(function () {
offsetY: 17,
fontFamily: "Public Sans",
},
total: {
show: true,
fontSize: "13px",
color: legendColor,
label: "Most blocked IP",
formatter: function () {
const topIP = Object.keys(topIpsData)[0];
return `${topIP}`;
},
},
},
},
},
Expand Down

0 comments on commit 46bd938

Please sign in to comment.