Hi i have stats table with following
This question has been asked and answered many times
For example: Re: How to color the columns based on previous co... - Splunk Community which you could adapt for your usecase
You could have found this with a simple search Search - Splunk Community