I am working in 0.12.32 now.
So I was going to test a hypothesis that it had something to do with things that were in the top 8 list for longer history views but not shorter, but in the middle of my setup before I even tested it I noticed that the problem was happening. So while this is definitely not a minimal example, I've attached a save that at least has the problem occurring.
The sorting problem and the duplicate color problem seem to be two separate issues.
I have found that, in this save, if you perform the following steps:
- Switch to the 5s or 1m graph.
- Then, switch to the 1h, 10h, or 50h graph.
You will get duplicate colors in the graph (two purples in this case):
If you switch from 1h to 10h, you won't get the duplicate colors. If you go e.g. 5s -> 1h -> 10h, you'll see the issue then it will go away on the 1h -> 10h switch. Also, you'll have to do this within a couple minutes after loading the save, otherwise as the graph scrolls the window for the issue to occur seems to go away.
The duplicate colors once again involve objects which were turned off and therefore no longer appear in shorter history lists (lamps again in this case). I still do not know if this is a coincidence or not. I am starting to think it is not, but it definitely has something to do with switching between history times.
I will continue trying to come up with a better example, I still have no concrete steps or theories, but in the mean time, here. If at some point you are able to find the cause of the issue before I am able to find actual steps to reproduce, let me know so I stop trying.
Note: The two mods I've included were not present when I observed the original problem and are not the cause. I was using them to construct the test setup. You'll need electric switch for the switches, and toy box for the infinite supply chests and dumpsters. There is a constant combinator on the left side of the setup that can be used to control the switches; in the saved state the lamps are turned off, they can be turned back on by adding small lamp = 1 to the constant combinator output. Also you may see some debug output from toy-box; sorry, it is in the middle of a bunch of changes.