I am trying to modify David Bacci's Org Chart. https://github.com/PBI-David/Deneb-Showcase/tree/main/Organisation%20Tree%20Chart. My goal is to change the color of the node borders based on conditional formatting rather than color matching a flow. I cannot figure out how/where to add the conditional formatting based on a table column. I have tried multiple codes/locations to no avail. Thank you for any help.
I have a Status column in my data: Onboarded, In-processing, Leaving. Below is core code attempt. I do not want that text to appear in the blocks. I just want each node to have a different color border. I have also tried single/double quotes, adding layers, encoding within the nodes, nada.
{
"encode": {
"color": {
"condition": [
{
"test": "datum.Status == 'Onboard'",
"value": "green"
},
{
"test": "datum.Status == 'Inprocessing'",
"value": "yellow"
}
],
"value": "red"
}
}
}

