Barchart with randomly assigned color

I have been trying to get the effect of the first image below. The red bar refers to the offline devices corresponding to the time period and the green for the online ones. but their color will be randomly assigned. Could I assign them by a condition?


No, metabase doesn't support inner dimension grouping the way you are describing. You can either plot a bar chart or a row chart ... If you go for pro you have the option to set any color you want