Client Activity graph colours

Using the latest release: Pi-hole v5.15, FTL v5.20.1, Web Interface v5.18.1

I've been trying to find how/where I can change the Client activity over last 24 hours graphs colours. Not happy with the latest 'static' colours and would like to change to something more appealing.
Definitely preferred the previous dynamic colours rather that static.

The last time these colors were changed (actually just adjusted) was 2 years ago.

Nothing has changed recently.

Well that's interesting. Up until recently, I had random colours. It's only since the last update I've noticed the difference, like the huge orange client. I do update my pi-hole whenever a new version is released.

The colors were never fully random.

They are selected accordingly to the order clients appear on data. The first client receives the first color, the second client receives the second color, etc.

The initial color table contains 16 colors. If more the 16 clients appears on the graph, new random color are created.

Usually, the clients on the received data change frequently, giving the impression the colors are random.

Apparently your current data is constantly showing the same clients (on the same order).

Just to add information to the explanation, the colors "changed" on my graphic because the order of the clients changed on the clients list: http://pi.hole/admin/api.php?getClientNames

If the start of the list is constant, the colors won't change (for the first 16 clients).

Thanks for the info.
I managed to change the Client order by: Flushing the Network Table and Logs.

Which file contains the initial color table of 16 colors, please?

Finally, up until the latest release, every time I reloaded the Dashboard, the colours would change. I'm guessing because the Client order refreshed. Now it does not do that.

They are here:
https://github.com/pi-hole/AdminLTE/blob/30668d4d6742136e2c0ae7641207f68ff69c99d7/scripts/pi-hole/js/index.js#L14-L31

Note 1:
if you edit this, you will lose the changes on the next update.

Note 2:
this colors are used on all 4 graphics.

Thanks.
I'll do some experimenting :slight_smile: