I didn't expect this to work, but it looks like checkmarking "Persistent Colors" on the Colors tab on both charts does the trick.
If you want explicit control over the color of each region, you could code it as a background color expression:
Or you could define the colors in the script, either with an inline load or maybe a load from a spreadsheet:
LOAD * INLINE [
And have a simpler background color expression: