I have basically the same problem to solve like Scot Minor who wrote that post on stackoverflow.
I am using Grafana v9.2.4 (64017e8ca6)
I am trying to show the active recipe the machine has loaded on a state timeline chart. In order to visually make out different recipes they should differ in color. I have (currently) 92 possible recipes that are partly nested.
The result on indicated link is exactly what I am looking for. But I am not going to manually map 92 values to a seperate color.
Any ideas how to automate the color randomization?