Tree Vega - Change the path color based on field condition

Is it possible to alter the path colour of Tree Vega chart depending on a data field where the condition is, flag == 1 imply path should be in red else black in colour, I used the following code for the node and it works good, but I wanted to implement the same for pathways as well, Please advise.

"stroke": [
            {"test": "datum._source.flag==1", "value": "#de040c"},
            {"value": "#10a5e6"}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.