Question on Clustered columns

I was watching the docs on Vega lite related to clustered column charts and found part of the solution I needed

Lets say I would like to replicate something like this (2 columns only for every category)
If I would like to have the first column for every category :
Yellow for values greater than 7.5
Else blue , what the code would most likely be ?

Hi @tom071136

To control the colours used for bars instead of using the Vega-Lite default behaviour, one way is to include a conditional color block in the encoding block.

(My starting point was the code listed on the Vega-Lite website and I simply updated and removed some values.)

Hope it helps.
eDNA Forum - Deneb Clustered Column Colours.pbix (1.5 MB)