Synchronize chart colors

My dashboard contains several related charts, in which data series are grouped by the same database column. Unfortunately, right now the same group id may be colored differently in different charts, so it’s hard to correlate them. Is there some way to force color “synchronization” across these charts? (i.e. series having the same group id should be drawn with the same color).

I know this can be done by assigning colors manually, however I have a dozen of charts and around twenty groups, so configuring all of them manually is going to be rather tedious. Not to mention that the set of group ids may change over time, so I’d have to revisit this task periodically.