From c5b99af48000aabd2c0ca580806e53b2f054668a Mon Sep 17 00:00:00 2001 From: user Date: Sat, 23 Mar 2024 23:58:44 +0100 Subject: fix interlace colors --- src/ssh_node5_net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ssh_node5_net.py') diff --git a/src/ssh_node5_net.py b/src/ssh_node5_net.py index 77bd36b..47a7456 100644 --- a/src/ssh_node5_net.py +++ b/src/ssh_node5_net.py @@ -76,7 +76,7 @@ def index(): histogram_chartjs = json.dumps([{ 'label': str(ip), 'data': data, - 'backgroundColor': f'hsl({abs(360 if index%2 else 0 - (index / len(by_ip) * 360))}, 50%, 50%)', + 'backgroundColor': f'hsl({abs(180 if index%2 else 0 - (index / len(by_ip) * 360))}, 50%, 50%)', 'fill': 'start' } for index, (ip, data) in enumerate(by_ip.items())]) -- cgit v1.2.3