I don’t know your layout for your Json, but this is the idea behind it. Also I’ve just copied and pasted the colours I used for a weather map. So you’ll want to look at what colour values you’d want.
txt = footage(“file.json”).sourceData;
input = txt.zone1
if ( input <= 5 && input >= 0 ){
([0,255,210,255]/255)}
else if ( input <= 10 && input >= 6 ){
([0,255,190,255]/255)}
else if ( input <= 15 && input >= 11 ){
([0,255,170,255]/255)}
else if ( input <= 20 && input >= 16 ){
([0,255,150,255]/255)}
else if ( input <= 25 && input >= 21 ){
([232,255,0,255]/255)}
else if ( input <= 30 && input >= 26 ){
([252,210,0,255]/255)
}else{
([255,255,255,255]/255)};
If you are clever about it, you could label your layers and use
a = thisLayer.name
txt = footage(“file.json”).sourceData;
input = txt[a]
This would allow you to just copy and paste the expression onto all layers and you layer names will trigger that.