Your use case is similar to this one: Conditional colouring using kibana canvas expression editor The only difference is instead you would pass valueColor={if {gt 0.9} then="red" else="green"}
into the progress
function to conditionally set the color of the progress bar.