diff options
| author | user <user@node5.net> | 2024-03-23 23:45:59 +0100 |
|---|---|---|
| committer | user <user@node5.net> | 2024-03-23 23:45:59 +0100 |
| commit | 3ee22203c2fda75d7cae3f3ad2199e5676eca9c3 (patch) | |
| tree | 09d55736d71a98e8e837d1a0f4141103feeacb3f /src/ssh_node5_net.py | |
| parent | bdff35e7356cbbcf46343e90f8fb989db9a73a9b (diff) | |
interlace opposite colors
Diffstat (limited to 'src/ssh_node5_net.py')
| -rw-r--r-- | src/ssh_node5_net.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssh_node5_net.py b/src/ssh_node5_net.py index ea75533..3b5cdac 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({index / len(all_dates) * 360}, 50%, 50%)', + 'backgroundColor': f'hsl({360 if index % 2 == 0 else 0 - index / len(all_dates) * 360}, 50%, 50%)', 'fill': 'start' } for index, (ip, data) in enumerate(by_ip.items())]) |
